@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,25 @@
|
|
|
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.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internals.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Doc, Transaction, YArray as Array, YMap as Map, YText as Text, YXmlText as XmlText, YXmlHook as XmlHook, YXmlElement as XmlElement, YXmlFragment as XmlFragment, YEvent, Item, AbstractStruct, GC, Skip, ContentBinary, ContentDeleted, ContentDoc, ContentEmbed, ContentFormat, ContentJSON, ContentAny, ContentString, ContentType, AbstractType, getTypeChildren, createRelativePositionFromTypeIndex, createRelativePositionFromJSON, createAbsolutePositionFromRelativePosition, compareRelativePositions, AbsolutePosition, RelativePosition, ID, createID, compareIDs, getState, Snapshot, createSnapshot, cleanupYTextFormatting, snapshot, emptySnapshot, findRootTypeKey, findIndexSS, getItem, getItemCleanStart, getItemCleanEnd, typeListToArraySnapshot, typeMapGetSnapshot, typeMapGetAllSnapshot, createDocFromSnapshot, applyUpdate, applyUpdateV2, readUpdate, readUpdateV2, encodeStateAsUpdate, encodeStateAsUpdateV2, encodeStateVector, UndoManager, decodeSnapshot, encodeSnapshot, decodeSnapshotV2, encodeSnapshotV2, decodeStateVector, logUpdate, logUpdateV2, decodeUpdate, decodeUpdateV2, relativePositionToJSON, isParentOf, equalSnapshots, tryGc, transact, AbstractConnector, logType, mergeUpdates, mergeUpdatesV2, encodeStateVectorFromUpdate, encodeStateVectorFromUpdateV2, encodeRelativePosition, decodeRelativePosition, diffUpdate, diffUpdateV2, convertUpdateFormatV1ToV2, convertUpdateFormatV2ToV1, obfuscateUpdate, obfuscateUpdateV2, UpdateEncoderV1, UpdateEncoderV2, UpdateDecoderV1, UpdateDecoderV2, snapshotContainsUpdate, IdSet, equalIdSets, createDeleteSetFromStructStore, IdMap, createIdMap, createAttributionItem, createInsertSetFromStructStore as createInsertionSetFromStructStore, diffIdMap, diffIdSet, AttributionItem as Attribution, encodeIdMap, createIdMapFromIdSet, TwosetAttributionManager, noAttributionsManager, AbstractAttributionManager, iterateStructsByIdSet, createAttributionManagerFromDiff, DiffAttributionManager, createIdSet, mergeIdSets, cloneDoc, readUpdateIdRanges, readUpdateIdRangesV2, insertIntoIdMap, insertIntoIdSet, mergeIdMaps, readIdMap, readIdSet, decodeIdMap, diffDocsToDelta } from "./internals.js";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./utils/AbstractConnector.js";
|
|
2
|
+
export * from "./utils/IdSet.js";
|
|
3
|
+
export * from "./utils/Doc.js";
|
|
4
|
+
export * from "./utils/UpdateDecoder.js";
|
|
5
|
+
export * from "./utils/UpdateEncoder.js";
|
|
6
|
+
export * from "./utils/encoding.js";
|
|
7
|
+
export * from "./utils/EventHandler.js";
|
|
8
|
+
export * from "./utils/ID.js";
|
|
9
|
+
export * from "./utils/isParentOf.js";
|
|
10
|
+
export * from "./utils/logging.js";
|
|
11
|
+
export * from "./utils/RelativePosition.js";
|
|
12
|
+
export * from "./utils/Snapshot.js";
|
|
13
|
+
export * from "./utils/StructStore.js";
|
|
14
|
+
export * from "./utils/Transaction.js";
|
|
15
|
+
export * from "./utils/UndoManager.js";
|
|
16
|
+
export * from "./utils/updates.js";
|
|
17
|
+
export * from "./utils/YEvent.js";
|
|
18
|
+
export * from "./utils/StructSet.js";
|
|
19
|
+
export * from "./utils/IdMap.js";
|
|
20
|
+
export * from "./utils/AttributionManager.js";
|
|
21
|
+
export * from "./utils/delta-helpers.js";
|
|
22
|
+
export * from "./types/AbstractType.js";
|
|
23
|
+
export * from "./types/YArray.js";
|
|
24
|
+
export * from "./types/YMap.js";
|
|
25
|
+
export * from "./types/YText.js";
|
|
26
|
+
export * from "./types/YXmlFragment.js";
|
|
27
|
+
export * from "./types/YXmlElement.js";
|
|
28
|
+
export * from "./types/YXmlHook.js";
|
|
29
|
+
export * from "./types/YXmlText.js";
|
|
30
|
+
export * from "./structs/AbstractStruct.js";
|
|
31
|
+
export * from "./structs/GC.js";
|
|
32
|
+
export * from "./structs/ContentBinary.js";
|
|
33
|
+
export * from "./structs/ContentDeleted.js";
|
|
34
|
+
export * from "./structs/ContentDoc.js";
|
|
35
|
+
export * from "./structs/ContentEmbed.js";
|
|
36
|
+
export * from "./structs/ContentFormat.js";
|
|
37
|
+
export * from "./structs/ContentJSON.js";
|
|
38
|
+
export * from "./structs/ContentAny.js";
|
|
39
|
+
export * from "./structs/ContentString.js";
|
|
40
|
+
export * from "./structs/ContentType.js";
|
|
41
|
+
export * from "./structs/Item.js";
|
|
42
|
+
export * from "./structs/Skip.js";
|
|
43
|
+
//# sourceMappingURL=internals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../../src/internals.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export class AbstractStruct {
|
|
2
|
+
/**
|
|
3
|
+
* @param {ID} id
|
|
4
|
+
* @param {number} length
|
|
5
|
+
*/
|
|
6
|
+
constructor(id: ID, length: number);
|
|
7
|
+
id: ID;
|
|
8
|
+
length: number;
|
|
9
|
+
/**
|
|
10
|
+
* @type {boolean}
|
|
11
|
+
*/
|
|
12
|
+
get deleted(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Merge this struct with the item to the right.
|
|
15
|
+
* This method is already assuming that `this.id.clock + this.length === this.id.clock`.
|
|
16
|
+
* Also this method does *not* remove right from StructStore!
|
|
17
|
+
* @param {AbstractStruct} right
|
|
18
|
+
* @return {boolean} whether this merged with right
|
|
19
|
+
*/
|
|
20
|
+
mergeWith(right: AbstractStruct): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
23
|
+
* @param {number} offset
|
|
24
|
+
* @param {number} encodingRef
|
|
25
|
+
*/
|
|
26
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, encodingRef: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* @param {Transaction} transaction
|
|
29
|
+
* @param {number} offset
|
|
30
|
+
*/
|
|
31
|
+
integrate(transaction: Transaction, offset: number): void;
|
|
32
|
+
/**
|
|
33
|
+
* @param {number} diff
|
|
34
|
+
* @return {import('../internals.js').GC|import('../internals.js').Item}
|
|
35
|
+
*/
|
|
36
|
+
splice(diff: number): import("../internals.js").GC | import("../internals.js").Item;
|
|
37
|
+
}
|
|
38
|
+
import { ID } from '../internals.js';
|
|
39
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
40
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
41
|
+
import { Transaction } from '../internals.js';
|
|
42
|
+
//# sourceMappingURL=AbstractStruct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractStruct.d.ts","sourceRoot":"","sources":["../../../src/structs/AbstractStruct.js"],"names":[],"mappings":"AAMA;IACE;;;OAGG;IACH,gBAHW,EAAE,UACF,MAAM,EAKhB;IAFC,OAAY;IACZ,eAAoB;IAGtB;;OAEG;IACH,eAFU,OAAO,CAIhB;IAED;;;;;;OAMG;IACH,iBAHW,cAAc,GACb,OAAO,CAIlB;IAED;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,UACjC,MAAM,eACN,MAAM,QAIhB;IAED;;;OAGG;IACH,uBAHW,WAAW,UACX,MAAM,QAIhB;IAED;;;OAGG;IACH,aAHW,MAAM,GACL,OAAO,iBAAiB,EAAE,EAAE,GAAC,OAAO,iBAAiB,EAAE,IAAI,CAItE;CACF;mBAxDM,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;4BAAjB,iBAAiB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export class ContentAny {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Array<any>} arr
|
|
4
|
+
*/
|
|
5
|
+
constructor(arr: Array<any>);
|
|
6
|
+
/**
|
|
7
|
+
* @type {Array<any>}
|
|
8
|
+
*/
|
|
9
|
+
arr: Array<any>;
|
|
10
|
+
/**
|
|
11
|
+
* @return {number}
|
|
12
|
+
*/
|
|
13
|
+
getLength(): number;
|
|
14
|
+
/**
|
|
15
|
+
* @return {Array<any>}
|
|
16
|
+
*/
|
|
17
|
+
getContent(): Array<any>;
|
|
18
|
+
/**
|
|
19
|
+
* @return {boolean}
|
|
20
|
+
*/
|
|
21
|
+
isCountable(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @return {ContentAny}
|
|
24
|
+
*/
|
|
25
|
+
copy(): ContentAny;
|
|
26
|
+
/**
|
|
27
|
+
* @param {number} offset
|
|
28
|
+
* @return {ContentAny}
|
|
29
|
+
*/
|
|
30
|
+
splice(offset: number): ContentAny;
|
|
31
|
+
/**
|
|
32
|
+
* @param {ContentAny} right
|
|
33
|
+
* @return {boolean}
|
|
34
|
+
*/
|
|
35
|
+
mergeWith(right: ContentAny): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @param {Transaction} transaction
|
|
38
|
+
* @param {Item} item
|
|
39
|
+
*/
|
|
40
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
41
|
+
/**
|
|
42
|
+
* @param {Transaction} transaction
|
|
43
|
+
*/
|
|
44
|
+
delete(transaction: Transaction): void;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Transaction} _tr
|
|
47
|
+
*/
|
|
48
|
+
gc(_tr: Transaction): void;
|
|
49
|
+
/**
|
|
50
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
51
|
+
* @param {number} offset
|
|
52
|
+
* @param {number} offsetEnd
|
|
53
|
+
*/
|
|
54
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* @return {number}
|
|
57
|
+
*/
|
|
58
|
+
getRef(): number;
|
|
59
|
+
}
|
|
60
|
+
export function readContentAny(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentAny;
|
|
61
|
+
import { Transaction } from '../internals.js';
|
|
62
|
+
import { Item } from '../internals.js';
|
|
63
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
64
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
65
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
66
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
67
|
+
//# sourceMappingURL=ContentAny.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentAny.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentAny.js"],"names":[],"mappings":"AASA;IACE;;OAEG;IACH,iBAFW,KAAK,CAAC,GAAG,CAAC,EAQpB;IALC;;OAEG;IACH,KAFU,KAAK,CAAC,GAAG,CAAC,CAEN;IAIhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,UAAU,CAIrB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,UAAU,CAMrB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACT,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,UACjC,MAAM,aACN,MAAM,QAShB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,wCAHI,eAAe,GAAG,eAAe,GAChC,UAAU,CASrB;4BAhHM,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export class ContentBinary {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Uint8Array} content
|
|
4
|
+
*/
|
|
5
|
+
constructor(content: Uint8Array);
|
|
6
|
+
content: Uint8Array<ArrayBufferLike>;
|
|
7
|
+
/**
|
|
8
|
+
* @return {number}
|
|
9
|
+
*/
|
|
10
|
+
getLength(): number;
|
|
11
|
+
/**
|
|
12
|
+
* @return {Array<any>}
|
|
13
|
+
*/
|
|
14
|
+
getContent(): Array<any>;
|
|
15
|
+
/**
|
|
16
|
+
* @return {boolean}
|
|
17
|
+
*/
|
|
18
|
+
isCountable(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @return {ContentBinary}
|
|
21
|
+
*/
|
|
22
|
+
copy(): ContentBinary;
|
|
23
|
+
/**
|
|
24
|
+
* @param {number} offset
|
|
25
|
+
* @return {ContentBinary}
|
|
26
|
+
*/
|
|
27
|
+
splice(offset: number): ContentBinary;
|
|
28
|
+
/**
|
|
29
|
+
* @param {ContentBinary} right
|
|
30
|
+
* @return {boolean}
|
|
31
|
+
*/
|
|
32
|
+
mergeWith(right: ContentBinary): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Transaction} transaction
|
|
35
|
+
* @param {Item} item
|
|
36
|
+
*/
|
|
37
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
38
|
+
/**
|
|
39
|
+
* @param {Transaction} transaction
|
|
40
|
+
*/
|
|
41
|
+
delete(transaction: Transaction): void;
|
|
42
|
+
/**
|
|
43
|
+
* @param {Transaction} _tr
|
|
44
|
+
*/
|
|
45
|
+
gc(_tr: Transaction): void;
|
|
46
|
+
/**
|
|
47
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
48
|
+
* @param {number} _offset
|
|
49
|
+
* @param {number} _offsetEnd
|
|
50
|
+
*/
|
|
51
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* @return {number}
|
|
54
|
+
*/
|
|
55
|
+
getRef(): number;
|
|
56
|
+
}
|
|
57
|
+
export function readContentBinary(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentBinary;
|
|
58
|
+
import { Transaction } from '../internals.js';
|
|
59
|
+
import { Item } from '../internals.js';
|
|
60
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
61
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
62
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
63
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
64
|
+
//# sourceMappingURL=ContentBinary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentBinary.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentBinary.js"],"names":[],"mappings":"AAMA;IACE;;OAEG;IACH,qBAFW,UAAU,EAIpB;IADC,qCAAsB;IAGxB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,aAAa,CAIxB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,aAAa,CAIxB;IAED;;;OAGG;IACH,iBAHW,aAAa,GACZ,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,2CAHI,eAAe,GAAG,eAAe,GAChC,aAAa,CAEuD;4BA1FzE,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export class ContentDeleted {
|
|
2
|
+
/**
|
|
3
|
+
* @param {number} len
|
|
4
|
+
*/
|
|
5
|
+
constructor(len: number);
|
|
6
|
+
len: number;
|
|
7
|
+
/**
|
|
8
|
+
* @return {number}
|
|
9
|
+
*/
|
|
10
|
+
getLength(): number;
|
|
11
|
+
/**
|
|
12
|
+
* @return {Array<any>}
|
|
13
|
+
*/
|
|
14
|
+
getContent(): Array<any>;
|
|
15
|
+
/**
|
|
16
|
+
* @return {boolean}
|
|
17
|
+
*/
|
|
18
|
+
isCountable(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @return {ContentDeleted}
|
|
21
|
+
*/
|
|
22
|
+
copy(): ContentDeleted;
|
|
23
|
+
/**
|
|
24
|
+
* @param {number} offset
|
|
25
|
+
* @return {ContentDeleted}
|
|
26
|
+
*/
|
|
27
|
+
splice(offset: number): ContentDeleted;
|
|
28
|
+
/**
|
|
29
|
+
* @param {ContentDeleted} right
|
|
30
|
+
* @return {boolean}
|
|
31
|
+
*/
|
|
32
|
+
mergeWith(right: ContentDeleted): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Transaction} transaction
|
|
35
|
+
* @param {Item} item
|
|
36
|
+
*/
|
|
37
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
38
|
+
/**
|
|
39
|
+
* @param {Transaction} _transaction
|
|
40
|
+
*/
|
|
41
|
+
delete(_transaction: Transaction): void;
|
|
42
|
+
/**
|
|
43
|
+
* @param {Transaction} _tr
|
|
44
|
+
*/
|
|
45
|
+
gc(_tr: Transaction): void;
|
|
46
|
+
/**
|
|
47
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
48
|
+
* @param {number} offset
|
|
49
|
+
* @param {number} offsetEnd
|
|
50
|
+
*/
|
|
51
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* @return {number}
|
|
54
|
+
*/
|
|
55
|
+
getRef(): number;
|
|
56
|
+
}
|
|
57
|
+
export function readContentDeleted(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentDeleted;
|
|
58
|
+
import { Transaction } from '../internals.js';
|
|
59
|
+
import { Item } from '../internals.js';
|
|
60
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
61
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
62
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
63
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
64
|
+
//# sourceMappingURL=ContentDeleted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentDeleted.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentDeleted.js"],"names":[],"mappings":"AAKA;IACE;;OAEG;IACH,iBAFW,MAAM,EAIhB;IADC,YAAc;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,cAAc,CAIzB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,cAAc,CAMzB;IAED;;;OAGG;IACH,iBAHW,cAAc,GACb,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAKd;IAED;;OAEG;IACH,qBAFW,WAAW,QAEE;IACxB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,UACjC,MAAM,aACN,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,4CAHI,eAAe,GAAG,eAAe,GAChC,cAAc,CAEwD;4BAjG3E,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export class ContentDoc {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Doc} doc
|
|
7
|
+
*/
|
|
8
|
+
constructor(doc: Doc);
|
|
9
|
+
/**
|
|
10
|
+
* @type {Doc}
|
|
11
|
+
*/
|
|
12
|
+
doc: Doc;
|
|
13
|
+
opts: any;
|
|
14
|
+
/**
|
|
15
|
+
* @return {number}
|
|
16
|
+
*/
|
|
17
|
+
getLength(): number;
|
|
18
|
+
/**
|
|
19
|
+
* @return {Array<any>}
|
|
20
|
+
*/
|
|
21
|
+
getContent(): Array<any>;
|
|
22
|
+
/**
|
|
23
|
+
* @return {boolean}
|
|
24
|
+
*/
|
|
25
|
+
isCountable(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @return {ContentDoc}
|
|
28
|
+
*/
|
|
29
|
+
copy(): ContentDoc;
|
|
30
|
+
/**
|
|
31
|
+
* @param {number} offset
|
|
32
|
+
* @return {ContentDoc}
|
|
33
|
+
*/
|
|
34
|
+
splice(offset: number): ContentDoc;
|
|
35
|
+
/**
|
|
36
|
+
* @param {ContentDoc} right
|
|
37
|
+
* @return {boolean}
|
|
38
|
+
*/
|
|
39
|
+
mergeWith(right: ContentDoc): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @param {Transaction} transaction
|
|
42
|
+
* @param {Item} item
|
|
43
|
+
*/
|
|
44
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Transaction} transaction
|
|
47
|
+
*/
|
|
48
|
+
delete(transaction: Transaction): void;
|
|
49
|
+
/**
|
|
50
|
+
* @param {Transaction} _tr
|
|
51
|
+
*/
|
|
52
|
+
gc(_tr: Transaction): void;
|
|
53
|
+
/**
|
|
54
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
55
|
+
* @param {number} _offset
|
|
56
|
+
* @param {number} _offsetEnd
|
|
57
|
+
*/
|
|
58
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
|
|
59
|
+
/**
|
|
60
|
+
* @return {number}
|
|
61
|
+
*/
|
|
62
|
+
getRef(): number;
|
|
63
|
+
}
|
|
64
|
+
export function readContentDoc(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentDoc;
|
|
65
|
+
import { Doc } from '../internals.js';
|
|
66
|
+
import { Transaction } from '../internals.js';
|
|
67
|
+
import { Item } from '../internals.js';
|
|
68
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
69
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
70
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
71
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
72
|
+
//# sourceMappingURL=ContentDoc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentDoc.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentDoc.js"],"names":[],"mappings":"AAYA;;GAEG;AACH;IACE;;OAEG;IACH,iBAFW,GAAG,EAwBb;IAlBC;;OAEG;IACH,KAFU,GAAG,CAEC;IAKd,UAAgB;IAYlB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,UAAU,CAIrB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,UAAU,CAIrB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACT,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QASd;IAED;;OAEG;IACH,oBAFW,WAAW,QAQrB;IAED;;OAEG;IACH,QAFW,WAAW,QAEX;IAEX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAKhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,wCAHI,eAAe,GAAG,eAAe,GAChC,UAAU,CAE6F;oBA1I5G,iBAAiB;4BAAjB,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export class ContentEmbed {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} embed
|
|
7
|
+
*/
|
|
8
|
+
constructor(embed: Object);
|
|
9
|
+
embed: Object;
|
|
10
|
+
/**
|
|
11
|
+
* @return {number}
|
|
12
|
+
*/
|
|
13
|
+
getLength(): number;
|
|
14
|
+
/**
|
|
15
|
+
* @return {Array<any>}
|
|
16
|
+
*/
|
|
17
|
+
getContent(): Array<any>;
|
|
18
|
+
/**
|
|
19
|
+
* @return {boolean}
|
|
20
|
+
*/
|
|
21
|
+
isCountable(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @return {ContentEmbed}
|
|
24
|
+
*/
|
|
25
|
+
copy(): ContentEmbed;
|
|
26
|
+
/**
|
|
27
|
+
* @param {number} offset
|
|
28
|
+
* @return {ContentEmbed}
|
|
29
|
+
*/
|
|
30
|
+
splice(offset: number): ContentEmbed;
|
|
31
|
+
/**
|
|
32
|
+
* @param {ContentEmbed} right
|
|
33
|
+
* @return {boolean}
|
|
34
|
+
*/
|
|
35
|
+
mergeWith(right: ContentEmbed): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @param {Transaction} transaction
|
|
38
|
+
* @param {Item} item
|
|
39
|
+
*/
|
|
40
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
41
|
+
/**
|
|
42
|
+
* @param {Transaction} transaction
|
|
43
|
+
*/
|
|
44
|
+
delete(transaction: Transaction): void;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Transaction} _tr
|
|
47
|
+
*/
|
|
48
|
+
gc(_tr: Transaction): void;
|
|
49
|
+
/**
|
|
50
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
51
|
+
* @param {number} _offset
|
|
52
|
+
* @param {number} _offsetEnd
|
|
53
|
+
*/
|
|
54
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* @return {number}
|
|
57
|
+
*/
|
|
58
|
+
getRef(): number;
|
|
59
|
+
}
|
|
60
|
+
export function readContentEmbed(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentEmbed;
|
|
61
|
+
import { Transaction } from '../internals.js';
|
|
62
|
+
import { Item } from '../internals.js';
|
|
63
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
64
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
65
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
66
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
67
|
+
//# sourceMappingURL=ContentEmbed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentEmbed.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentEmbed.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;OAEG;IACH,mBAFW,MAAM,EAIhB;IADC,cAAkB;IAGpB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,YAAY,CAIvB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,YAAY,CAIvB;IAED;;;OAGG;IACH,iBAHW,YAAY,GACX,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,0CAHI,eAAe,GAAG,eAAe,GAChC,YAAY,CAEuD;4BA/FxE,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export class ContentFormat {
|
|
5
|
+
/**
|
|
6
|
+
* @param {string} key
|
|
7
|
+
* @param {Object} value
|
|
8
|
+
*/
|
|
9
|
+
constructor(key: string, value: Object);
|
|
10
|
+
key: string;
|
|
11
|
+
value: Object;
|
|
12
|
+
/**
|
|
13
|
+
* @return {number}
|
|
14
|
+
*/
|
|
15
|
+
getLength(): number;
|
|
16
|
+
/**
|
|
17
|
+
* @return {Array<any>}
|
|
18
|
+
*/
|
|
19
|
+
getContent(): Array<any>;
|
|
20
|
+
/**
|
|
21
|
+
* @return {boolean}
|
|
22
|
+
*/
|
|
23
|
+
isCountable(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @return {ContentFormat}
|
|
26
|
+
*/
|
|
27
|
+
copy(): ContentFormat;
|
|
28
|
+
/**
|
|
29
|
+
* @param {number} _offset
|
|
30
|
+
* @return {ContentFormat}
|
|
31
|
+
*/
|
|
32
|
+
splice(_offset: number): ContentFormat;
|
|
33
|
+
/**
|
|
34
|
+
* @param {ContentFormat} _right
|
|
35
|
+
* @return {boolean}
|
|
36
|
+
*/
|
|
37
|
+
mergeWith(_right: ContentFormat): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @param {Transaction} _transaction
|
|
40
|
+
* @param {Item} item
|
|
41
|
+
*/
|
|
42
|
+
integrate(_transaction: Transaction, item: Item): void;
|
|
43
|
+
/**
|
|
44
|
+
* @param {Transaction} _transaction
|
|
45
|
+
*/
|
|
46
|
+
delete(_transaction: Transaction): void;
|
|
47
|
+
/**
|
|
48
|
+
* @param {Transaction} _tr
|
|
49
|
+
*/
|
|
50
|
+
gc(_tr: Transaction): void;
|
|
51
|
+
/**
|
|
52
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
53
|
+
* @param {number} _offset
|
|
54
|
+
* @param {number} _offsetEnd
|
|
55
|
+
*/
|
|
56
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
|
|
57
|
+
/**
|
|
58
|
+
* @return {number}
|
|
59
|
+
*/
|
|
60
|
+
getRef(): number;
|
|
61
|
+
}
|
|
62
|
+
export function readContentFormat(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentFormat;
|
|
63
|
+
import { Transaction } from '../internals.js';
|
|
64
|
+
import { Item } from '../internals.js';
|
|
65
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
66
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
67
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
68
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
69
|
+
//# sourceMappingURL=ContentFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentFormat.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentFormat.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;OAGG;IACH,iBAHW,MAAM,SACN,MAAM,EAKhB;IAFC,YAAc;IACd,cAAkB;IAGpB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,aAAa,CAIxB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACL,aAAa,CAIxB;IAED;;;OAGG;IACH,kBAHW,aAAa,GACZ,OAAO,CAIlB;IAED;;;OAGG;IACH,wBAHW,WAAW,QACX,IAAI,QAOd;IAED;;OAEG;IACH,qBAFW,WAAW,QAEE;IACxB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAKhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,2CAHI,eAAe,GAAG,eAAe,GAChC,aAAa,CAE2E;4BAtG7F,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export class ContentJSON {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Array<any>} arr
|
|
7
|
+
*/
|
|
8
|
+
constructor(arr: Array<any>);
|
|
9
|
+
/**
|
|
10
|
+
* @type {Array<any>}
|
|
11
|
+
*/
|
|
12
|
+
arr: Array<any>;
|
|
13
|
+
/**
|
|
14
|
+
* @return {number}
|
|
15
|
+
*/
|
|
16
|
+
getLength(): number;
|
|
17
|
+
/**
|
|
18
|
+
* @return {Array<any>}
|
|
19
|
+
*/
|
|
20
|
+
getContent(): Array<any>;
|
|
21
|
+
/**
|
|
22
|
+
* @return {boolean}
|
|
23
|
+
*/
|
|
24
|
+
isCountable(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @return {ContentJSON}
|
|
27
|
+
*/
|
|
28
|
+
copy(): ContentJSON;
|
|
29
|
+
/**
|
|
30
|
+
* @param {number} offset
|
|
31
|
+
* @return {ContentJSON}
|
|
32
|
+
*/
|
|
33
|
+
splice(offset: number): ContentJSON;
|
|
34
|
+
/**
|
|
35
|
+
* @param {ContentJSON} right
|
|
36
|
+
* @return {boolean}
|
|
37
|
+
*/
|
|
38
|
+
mergeWith(right: ContentJSON): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @param {Transaction} transaction
|
|
41
|
+
* @param {Item} item
|
|
42
|
+
*/
|
|
43
|
+
integrate(transaction: Transaction, item: Item): void;
|
|
44
|
+
/**
|
|
45
|
+
* @param {Transaction} transaction
|
|
46
|
+
*/
|
|
47
|
+
delete(transaction: Transaction): void;
|
|
48
|
+
/**
|
|
49
|
+
* @param {Transaction} _tr
|
|
50
|
+
*/
|
|
51
|
+
gc(_tr: Transaction): void;
|
|
52
|
+
/**
|
|
53
|
+
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
54
|
+
* @param {number} offset
|
|
55
|
+
* @param {number} offsetEnd
|
|
56
|
+
*/
|
|
57
|
+
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
|
|
58
|
+
/**
|
|
59
|
+
* @return {number}
|
|
60
|
+
*/
|
|
61
|
+
getRef(): number;
|
|
62
|
+
}
|
|
63
|
+
export function readContentJSON(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentJSON;
|
|
64
|
+
import { Transaction } from '../internals.js';
|
|
65
|
+
import { Item } from '../internals.js';
|
|
66
|
+
import { UpdateEncoderV1 } from '../internals.js';
|
|
67
|
+
import { UpdateEncoderV2 } from '../internals.js';
|
|
68
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
69
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
70
|
+
//# sourceMappingURL=ContentJSON.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentJSON.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentJSON.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACE;;OAEG;IACH,iBAFW,KAAK,CAAC,GAAG,CAAC,EAOpB;IAJC;;OAEG;IACH,KAFU,KAAK,CAAC,GAAG,CAAC,CAEN;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,WAAW,CAItB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,WAAW,CAMtB;IAED;;;OAGG;IACH,iBAHW,WAAW,GACV,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,QAFW,WAAW,QAEX;IACX;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,UACjC,MAAM,aACN,MAAM,QAShB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,yCAHI,eAAe,GAAG,eAAe,GAChC,WAAW,CActB;4BApHM,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|