@y/y 14.0.0-18 → 14.0.0-20
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/README.md +7 -5
- package/dist/src/index.d.ts +2 -1
- package/dist/src/internals.d.ts +2 -9
- package/dist/src/structs/ContentType.d.ts +6 -12
- package/dist/src/structs/ContentType.d.ts.map +1 -1
- package/dist/src/structs/Item.d.ts +5 -6
- package/dist/src/structs/Item.d.ts.map +1 -1
- package/dist/src/utils/AttributionManager.d.ts +20 -6
- package/dist/src/utils/AttributionManager.d.ts.map +1 -1
- package/dist/src/utils/Doc.d.ts +7 -70
- package/dist/src/utils/Doc.d.ts.map +1 -1
- package/dist/src/utils/ID.d.ts +2 -2
- package/dist/src/utils/ID.d.ts.map +1 -1
- package/dist/src/utils/IdMap.d.ts +19 -16
- package/dist/src/utils/IdMap.d.ts.map +1 -1
- package/dist/src/utils/IdSet.d.ts +2 -2
- package/dist/src/utils/IdSet.d.ts.map +1 -1
- package/dist/src/utils/RelativePosition.d.ts +8 -8
- package/dist/src/utils/RelativePosition.d.ts.map +1 -1
- package/dist/src/utils/Transaction.d.ts +9 -5
- package/dist/src/utils/Transaction.d.ts.map +1 -1
- package/dist/src/utils/UndoManager.d.ts +14 -12
- package/dist/src/utils/UndoManager.d.ts.map +1 -1
- package/dist/src/utils/UpdateEncoder.d.ts +2 -0
- package/dist/src/utils/UpdateEncoder.d.ts.map +1 -1
- package/dist/src/utils/YEvent.d.ts +21 -42
- package/dist/src/utils/YEvent.d.ts.map +1 -1
- package/dist/src/utils/isParentOf.d.ts +1 -1
- package/dist/src/utils/isParentOf.d.ts.map +1 -1
- package/dist/src/utils/logging.d.ts +2 -2
- package/dist/src/utils/logging.d.ts.map +1 -1
- package/dist/src/utils/meta.d.ts +43 -0
- package/dist/src/utils/meta.d.ts.map +1 -0
- package/dist/src/utils/ts.d.ts +4 -0
- package/dist/src/utils/ts.d.ts.map +1 -0
- package/dist/src/utils/updates.d.ts +3 -9
- package/dist/src/utils/updates.d.ts.map +1 -1
- package/dist/src/ytype.d.ts +498 -0
- package/dist/src/ytype.d.ts.map +1 -0
- package/dist/tests/IdMap.tests.d.ts.map +1 -1
- package/dist/tests/attribution.tests.d.ts +1 -0
- package/dist/tests/attribution.tests.d.ts.map +1 -1
- package/dist/tests/compatibility.tests.d.ts.map +1 -1
- package/dist/tests/doc.tests.d.ts.map +1 -1
- package/dist/tests/relativePositions.tests.d.ts +9 -9
- package/dist/tests/relativePositions.tests.d.ts.map +1 -1
- package/dist/tests/snapshot.tests.d.ts.map +1 -1
- package/dist/tests/testHelper.d.ts +28 -27
- package/dist/tests/testHelper.d.ts.map +1 -1
- package/dist/tests/undo-redo.tests.d.ts.map +1 -1
- package/dist/tests/updates.tests.d.ts +1 -1
- package/dist/tests/updates.tests.d.ts.map +1 -1
- package/dist/tests/y-array.tests.d.ts +0 -2
- package/dist/tests/y-array.tests.d.ts.map +1 -1
- package/dist/tests/y-map.tests.d.ts +0 -3
- package/dist/tests/y-map.tests.d.ts.map +1 -1
- package/dist/tests/y-text.tests.d.ts +1 -1
- package/dist/tests/y-text.tests.d.ts.map +1 -1
- package/dist/tests/y-xml.tests.d.ts +0 -1
- package/dist/tests/y-xml.tests.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/index.js +152 -0
- package/src/internals.js +35 -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 +152 -0
- package/src/structs/GC.js +80 -0
- package/src/structs/Item.js +841 -0
- package/src/structs/Skip.js +75 -0
- package/src/utils/AttributionManager.js +653 -0
- package/src/utils/Doc.js +266 -0
- package/src/utils/EventHandler.js +87 -0
- package/src/utils/ID.js +89 -0
- package/src/utils/IdMap.js +673 -0
- package/src/utils/IdSet.js +825 -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 +671 -0
- package/src/utils/UndoManager.js +406 -0
- package/src/utils/UpdateDecoder.js +281 -0
- package/src/utils/UpdateEncoder.js +327 -0
- package/src/utils/YEvent.js +189 -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/meta.js +97 -0
- package/src/utils/ts.js +3 -0
- package/src/utils/updates.js +711 -0
- package/src/ytype.js +1962 -0
- package/dist/Skip-wRT7BKFP.js +0 -11877
- package/dist/Skip-wRT7BKFP.js.map +0 -1
- package/dist/index-BV-j5wdP.js +0 -163
- package/dist/index-BV-j5wdP.js.map +0 -1
- package/dist/internals.js +0 -25
- package/dist/internals.js.map +0 -1
- package/dist/src/types/AbstractType.d.ts +0 -239
- package/dist/src/types/AbstractType.d.ts.map +0 -1
- package/dist/src/types/YArray.d.ts +0 -128
- package/dist/src/types/YArray.d.ts.map +0 -1
- package/dist/src/types/YMap.d.ts +0 -112
- package/dist/src/types/YMap.d.ts.map +0 -1
- package/dist/src/types/YText.d.ts +0 -216
- package/dist/src/types/YText.d.ts.map +0 -1
- package/dist/src/types/YXmlElement.d.ts +0 -106
- package/dist/src/types/YXmlElement.d.ts.map +0 -1
- package/dist/src/types/YXmlFragment.d.ts +0 -143
- package/dist/src/types/YXmlFragment.d.ts.map +0 -1
- package/dist/src/types/YXmlHook.d.ts +0 -32
- package/dist/src/types/YXmlHook.d.ts.map +0 -1
- package/dist/src/types/YXmlText.d.ts +0 -34
- package/dist/src/types/YXmlText.d.ts.map +0 -1
- package/dist/src/utils/AbstractConnector.d.ts +0 -20
- package/dist/src/utils/AbstractConnector.d.ts.map +0 -1
- package/dist/src/utils/types.d.ts +0 -7
- package/dist/src/utils/types.d.ts.map +0 -1
- package/dist/testHelper.js +0 -617
- package/dist/testHelper.js.map +0 -1
- package/dist/yjs.js +0 -26
- package/dist/yjs.js.map +0 -1
package/dist/index-BV-j5wdP.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
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 = '__ $YJS14$ __';
|
|
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-BV-j5wdP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-BV-j5wdP.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 = '__ $YJS14$ __'\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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/internals.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
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-wRT7BKFP.js';
|
|
2
|
-
import 'lib0/observable';
|
|
3
|
-
import 'lib0/array';
|
|
4
|
-
import 'lib0/math';
|
|
5
|
-
import 'lib0/encoding';
|
|
6
|
-
import 'lib0/decoding';
|
|
7
|
-
import 'lib0/traits';
|
|
8
|
-
import 'lib0/random';
|
|
9
|
-
import 'lib0/map';
|
|
10
|
-
import 'lib0/promise';
|
|
11
|
-
import 'lib0/buffer';
|
|
12
|
-
import 'lib0/error';
|
|
13
|
-
import 'lib0/function';
|
|
14
|
-
import 'lib0/set';
|
|
15
|
-
import 'lib0/logging';
|
|
16
|
-
import 'lib0/time';
|
|
17
|
-
import 'lib0/binary';
|
|
18
|
-
import 'lib0/string';
|
|
19
|
-
import 'lib0/delta';
|
|
20
|
-
import 'lib0/hash/rabin';
|
|
21
|
-
import 'lib0/iterator';
|
|
22
|
-
import 'lib0/object';
|
|
23
|
-
import 'lib0/environment';
|
|
24
|
-
import 'lib0/schema';
|
|
25
|
-
//# sourceMappingURL=internals.js.map
|
package/dist/internals.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internals.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
export function warnPrematureAccess(): void;
|
|
2
|
-
export class ArraySearchMarker {
|
|
3
|
-
/**
|
|
4
|
-
* @param {Item} p
|
|
5
|
-
* @param {number} index
|
|
6
|
-
*/
|
|
7
|
-
constructor(p: Item, index: number);
|
|
8
|
-
p: Item;
|
|
9
|
-
index: number;
|
|
10
|
-
timestamp: number;
|
|
11
|
-
}
|
|
12
|
-
export function findMarker(yarray: import("../utils/types.js").YType, index: number): ArraySearchMarker | null;
|
|
13
|
-
export function updateMarkerChanges(searchMarker: Array<ArraySearchMarker>, index: number, len: number): void;
|
|
14
|
-
export function getTypeChildren(t: import("../utils/types.js").YType): Array<Item>;
|
|
15
|
-
export function callTypeObservers(type: import("../utils/types.js").YType, transaction: Transaction, event: YEvent<any>): void;
|
|
16
|
-
/**
|
|
17
|
-
* Abstract Yjs Type class
|
|
18
|
-
* @template {delta.Delta<any,any,any,any,any>} [EventDelta=any]
|
|
19
|
-
* @template {AbstractType<any,any>} [Self=any]
|
|
20
|
-
*/
|
|
21
|
-
export class AbstractType<EventDelta extends delta.Delta<any, any, any, any, any> = any, Self extends AbstractType<any, any> = any> {
|
|
22
|
-
/**
|
|
23
|
-
* @type {Item|null}
|
|
24
|
-
*/
|
|
25
|
-
_item: Item | null;
|
|
26
|
-
/**
|
|
27
|
-
* @type {Map<string,Item>}
|
|
28
|
-
*/
|
|
29
|
-
_map: Map<string, Item>;
|
|
30
|
-
/**
|
|
31
|
-
* @type {Item|null}
|
|
32
|
-
*/
|
|
33
|
-
_start: Item | null;
|
|
34
|
-
/**
|
|
35
|
-
* @type {Doc|null}
|
|
36
|
-
*/
|
|
37
|
-
doc: Doc | null;
|
|
38
|
-
_length: number;
|
|
39
|
-
/**
|
|
40
|
-
* Event handlers
|
|
41
|
-
* @type {EventHandler<YEvent<Self>,Transaction>}
|
|
42
|
-
*/
|
|
43
|
-
_eH: EventHandler<YEvent<Self>, Transaction>;
|
|
44
|
-
/**
|
|
45
|
-
* Deep event handlers
|
|
46
|
-
* @type {EventHandler<Array<YEvent<any>>,Transaction>}
|
|
47
|
-
*/
|
|
48
|
-
_dEH: EventHandler<Array<YEvent<any>>, Transaction>;
|
|
49
|
-
/**
|
|
50
|
-
* @type {null | Array<ArraySearchMarker>}
|
|
51
|
-
*/
|
|
52
|
-
_searchMarker: null | Array<ArraySearchMarker>;
|
|
53
|
-
/**
|
|
54
|
-
* @type {EventDelta?}
|
|
55
|
-
*/
|
|
56
|
-
_prelim: EventDelta | null;
|
|
57
|
-
/**
|
|
58
|
-
* Returns a fresh delta that can be used to change this YType.
|
|
59
|
-
* @type {EventDelta}
|
|
60
|
-
*/
|
|
61
|
-
get change(): EventDelta;
|
|
62
|
-
/**
|
|
63
|
-
* @return {import('../utils/types.js').YType|null}
|
|
64
|
-
*/
|
|
65
|
-
get parent(): import("../utils/types.js").YType | null;
|
|
66
|
-
/**
|
|
67
|
-
* Integrate this type into the Yjs instance.
|
|
68
|
-
*
|
|
69
|
-
* * Save this struct in the os
|
|
70
|
-
* * This type is sent to other client
|
|
71
|
-
* * Observer functions are fired
|
|
72
|
-
*
|
|
73
|
-
* @param {Doc} y The Yjs instance
|
|
74
|
-
* @param {Item|null} item
|
|
75
|
-
*/
|
|
76
|
-
_integrate(y: Doc, item: Item | null): void;
|
|
77
|
-
/**
|
|
78
|
-
* @return {Self}
|
|
79
|
-
*/
|
|
80
|
-
_copy(): Self;
|
|
81
|
-
/**
|
|
82
|
-
* Makes a copy of this data type that can be included somewhere else.
|
|
83
|
-
*
|
|
84
|
-
* Note that the content is only readable _after_ it has been included somewhere in the Ydoc.
|
|
85
|
-
*
|
|
86
|
-
* @return {Self}
|
|
87
|
-
*/
|
|
88
|
-
clone(): Self;
|
|
89
|
-
/**
|
|
90
|
-
* @param {UpdateEncoderV1 | UpdateEncoderV2} _encoder
|
|
91
|
-
*/
|
|
92
|
-
_write(_encoder: UpdateEncoderV1 | UpdateEncoderV2): void;
|
|
93
|
-
/**
|
|
94
|
-
* The first non-deleted item
|
|
95
|
-
*/
|
|
96
|
-
get _first(): Item | null;
|
|
97
|
-
/**
|
|
98
|
-
* Creates YEvent and calls all type observers.
|
|
99
|
-
* Must be implemented by each type.
|
|
100
|
-
*
|
|
101
|
-
* @param {Transaction} transaction
|
|
102
|
-
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
103
|
-
*/
|
|
104
|
-
_callObserver(transaction: Transaction, parentSubs: Set<null | string>): void;
|
|
105
|
-
/**
|
|
106
|
-
* Observe all events that are created on this type.
|
|
107
|
-
*
|
|
108
|
-
* @template {(target: YEvent<Self>, tr: Transaction) => void} F
|
|
109
|
-
* @param {F} f Observer function
|
|
110
|
-
* @return {F}
|
|
111
|
-
*/
|
|
112
|
-
observe<F extends (target: YEvent<Self>, tr: Transaction) => void>(f: F): F;
|
|
113
|
-
/**
|
|
114
|
-
* Observe all events that are created by this type and its children.
|
|
115
|
-
*
|
|
116
|
-
* @template {function(Array<YEvent<any>>,Transaction):void} F
|
|
117
|
-
* @param {F} f Observer function
|
|
118
|
-
* @return {F}
|
|
119
|
-
*/
|
|
120
|
-
observeDeep<F extends (arg0: Array<YEvent<any>>, arg1: Transaction) => void>(f: F): F;
|
|
121
|
-
/**
|
|
122
|
-
* Unregister an observer function.
|
|
123
|
-
*
|
|
124
|
-
* @param {(type:YEvent<Self>,tr:Transaction)=>void} f Observer function
|
|
125
|
-
*/
|
|
126
|
-
unobserve(f: (type: YEvent<Self>, tr: Transaction) => void): void;
|
|
127
|
-
/**
|
|
128
|
-
* Unregister an observer function.
|
|
129
|
-
*
|
|
130
|
-
* @param {function(Array<YEvent<any>>,Transaction):void} f Observer function
|
|
131
|
-
*/
|
|
132
|
-
unobserveDeep(f: (arg0: Array<YEvent<any>>, arg1: Transaction) => void): void;
|
|
133
|
-
/**
|
|
134
|
-
* @abstract
|
|
135
|
-
* @return {any}
|
|
136
|
-
*/
|
|
137
|
-
toJSON(): any;
|
|
138
|
-
/**
|
|
139
|
-
* Render the difference to another ydoc (which can be empty) and highlight the differences with
|
|
140
|
-
* attributions.
|
|
141
|
-
*
|
|
142
|
-
* Note that deleted content that was not deleted in prevYdoc is rendered as an insertion with the
|
|
143
|
-
* attribution `{ isDeleted: true, .. }`.
|
|
144
|
-
*
|
|
145
|
-
* @template {boolean} [Deep=false]
|
|
146
|
-
*
|
|
147
|
-
* @param {AbstractAttributionManager} am
|
|
148
|
-
* @param {Object} [opts]
|
|
149
|
-
* @param {import('../utils/IdSet.js').IdSet?} [opts.itemsToRender]
|
|
150
|
-
* @param {boolean} [opts.retainInserts] - if true, retain rendered inserts with attributions
|
|
151
|
-
* @param {boolean} [opts.retainDeletes] - if true, retain rendered+attributed deletes only
|
|
152
|
-
* @param {import('../utils/IdSet.js').IdSet?} [opts.deletedItems] - used for computing prevItem in attributes
|
|
153
|
-
* @param {Map<import('../utils/types.js').YType,Set<string|null>>|null} [opts.modified] - set of types that should be rendered as modified children
|
|
154
|
-
* @param {Deep} [opts.deep] - render child types as delta
|
|
155
|
-
* @return {Deep extends true ? ToDeepEventDelta<EventDelta> : EventDelta} The Delta representation of this type.
|
|
156
|
-
*
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
public getContent<Deep extends boolean = false>(am?: AbstractAttributionManager, opts?: {
|
|
160
|
-
itemsToRender?: import("../internals.js").IdSet | null | undefined;
|
|
161
|
-
retainInserts?: boolean | undefined;
|
|
162
|
-
retainDeletes?: boolean | undefined;
|
|
163
|
-
deletedItems?: import("../internals.js").IdSet | null | undefined;
|
|
164
|
-
modified?: Map<AbstractType<any, any>, Set<string | null>> | null | undefined;
|
|
165
|
-
deep?: Deep | undefined;
|
|
166
|
-
}): Deep extends true ? ToDeepEventDelta<EventDelta> : EventDelta;
|
|
167
|
-
/**
|
|
168
|
-
* Render the difference to another ydoc (which can be empty) and highlight the differences with
|
|
169
|
-
* attributions.
|
|
170
|
-
*
|
|
171
|
-
* @param {AbstractAttributionManager} am
|
|
172
|
-
* @return {ToDeepEventDelta<EventDelta>}
|
|
173
|
-
*/
|
|
174
|
-
getContentDeep(am?: AbstractAttributionManager): ToDeepEventDelta<EventDelta>;
|
|
175
|
-
/**
|
|
176
|
-
* Apply a {@link Delta} on this shared type.
|
|
177
|
-
*
|
|
178
|
-
* @param {delta.Delta<any,any,any,any,any>} d The changes to apply on this element.
|
|
179
|
-
* @param {AbstractAttributionManager} am
|
|
180
|
-
*
|
|
181
|
-
* @public
|
|
182
|
-
*/
|
|
183
|
-
public applyDelta(d: delta.Delta<any, any, any, any, any>, am?: AbstractAttributionManager): void;
|
|
184
|
-
}
|
|
185
|
-
export function equalAttrs(a: any, b: any): boolean;
|
|
186
|
-
export function typeListSlice(type: AbstractType<any>, start: number, end: number): Array<any>;
|
|
187
|
-
export function typeListToArray(type: import("../utils/types.js").YType): Array<any>;
|
|
188
|
-
export function typeListToArraySnapshot(type: AbstractType<any>, snapshot: Snapshot): Array<any>;
|
|
189
|
-
export function typeListForEach(type: AbstractType<any>, f: (arg0: any, arg1: number, arg2: any) => void): void;
|
|
190
|
-
export function typeListMap<C, R>(type: AbstractType<any>, f: (arg0: C, arg1: number, arg2: AbstractType<any>) => R): Array<R>;
|
|
191
|
-
export function typeListCreateIterator(type: AbstractType): IterableIterator<any>;
|
|
192
|
-
export function typeListForEachSnapshot(type: AbstractType, f: (arg0: any, arg1: number, arg2: AbstractType) => void, snapshot: Snapshot): void;
|
|
193
|
-
export function typeListGet(type: import("../utils/types.js").YType, index: number): any;
|
|
194
|
-
export function typeListInsertGenericsAfter(transaction: Transaction, parent: YType_, referenceItem: Item | null, content: Array<_YValue>): void;
|
|
195
|
-
export function typeListInsertGenerics(transaction: Transaction, parent: YType_, index: number, content: Array<{
|
|
196
|
-
[x: string]: any;
|
|
197
|
-
} | Array<any> | number | null | string | Uint8Array>): void;
|
|
198
|
-
export function typeListPushGenerics(transaction: Transaction, parent: YType_, content: Array<{
|
|
199
|
-
[x: string]: any;
|
|
200
|
-
} | Array<any> | number | null | string | Uint8Array>): void;
|
|
201
|
-
export function typeListDelete(transaction: Transaction, parent: import("../utils/types.js").YType, index: number, length: number): void;
|
|
202
|
-
export function typeMapDelete(transaction: Transaction, parent: YType_, key: string): void;
|
|
203
|
-
export function typeMapSet(transaction: Transaction, parent: AbstractType, key: string, value: _YValue): void;
|
|
204
|
-
export function typeMapGet(parent: AbstractType<any, any>, key: string): {
|
|
205
|
-
[x: string]: any;
|
|
206
|
-
} | number | null | Array<any> | string | Uint8Array | AbstractType<any> | undefined;
|
|
207
|
-
export function typeMapGetAll(parent: AbstractType<any>): {
|
|
208
|
-
[x: string]: string | number | any[] | Uint8Array<ArrayBufferLike> | AbstractType<any, any> | {
|
|
209
|
-
[x: string]: any;
|
|
210
|
-
} | null | undefined;
|
|
211
|
-
};
|
|
212
|
-
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, optsAll?: any): void;
|
|
213
|
-
export function typeMapHas(parent: AbstractType<any>, key: string): boolean;
|
|
214
|
-
export function typeMapGetSnapshot(parent: AbstractType<any>, key: string, snapshot: Snapshot): {
|
|
215
|
-
[x: string]: any;
|
|
216
|
-
} | number | null | Array<any> | string | Uint8Array | AbstractType<any> | undefined;
|
|
217
|
-
export function typeMapGetAllSnapshot(parent: AbstractType<any>, snapshot: Snapshot): {
|
|
218
|
-
[x: string]: string | number | any[] | Uint8Array<ArrayBufferLike> | AbstractType<any, any> | {
|
|
219
|
-
[x: string]: any;
|
|
220
|
-
} | null | undefined;
|
|
221
|
-
};
|
|
222
|
-
export function createMapIterator(type: AbstractType<any> & {
|
|
223
|
-
_map: Map<string, Item>;
|
|
224
|
-
}): IterableIterator<Array<any>>;
|
|
225
|
-
export type YType_ = import("../utils/types.js").YType;
|
|
226
|
-
export type _YValue = import("../utils/types.js").YValue;
|
|
227
|
-
export type ToDeepEventDelta<D extends delta.Delta<any, any, any, any, any>> = D extends delta.Delta<infer N, infer Attrs, infer Cs, infer Text, any> ? delta.Delta<N, { [K in keyof Attrs]: TypeToDelta<Attrs[K]>; }, TypeToDelta<Cs>, Text> : D;
|
|
228
|
-
export type TypeToDelta<T extends unknown> = (Extract<T, AbstractType<any>> extends AbstractType<infer D> ? (unknown extends D ? never : ToDeepEventDelta<D>) : never) | Exclude<T, AbstractType<any>>;
|
|
229
|
-
import { Item } from '../internals.js';
|
|
230
|
-
import { Transaction } from '../internals.js';
|
|
231
|
-
import { YEvent } from '../internals.js';
|
|
232
|
-
import * as delta from 'lib0/delta';
|
|
233
|
-
import { Doc } from '../internals.js';
|
|
234
|
-
import { EventHandler } from '../internals.js';
|
|
235
|
-
import { UpdateEncoderV1 } from '../internals.js';
|
|
236
|
-
import { UpdateEncoderV2 } from '../internals.js';
|
|
237
|
-
import { AbstractAttributionManager } from '../internals.js';
|
|
238
|
-
import { Snapshot } from '../internals.js';
|
|
239
|
-
//# sourceMappingURL=AbstractType.d.ts.map
|
|
@@ -1 +0,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,M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GAAE,EAC7C,WAAW,CAAC,EAAE,CAAC,EACf,IAAI,CACL,GACD,CAAC;wBAKW,CAAC,oBACP,CAAC,OAAO,CAAC,CAAC,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,SAAS,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,SAAS,CAAC,GAAG,KAAK,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC;qBAzvB7J,iBAAiB;4BAAjB,iBAAiB;uBAAjB,iBAAiB;uBAED,YAAY;oBAF5B,iBAAiB;6BAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;2CAAjB,iBAAiB;yBAAjB,iBAAiB"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A shared Array implementation.
|
|
3
|
-
* @template {import('../utils/types.js').YValue} T
|
|
4
|
-
* @extends {AbstractType<delta.ArrayDelta<T>,YArray<T>>}
|
|
5
|
-
* @implements {Iterable<T>}
|
|
6
|
-
*/
|
|
7
|
-
export class YArray<T extends import("../utils/types.js").YValue> extends AbstractType<delta.ArrayDelta<T>, YArray<T>> implements Iterable<T> {
|
|
8
|
-
/**
|
|
9
|
-
* Construct a new YArray containing the specified items.
|
|
10
|
-
* @template {import('../utils/types.js').YValue} T
|
|
11
|
-
* @param {Array<T>} items
|
|
12
|
-
* @return {YArray<T>}
|
|
13
|
-
*/
|
|
14
|
-
static from<T_1 extends import("../utils/types.js").YValue>(items: Array<T_1>): YArray<T_1>;
|
|
15
|
-
constructor();
|
|
16
|
-
/**
|
|
17
|
-
* @type {Array<any>?}
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
private _prelimContent;
|
|
21
|
-
get length(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Inserts new content at an index.
|
|
24
|
-
*
|
|
25
|
-
* Important: This function expects an array of content. Not just a content
|
|
26
|
-
* object. The reason for this "weirdness" is that inserting several elements
|
|
27
|
-
* is very efficient when it is done as a single operation.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // Insert character 'a' at position 0
|
|
31
|
-
* yarray.insert(0, ['a'])
|
|
32
|
-
* // Insert numbers 1, 2 at position 1
|
|
33
|
-
* yarray.insert(1, [1, 2])
|
|
34
|
-
*
|
|
35
|
-
* @param {number} index The index to insert content at.
|
|
36
|
-
* @param {Array<T>} content The array of content
|
|
37
|
-
*/
|
|
38
|
-
insert(index: number, content: Array<T>): void;
|
|
39
|
-
/**
|
|
40
|
-
* Appends content to this YArray.
|
|
41
|
-
*
|
|
42
|
-
* @param {Array<T>} content Array of content to append.
|
|
43
|
-
*
|
|
44
|
-
* @todo Use the following implementation in all types.
|
|
45
|
-
*/
|
|
46
|
-
push(content: Array<T>): void;
|
|
47
|
-
/**
|
|
48
|
-
* Prepends content to this YArray.
|
|
49
|
-
*
|
|
50
|
-
* @param {Array<T>} content Array of content to prepend.
|
|
51
|
-
*/
|
|
52
|
-
unshift(content: Array<T>): void;
|
|
53
|
-
/**
|
|
54
|
-
* Deletes elements starting from an index.
|
|
55
|
-
*
|
|
56
|
-
* @param {number} index Index at which to start deleting elements
|
|
57
|
-
* @param {number} length The number of elements to remove. Defaults to 1.
|
|
58
|
-
*/
|
|
59
|
-
delete(index: number, length?: number): void;
|
|
60
|
-
/**
|
|
61
|
-
* Returns the i-th element from a YArray.
|
|
62
|
-
*
|
|
63
|
-
* @param {number} index The index of the element to return from the YArray
|
|
64
|
-
* @return {T}
|
|
65
|
-
*/
|
|
66
|
-
get(index: number): T;
|
|
67
|
-
/**
|
|
68
|
-
* Transforms this YArray to a JavaScript Array.
|
|
69
|
-
*
|
|
70
|
-
* @return {Array<T>}
|
|
71
|
-
*/
|
|
72
|
-
toArray(): Array<T>;
|
|
73
|
-
/**
|
|
74
|
-
* Render the difference to another ydoc (which can be empty) and highlight the differences with
|
|
75
|
-
* attributions.
|
|
76
|
-
*
|
|
77
|
-
* Note that deleted content that was not deleted in prevYdoc is rendered as an insertion with the
|
|
78
|
-
* attribution `{ isDeleted: true, .. }`.
|
|
79
|
-
*
|
|
80
|
-
* @param {AbstractAttributionManager} am
|
|
81
|
-
* @return {delta.ArrayDelta<import('./AbstractType.js').TypeToDelta<T>>} The Delta representation of this type.
|
|
82
|
-
*
|
|
83
|
-
* @public
|
|
84
|
-
*/
|
|
85
|
-
public getContentDeep(am?: AbstractAttributionManager): delta.ArrayDelta<import("./AbstractType.js").TypeToDelta<T>>;
|
|
86
|
-
/**
|
|
87
|
-
* Returns a portion of this YArray into a JavaScript Array selected
|
|
88
|
-
* from start to end (end not included).
|
|
89
|
-
*
|
|
90
|
-
* @param {number} [start]
|
|
91
|
-
* @param {number} [end]
|
|
92
|
-
* @return {Array<T>}
|
|
93
|
-
*/
|
|
94
|
-
slice(start?: number, end?: number): Array<T>;
|
|
95
|
-
/**
|
|
96
|
-
* Transforms this Shared Type to a JSON object.
|
|
97
|
-
*
|
|
98
|
-
* @return {Array<any>}
|
|
99
|
-
*/
|
|
100
|
-
toJSON(): Array<any>;
|
|
101
|
-
/**
|
|
102
|
-
* Returns an Array with the result of calling a provided function on every
|
|
103
|
-
* element of this YArray.
|
|
104
|
-
*
|
|
105
|
-
* @template M
|
|
106
|
-
* @param {function(T,number,YArray<T>):M} f Function that produces an element of the new Array
|
|
107
|
-
* @return {Array<M>} A new array with each element being the result of the
|
|
108
|
-
* callback function
|
|
109
|
-
*/
|
|
110
|
-
map<M>(f: (arg0: T, arg1: number, arg2: YArray<T>) => M): Array<M>;
|
|
111
|
-
/**
|
|
112
|
-
* Executes a provided function once on every element of this YArray.
|
|
113
|
-
*
|
|
114
|
-
* @param {function(T,number,YArray<T>):void} f A function to execute on every element of this YArray.
|
|
115
|
-
*/
|
|
116
|
-
forEach(f: (arg0: T, arg1: number, arg2: YArray<T>) => void): void;
|
|
117
|
-
/**
|
|
118
|
-
* @return {IterableIterator<T>}
|
|
119
|
-
*/
|
|
120
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
121
|
-
}
|
|
122
|
-
export function readYArray(_decoder: UpdateDecoderV1 | UpdateDecoderV2): import("../utils/types.js").YType;
|
|
123
|
-
import * as delta from 'lib0/delta';
|
|
124
|
-
import { AbstractType } from '../internals.js';
|
|
125
|
-
import { AbstractAttributionManager } from '../internals.js';
|
|
126
|
-
import { UpdateDecoderV1 } from '../internals.js';
|
|
127
|
-
import { UpdateDecoderV2 } from '../internals.js';
|
|
128
|
-
//# sourceMappingURL=YArray.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YArray.d.ts","sourceRoot":"","sources":["../../../src/types/YArray.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAGH,oBANkD,CAAC,SAAtC,OAAQ,mBAAmB,EAAE,MAAO,kEAEjC,QAAQ,CAAC,CAAC;IAkBxB;;;;;OAKG;IACH,wBAJa,OAAQ,mBAAmB,EAAE,MAAO,SACtC,KAAK,CAAC,GAAC,CAAC,GACP,MAAM,CAAC,GAAC,CAAC,CASpB;IA1BD,cAWC;IATC;;;OAGG;IACH,uBAAwB;IAyD1B,qBAGC;IAED;;;;;;;;;;;;;;;OAeG;IACH,cAHW,MAAM,WACN,KAAK,CAAC,CAAC,CAAC,QAUlB;IAED;;;;;;OAMG;IACH,cAJW,KAAK,CAAC,CAAC,CAAC,QAYlB;IAED;;;;OAIG;IACH,iBAFW,KAAK,CAAC,CAAC,CAAC,QAIlB;IAED;;;;;OAKG;IACH,cAHW,MAAM,WACN,MAAM,QAUhB;IAED;;;;;OAKG;IACH,WAHW,MAAM,GACL,CAAC,CAIZ;IAED;;;;OAIG;IACH,WAFY,KAAK,CAAC,CAAC,CAAC,CAInB;IAED;;;;;;;;;;;OAWG;IACH,2BALW,0BAA0B,GACzB,KAAK,CAAC,UAAU,CAAC,OAAO,mBAAmB,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAM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