lib0 0.2.115-3 → 0.2.115-5
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/coverage/tmp/coverage-42121-1764767245409-0.json +1 -0
- package/coverage/tmp/{coverage-32703-1763495370274-0.json → coverage-42122-1764767192180-0.json} +1 -1
- package/delta/binding.d.ts +11 -9
- package/delta/binding.d.ts.map +1 -1
- package/delta/binding.js +5 -2
- package/delta/binding.test.d.ts.map +1 -1
- package/delta/delta-pitch.test.d.ts +5 -0
- package/delta/delta-pitch.test.d.ts.map +1 -0
- package/delta/{d2.d.ts → delta.d.ts} +117 -34
- package/delta/delta.d.ts.map +1 -0
- package/delta/{d2.js → delta.js} +247 -55
- package/delta/{d2.test.d.ts → delta.test.d.ts} +6 -1
- package/delta/delta.test.d.ts.map +1 -0
- package/delta/t3.test.d.ts +1 -1
- package/delta/t3.test.d.ts.map +1 -1
- package/dist/array.cjs +17 -60
- package/dist/array.cjs.map +1 -1
- package/dist/binding.cjs +114 -28
- package/dist/binding.cjs.map +1 -1
- package/dist/{broadcastchannel-d0c108a2.cjs → broadcastchannel-94897809.cjs} +2 -2
- package/dist/{broadcastchannel-d0c108a2.cjs.map → broadcastchannel-94897809.cjs.map} +1 -1
- package/dist/broadcastchannel.cjs +6 -6
- package/dist/{buffer-7f6fa8fa.cjs → buffer-8d110bf4.cjs} +2 -2
- package/dist/{buffer-7f6fa8fa.cjs.map → buffer-8d110bf4.cjs.map} +1 -1
- package/dist/buffer.cjs +5 -5
- package/dist/cache.cjs +3 -3
- package/dist/component.cjs +12 -8
- package/dist/component.cjs.map +1 -1
- package/dist/delta/binding.d.ts +11 -9
- package/dist/delta/binding.d.ts.map +1 -1
- package/dist/delta/binding.test.d.ts.map +1 -1
- package/dist/delta/delta-pitch.test.d.ts +5 -0
- package/dist/delta/delta-pitch.test.d.ts.map +1 -0
- package/dist/delta/{d2.d.ts → delta.d.ts} +117 -34
- package/dist/delta/delta.d.ts.map +1 -0
- package/dist/delta/{d2.test.d.ts → delta.test.d.ts} +6 -1
- package/dist/delta/delta.test.d.ts.map +1 -0
- package/dist/delta/t3.test.d.ts +1 -1
- package/dist/delta/t3.test.d.ts.map +1 -1
- package/dist/{d2.cjs → delta.cjs} +256 -60
- package/dist/delta.cjs.map +1 -0
- package/dist/{diff-1832cb43.cjs → diff-dc7bdc65.cjs} +2 -2
- package/dist/{diff-1832cb43.cjs.map → diff-dc7bdc65.cjs.map} +1 -1
- package/dist/diff.cjs +4 -4
- package/dist/{dom-f5047a64.cjs → dom-cad267af.cjs} +1 -1
- package/dist/{dom-f5047a64.cjs.map → dom-cad267af.cjs.map} +1 -1
- package/dist/dom.cjs +12 -5
- package/dist/dom.cjs.map +1 -1
- package/dist/{environment-90227ead.cjs → environment-98bcf64f.cjs} +2 -2
- package/dist/{environment-90227ead.cjs.map → environment-98bcf64f.cjs.map} +1 -1
- package/dist/environment.cjs +4 -4
- package/dist/equality.cjs +34 -0
- package/dist/equality.cjs.map +1 -0
- package/dist/fingerprint.cjs +44 -0
- package/dist/fingerprint.cjs.map +1 -0
- package/dist/{function-e7d18feb.cjs → function-b4e49016.cjs} +6 -6
- package/dist/function-b4e49016.cjs.map +1 -0
- package/dist/function.cjs +3 -3
- package/dist/index.cjs +9 -9
- package/dist/indexeddbV2.cjs +2 -2
- package/dist/jwt.cjs +5 -5
- package/dist/list.cjs +18 -5
- package/dist/list.cjs.map +1 -1
- package/dist/list.d.ts +9 -2
- package/dist/list.d.ts.map +1 -1
- package/dist/list.test.d.ts.map +1 -1
- package/dist/logging.cjs +11 -5
- package/dist/logging.cjs.map +1 -1
- package/dist/logging.common.cjs +4 -4
- package/dist/logging.node.cjs +4 -4
- package/dist/map.cjs +7 -314
- package/dist/map.cjs.map +1 -1
- package/dist/{object-18980796.cjs → object-dec41ef9.cjs} +3 -3
- package/dist/object-dec41ef9.cjs.map +1 -0
- package/dist/object.cjs +2 -2
- package/dist/object.d.ts.map +1 -1
- package/dist/performance.node.cjs +3 -3
- package/dist/pledge.cjs +2 -2
- package/dist/{prng-99204216.cjs → prng-aa81e812.cjs} +2 -2
- package/dist/{prng-99204216.cjs.map → prng-aa81e812.cjs.map} +1 -1
- package/dist/prng.cjs +6 -6
- package/dist/rabin-gf2-polynomial.cjs +5 -5
- package/dist/rabin-uncached.cjs +5 -5
- package/dist/rabin.cjs +5 -5
- package/dist/schema.cjs +202 -22
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +86 -29
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.test.d.ts +4 -0
- package/dist/schema.test.d.ts.map +1 -1
- package/dist/testing.cjs +9 -9
- package/dist/testing.cjs.map +1 -1
- package/dist/{traits.d.ts → trait/equality.d.ts} +1 -1
- package/dist/trait/equality.d.ts.map +1 -0
- package/dist/trait/fingerprint.d.ts +13 -0
- package/dist/trait/fingerprint.d.ts.map +1 -0
- package/dist/trait/traits.d.ts +3 -0
- package/dist/trait/traits.d.ts.map +1 -0
- package/dist/trait/traits.test.d.ts +5 -0
- package/dist/trait/traits.test.d.ts.map +1 -0
- package/dist/traits.cjs +23 -26
- package/dist/traits.cjs.map +1 -1
- package/dist/url.cjs +2 -2
- package/function.js +4 -4
- package/list.d.ts +9 -2
- package/list.d.ts.map +1 -1
- package/list.js +17 -3
- package/list.test.d.ts.map +1 -1
- package/object.d.ts.map +1 -1
- package/object.js +2 -2
- package/package.json +8 -10
- package/schema.d.ts +86 -29
- package/schema.d.ts.map +1 -1
- package/schema.js +191 -20
- package/schema.test.d.ts +4 -0
- package/schema.test.d.ts.map +1 -1
- package/test.html +2 -4
- package/test.js +7 -13
- package/testing.js +3 -3
- package/{traits.d.ts → trait/equality.d.ts} +1 -1
- package/trait/equality.d.ts.map +1 -0
- package/trait/fingerprint.d.ts +13 -0
- package/trait/fingerprint.d.ts.map +1 -0
- package/trait/fingerprint.js +21 -0
- package/trait/traits.d.ts +3 -0
- package/trait/traits.d.ts.map +1 -0
- package/trait/traits.js +2 -0
- package/trait/traits.test.d.ts +5 -0
- package/{traits.test.d.ts.map → trait/traits.test.d.ts.map} +1 -1
- package/delta/abstract-array.d.ts +0 -166
- package/delta/abstract-array.d.ts.map +0 -1
- package/delta/abstract-array.js +0 -421
- package/delta/abstract.d.ts +0 -69
- package/delta/abstract.d.ts.map +0 -1
- package/delta/abstract.js +0 -102
- package/delta/array.d.ts +0 -23
- package/delta/array.d.ts.map +0 -1
- package/delta/array.js +0 -45
- package/delta/array.test.d.ts +0 -2
- package/delta/array.test.d.ts.map +0 -1
- package/delta/d2.d.ts.map +0 -1
- package/delta/d2.test.d.ts.map +0 -1
- package/delta/index.d.ts +0 -14
- package/delta/index.d.ts.map +0 -1
- package/delta/index.js +0 -79
- package/delta/map.d.ts +0 -226
- package/delta/map.d.ts.map +0 -1
- package/delta/map.js +0 -304
- package/delta/node.d.ts +0 -117
- package/delta/node.d.ts.map +0 -1
- package/delta/node.js +0 -183
- package/delta/node.test.d.ts +0 -4
- package/delta/node.test.d.ts.map +0 -1
- package/delta/ops.d.ts +0 -464
- package/delta/ops.d.ts.map +0 -1
- package/delta/ops.js +0 -544
- package/delta/t2.d.ts +0 -184
- package/delta/t2.d.ts.map +0 -1
- package/delta/t2.js +0 -890
- package/delta/text.d.ts +0 -43
- package/delta/text.d.ts.map +0 -1
- package/delta/text.js +0 -54
- package/delta/text.test.d.ts +0 -6
- package/delta/text.test.d.ts.map +0 -1
- package/delta/transformer.d.ts +0 -164
- package/delta/transformer.d.ts.map +0 -1
- package/delta/transformer.js +0 -888
- package/delta/transformer.test.d.ts +0 -13
- package/delta/transformer.test.d.ts.map +0 -1
- package/delta/value.d.ts +0 -84
- package/delta/value.d.ts.map +0 -1
- package/delta/value.js +0 -168
- package/dist/abstract-array.cjs +0 -433
- package/dist/abstract-array.cjs.map +0 -1
- package/dist/abstract.cjs +0 -122
- package/dist/abstract.cjs.map +0 -1
- package/dist/array2.cjs +0 -26
- package/dist/array2.cjs.map +0 -1
- package/dist/d2.cjs.map +0 -1
- package/dist/delta/abstract-array.d.ts +0 -166
- package/dist/delta/abstract-array.d.ts.map +0 -1
- package/dist/delta/abstract.d.ts +0 -69
- package/dist/delta/abstract.d.ts.map +0 -1
- package/dist/delta/array.d.ts +0 -23
- package/dist/delta/array.d.ts.map +0 -1
- package/dist/delta/array.test.d.ts +0 -2
- package/dist/delta/array.test.d.ts.map +0 -1
- package/dist/delta/d2.d.ts.map +0 -1
- package/dist/delta/d2.test.d.ts.map +0 -1
- package/dist/delta/index.d.ts +0 -14
- package/dist/delta/index.d.ts.map +0 -1
- package/dist/delta/map.d.ts +0 -226
- package/dist/delta/map.d.ts.map +0 -1
- package/dist/delta/node.d.ts +0 -117
- package/dist/delta/node.d.ts.map +0 -1
- package/dist/delta/node.test.d.ts +0 -4
- package/dist/delta/node.test.d.ts.map +0 -1
- package/dist/delta/ops.d.ts +0 -464
- package/dist/delta/ops.d.ts.map +0 -1
- package/dist/delta/t2.d.ts +0 -184
- package/dist/delta/t2.d.ts.map +0 -1
- package/dist/delta/text.d.ts +0 -43
- package/dist/delta/text.d.ts.map +0 -1
- package/dist/delta/text.test.d.ts +0 -6
- package/dist/delta/text.test.d.ts.map +0 -1
- package/dist/delta/transformer.d.ts +0 -164
- package/dist/delta/transformer.d.ts.map +0 -1
- package/dist/delta/transformer.test.d.ts +0 -13
- package/dist/delta/transformer.test.d.ts.map +0 -1
- package/dist/delta/value.d.ts +0 -84
- package/dist/delta/value.d.ts.map +0 -1
- package/dist/function-e7d18feb.cjs.map +0 -1
- package/dist/index2.cjs +0 -71
- package/dist/index2.cjs.map +0 -1
- package/dist/map2.cjs +0 -15
- package/dist/map2.cjs.map +0 -1
- package/dist/node.cjs +0 -206
- package/dist/node.cjs.map +0 -1
- package/dist/object-18980796.cjs.map +0 -1
- package/dist/ops.cjs +0 -575
- package/dist/ops.cjs.map +0 -1
- package/dist/t2.cjs +0 -932
- package/dist/t2.cjs.map +0 -1
- package/dist/text.cjs +0 -79
- package/dist/text.cjs.map +0 -1
- package/dist/traits.d.ts.map +0 -1
- package/dist/traits.test.d.ts +0 -4
- package/dist/traits.test.d.ts.map +0 -1
- package/dist/transformer.cjs +0 -930
- package/dist/transformer.cjs.map +0 -1
- package/dist/value.cjs +0 -187
- package/dist/value.cjs.map +0 -1
- package/traits.d.ts.map +0 -1
- package/traits.test.d.ts +0 -4
- /package/{traits.js → trait/equality.js} +0 -0
package/dist/ops.cjs
DELETED
|
@@ -1,575 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var abstract = require('./abstract.cjs');
|
|
6
|
-
var object = require('./object-18980796.cjs');
|
|
7
|
-
var traits = require('./traits.cjs');
|
|
8
|
-
var _function = require('./function-e7d18feb.cjs');
|
|
9
|
-
var schema = require('./schema.cjs');
|
|
10
|
-
var list = require('./list.cjs');
|
|
11
|
-
require('./error-0c1f634f.cjs');
|
|
12
|
-
require('./array-78849c95.cjs');
|
|
13
|
-
require('./set-5b47859e.cjs');
|
|
14
|
-
require('./environment-90227ead.cjs');
|
|
15
|
-
require('./map-24d263c0.cjs');
|
|
16
|
-
require('./string-fddc5f8b.cjs');
|
|
17
|
-
require('./conditions-f5c0c102.cjs');
|
|
18
|
-
require('./storage.cjs');
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @template {any} Content
|
|
22
|
-
* @typedef {TextOp|InsertOp<Content>|RetainOp|DeleteOp|(Content extends d.AbstractDelta ? ModifyOp<Extract<Content,d.AbstractDelta>> : never)} AbstractDeltaArrayOps
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @template Content
|
|
27
|
-
* @template {boolean} [WithText=false]
|
|
28
|
-
* @typedef {InsertOp<Content>|RetainOp|DeleteOp|(Content extends d.AbstractDelta ? ModifyOp<Extract<Content,d.AbstractDelta>> : never)|(WithText extends true ? TextOp : never)} DeltaArrayOps
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @template Embeds
|
|
33
|
-
* @typedef {TextOp|InsertOp<Embeds>|RetainOp|DeleteOp|(Embeds extends d.AbstractDelta ? ModifyOp<Extract<Embeds,d.AbstractDelta>> : never)} DeltaTextOps
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @template {any} Content
|
|
38
|
-
* @typedef {AbstractDeltaArrayOps<Content>} NodeChildrenOps
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @typedef {s.Unwrap<$anyOp>} DeltaOps
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @typedef {MapInsertOp<any>|MapDeleteOp<any>|MapModifyOp<any>} DeltaMapOps
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @typedef {MapInsertOp<any,''>|MapDeleteOp<any,''>|MapModifyOp<any,''>} DeltaValueOps
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @typedef {{ [key: string]: any }} FormattingAttributes
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef {{ insert: string|object, attributes?: { [key: string]: any }, attribution?: d.Attribution } | { delete: number } | { retain: number, attributes?: { [key:string]: any }, attribution?: d.Attribution } | { modify: object }} DeltaJsonOp
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @template {{[key:string]: any} | null} Attrs
|
|
63
|
-
* @param {Attrs} attrs
|
|
64
|
-
* @return {Attrs}
|
|
65
|
-
*/
|
|
66
|
-
const _cloneAttrs = attrs => attrs == null ? attrs : { ...attrs };
|
|
67
|
-
/**
|
|
68
|
-
* @template {any} MaybeDelta
|
|
69
|
-
* @param {MaybeDelta} maybeDelta
|
|
70
|
-
* @return {MaybeDelta}
|
|
71
|
-
*/
|
|
72
|
-
const _cloneMaybeDelta = maybeDelta => abstract.$delta.check(maybeDelta) ? maybeDelta.clone() : maybeDelta;
|
|
73
|
-
|
|
74
|
-
class TextOp extends list.ListNode {
|
|
75
|
-
/**
|
|
76
|
-
* @param {string} insert
|
|
77
|
-
* @param {FormattingAttributes|null} attributes
|
|
78
|
-
* @param {d.Attribution|null} attribution
|
|
79
|
-
*/
|
|
80
|
-
constructor (insert, attributes, attribution) {
|
|
81
|
-
super();
|
|
82
|
-
this.insert = insert;
|
|
83
|
-
this.attributes = attributes;
|
|
84
|
-
this.attribution = attribution;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @return {'insert'}
|
|
89
|
-
*/
|
|
90
|
-
get type () {
|
|
91
|
-
return 'insert'
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
get length () {
|
|
95
|
-
return this.insert.length
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Remove a part of the operation (similar to Array.splice)
|
|
100
|
-
*
|
|
101
|
-
* @param {number} offset
|
|
102
|
-
* @param {number} len
|
|
103
|
-
*/
|
|
104
|
-
_splice (offset, len) {
|
|
105
|
-
this.insert = this.insert.slice(0, offset) + this.insert.slice(offset + len);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @return {DeltaJsonOp}
|
|
110
|
-
*/
|
|
111
|
-
toJSON () {
|
|
112
|
-
return object.assign({ insert: this.insert }, this.attributes ? { attributes: this.attributes } : ({}), this.attribution ? { attribution: this.attribution } : ({}))
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @param {TextOp} other
|
|
117
|
-
*/
|
|
118
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
119
|
-
return _function.equalityDeep(this.insert, other.insert) && _function.equalityDeep(this.attributes, other.attributes) && _function.equalityDeep(this.attribution, other.attribution)
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @return {TextOp}
|
|
124
|
-
*/
|
|
125
|
-
clone () {
|
|
126
|
-
return new TextOp(this.insert, _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @template {any} ArrayContent
|
|
132
|
-
*/
|
|
133
|
-
class InsertOp extends list.ListNode {
|
|
134
|
-
/**
|
|
135
|
-
* @param {Array<ArrayContent>} insert
|
|
136
|
-
* @param {FormattingAttributes|null} attributes
|
|
137
|
-
* @param {d.Attribution|null} attribution
|
|
138
|
-
*/
|
|
139
|
-
constructor (insert, attributes, attribution) {
|
|
140
|
-
super();
|
|
141
|
-
this.insert = insert;
|
|
142
|
-
this.attributes = attributes;
|
|
143
|
-
this.attribution = attribution;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @return {'insert'}
|
|
148
|
-
*/
|
|
149
|
-
get type () {
|
|
150
|
-
return 'insert'
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
get length () {
|
|
154
|
-
return this.insert.length
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Remove a part of the operation (similar to Array.splice)
|
|
159
|
-
*
|
|
160
|
-
* @param {number} offset
|
|
161
|
-
* @param {number} len
|
|
162
|
-
*/
|
|
163
|
-
_splice (offset, len) {
|
|
164
|
-
this.insert.splice(offset, len);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @return {DeltaJsonOp}
|
|
169
|
-
*/
|
|
170
|
-
toJSON () {
|
|
171
|
-
return object.assign({ insert: this.insert.map(ins => abstract.$delta.check(ins) ? ins.toJSON() : ins) }, this.attributes ? { attributes: this.attributes } : ({}), this.attribution ? { attribution: this.attribution } : ({}))
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @param {InsertOp<ArrayContent>} other
|
|
176
|
-
*/
|
|
177
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
178
|
-
return _function.equalityDeep(this.insert, other.insert) && _function.equalityDeep(this.attributes, other.attributes) && _function.equalityDeep(this.attribution, other.attribution)
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @return {InsertOp<ArrayContent>}
|
|
183
|
-
*/
|
|
184
|
-
clone () {
|
|
185
|
-
return new InsertOp(this.insert.slice(), _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
class DeleteOp extends list.ListNode {
|
|
190
|
-
/**
|
|
191
|
-
* @param {number} len
|
|
192
|
-
*/
|
|
193
|
-
constructor (len) {
|
|
194
|
-
super();
|
|
195
|
-
this.delete = len;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @return {'delete'}
|
|
200
|
-
*/
|
|
201
|
-
get type () {
|
|
202
|
-
return 'delete'
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
get length () {
|
|
206
|
-
return 0
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Remove a part of the operation (similar to Array.splice)
|
|
211
|
-
*
|
|
212
|
-
* @param {number} offset
|
|
213
|
-
* @param {number} len
|
|
214
|
-
*/
|
|
215
|
-
_splice (offset, len) {
|
|
216
|
-
this.delete -= len;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @return {DeltaJsonOp}
|
|
221
|
-
*/
|
|
222
|
-
toJSON () {
|
|
223
|
-
return { delete: this.delete }
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @param {DeleteOp} other
|
|
228
|
-
*/
|
|
229
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
230
|
-
return this.delete === other.delete
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
clone () {
|
|
234
|
-
return new DeleteOp(this.delete)
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
class RetainOp extends list.ListNode {
|
|
239
|
-
/**
|
|
240
|
-
* @param {number} retain
|
|
241
|
-
* @param {FormattingAttributes|null} attributes
|
|
242
|
-
* @param {d.Attribution|null} attribution
|
|
243
|
-
*/
|
|
244
|
-
constructor (retain, attributes, attribution) {
|
|
245
|
-
super();
|
|
246
|
-
this.retain = retain;
|
|
247
|
-
this.attributes = attributes;
|
|
248
|
-
this.attribution = attribution;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @return {'retain'}
|
|
253
|
-
*/
|
|
254
|
-
get type () {
|
|
255
|
-
return 'retain'
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
get length () {
|
|
259
|
-
return this.retain
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Remove a part of the operation (similar to Array.splice)
|
|
264
|
-
*
|
|
265
|
-
* @param {number} _offset
|
|
266
|
-
* @param {number} len
|
|
267
|
-
*/
|
|
268
|
-
_splice (_offset, len) {
|
|
269
|
-
this.retain -= len;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @return {DeltaJsonOp}
|
|
274
|
-
*/
|
|
275
|
-
toJSON () {
|
|
276
|
-
return object.assign({ retain: this.retain }, this.attributes ? { attributes: this.attributes } : {}, this.attribution ? { attribution: this.attribution } : {})
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* @param {RetainOp} other
|
|
281
|
-
*/
|
|
282
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
283
|
-
return this.retain === other.retain && _function.equalityDeep(this.attributes, other.attributes) && _function.equalityDeep(this.attribution, other.attribution)
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
clone () {
|
|
287
|
-
return new RetainOp(this.retain, _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Delta that can be applied on a YType Embed
|
|
293
|
-
*
|
|
294
|
-
* @template {{ toJSON(): any } & traits.EqualityTrait & { clone: any }} DTypes
|
|
295
|
-
*/
|
|
296
|
-
class ModifyOp extends list.ListNode {
|
|
297
|
-
/**
|
|
298
|
-
* @param {DTypes} delta
|
|
299
|
-
* @param {FormattingAttributes|null} attributes
|
|
300
|
-
* @param {d.Attribution|null} attribution
|
|
301
|
-
*/
|
|
302
|
-
constructor (delta, attributes, attribution) {
|
|
303
|
-
super();
|
|
304
|
-
this.modify = delta;
|
|
305
|
-
this.attributes = attributes;
|
|
306
|
-
this.attribution = attribution;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* @return {'modify'}
|
|
311
|
-
*/
|
|
312
|
-
get type () {
|
|
313
|
-
return 'modify'
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
get length () {
|
|
317
|
-
return 1
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Remove a part of the operation (similar to Array.splice)
|
|
322
|
-
*
|
|
323
|
-
* @param {number} _offset
|
|
324
|
-
* @param {number} len
|
|
325
|
-
*/
|
|
326
|
-
_splice (_offset, len) {
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @return {DeltaJsonOp}
|
|
331
|
-
*/
|
|
332
|
-
toJSON () {
|
|
333
|
-
return object.assign({ modify: this.modify.toJSON() }, this.attributes ? { attributes: this.attributes } : {}, this.attribution ? { attribution: this.attribution } : {})
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @param {ModifyOp<any>} other
|
|
338
|
-
*/
|
|
339
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
340
|
-
return this.modify[traits.EqualityTraitSymbol](other.modify) && _function.equalityDeep(this.attributes, other.attributes) && _function.equalityDeep(this.attribution, other.attribution)
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @return {ModifyOp<DTypes>}
|
|
345
|
-
*/
|
|
346
|
-
clone () {
|
|
347
|
-
return new ModifyOp(this.modify.clone(), _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @template V
|
|
353
|
-
* @template [K=string]
|
|
354
|
-
*/
|
|
355
|
-
class MapInsertOp {
|
|
356
|
-
/**
|
|
357
|
-
* @param {K} key
|
|
358
|
-
* @param {V} value
|
|
359
|
-
* @param {V|undefined} prevValue
|
|
360
|
-
* @param {s.TypeOf<d.$attribution>?} attribution
|
|
361
|
-
*/
|
|
362
|
-
constructor (key, value, prevValue, attribution) {
|
|
363
|
-
/**
|
|
364
|
-
* @type {K}
|
|
365
|
-
*/
|
|
366
|
-
this.key = key;
|
|
367
|
-
/**
|
|
368
|
-
* @type {V}
|
|
369
|
-
*/
|
|
370
|
-
this.value = value;
|
|
371
|
-
/**
|
|
372
|
-
* @type {V|undefined}
|
|
373
|
-
*/
|
|
374
|
-
this.prevValue = prevValue;
|
|
375
|
-
this.attribution = attribution;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* @return {'insert'}
|
|
380
|
-
*/
|
|
381
|
-
get type () { return 'insert' }
|
|
382
|
-
|
|
383
|
-
toJSON () {
|
|
384
|
-
return {
|
|
385
|
-
type: this.type,
|
|
386
|
-
value: abstract.$delta.check(this.value) ? this.value.toJSON() : this.value,
|
|
387
|
-
attribution: this.attribution
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* @param {MapInsertOp<V>} other
|
|
393
|
-
*/
|
|
394
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
395
|
-
return this.key === other.key && _function.equalityDeep(this.value, other.value) && _function.equalityDeep(this.attribution, other.attribution)
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* @return {MapInsertOp<V,K>}
|
|
400
|
-
*/
|
|
401
|
-
clone () {
|
|
402
|
-
return new MapInsertOp(this.key, _cloneMaybeDelta(this.value), _cloneMaybeDelta(this.prevValue), _cloneAttrs(this.attribution))
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* @template V
|
|
408
|
-
* @template [K=string]
|
|
409
|
-
*/
|
|
410
|
-
class MapDeleteOp {
|
|
411
|
-
/**
|
|
412
|
-
* @param {K} key
|
|
413
|
-
* @param {V|undefined} prevValue
|
|
414
|
-
* @param {s.TypeOf<d.$attribution>?} attribution
|
|
415
|
-
*/
|
|
416
|
-
constructor (key, prevValue, attribution) {
|
|
417
|
-
/**
|
|
418
|
-
* @type {K}
|
|
419
|
-
*/
|
|
420
|
-
this.key = key;
|
|
421
|
-
/**
|
|
422
|
-
* @type {V|undefined}
|
|
423
|
-
*/
|
|
424
|
-
this.prevValue = prevValue;
|
|
425
|
-
this.attribution = attribution;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
get value () { return undefined }
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @type {'delete'}
|
|
432
|
-
*/
|
|
433
|
-
get type () { return 'delete' }
|
|
434
|
-
|
|
435
|
-
toJSON () {
|
|
436
|
-
return {
|
|
437
|
-
type: this.type,
|
|
438
|
-
attribution: this.attribution
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* @param {MapDeleteOp<V>} other
|
|
444
|
-
*/
|
|
445
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
446
|
-
return this.key === other.key && _function.equalityDeep(this.attribution, other.attribution)
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
clone () {
|
|
450
|
-
return new MapDeleteOp(this.key, _cloneMaybeDelta(this.prevValue), _cloneAttrs(this.attribution))
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* @template {d.AbstractDelta} Modifiers
|
|
456
|
-
* @template [K=string]
|
|
457
|
-
*/
|
|
458
|
-
class MapModifyOp {
|
|
459
|
-
/**
|
|
460
|
-
* @param {K} key
|
|
461
|
-
* @param {Modifiers} delta
|
|
462
|
-
*/
|
|
463
|
-
constructor (key, delta) {
|
|
464
|
-
/**
|
|
465
|
-
* @type {K}
|
|
466
|
-
*/
|
|
467
|
-
this.key = key;
|
|
468
|
-
/**
|
|
469
|
-
* @type {Modifiers}
|
|
470
|
-
*/
|
|
471
|
-
this.value = delta;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @type {'modify'}
|
|
476
|
-
*/
|
|
477
|
-
get type () { return 'modify' }
|
|
478
|
-
|
|
479
|
-
toJSON () {
|
|
480
|
-
return {
|
|
481
|
-
type: this.type,
|
|
482
|
-
value: this.value.toJSON()
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @param {MapModifyOp<Modifiers>} other
|
|
488
|
-
*/
|
|
489
|
-
[traits.EqualityTraitSymbol] (other) {
|
|
490
|
-
return this.key === other.key && this.value[traits.EqualityTraitSymbol](other.value)
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* @return {MapModifyOp<Modifiers,K>}
|
|
495
|
-
*/
|
|
496
|
-
clone () {
|
|
497
|
-
return new MapModifyOp(this.key, this.value.clone())
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
const $deltaMapChangeJson = schema.$union(
|
|
502
|
-
schema.$object({ type: schema.$literal('insert'), value: schema.$any, attribution: abstract.$attribution.nullable.optional }),
|
|
503
|
-
schema.$object({ type: schema.$literal('modify'), value: schema.$any }),
|
|
504
|
-
schema.$object({ type: schema.$literal('delete'), attribution: abstract.$attribution.nullable.optional })
|
|
505
|
-
);
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* @type {s.Schema<MapDeleteOp<any> | DeleteOp>}
|
|
509
|
-
*/
|
|
510
|
-
const $deleteOp = schema.$custom(o => o != null && (o.constructor === DeleteOp || o.constructor === MapDeleteOp));
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @type {s.Schema<MapInsertOp<any> | InsertOp<any>>}
|
|
514
|
-
*/
|
|
515
|
-
const $insertOp = schema.$custom(o => o != null && (o.constructor === MapInsertOp || o.constructor === InsertOp));
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* @template Content
|
|
519
|
-
* @param {s.Schema<Content>} $content
|
|
520
|
-
* @return {s.Schema<MapInsertOp<Content> | InsertOp<Content>>}
|
|
521
|
-
*/
|
|
522
|
-
const $insertOpWith = $content => schema.$custom(o =>
|
|
523
|
-
o != null && (
|
|
524
|
-
(o.constructor === MapInsertOp && $content.check(/** @type {MapInsertOp<Content>} */ (o).value)) ||
|
|
525
|
-
(o.constructor === InsertOp && /** @type {InsertOp<Content>} */ (o).insert.every(ins => $content.check(ins)))
|
|
526
|
-
)
|
|
527
|
-
);
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* @type {s.Schema<TextOp>}
|
|
531
|
-
*/
|
|
532
|
-
const $textOp = schema.$constructedBy(TextOp);
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* @type {s.Schema<RetainOp>}
|
|
536
|
-
*/
|
|
537
|
-
const $retainOp = schema.$constructedBy(RetainOp);
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* @type {s.Schema<MapModifyOp<any> | ModifyOp<any>>}
|
|
541
|
-
*/
|
|
542
|
-
const $modifyOp = schema.$custom(o => o != null && (o.constructor === MapModifyOp || o.constructor === ModifyOp));
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* @template {d.AbstractDelta} Modify
|
|
546
|
-
* @param {s.Schema<Modify>} $content
|
|
547
|
-
* @return {s.Schema<MapModifyOp<Modify> | ModifyOp<Modify>>}
|
|
548
|
-
*/
|
|
549
|
-
const $modifyOpWith = $content => schema.$custom(o =>
|
|
550
|
-
o != null && (
|
|
551
|
-
(o.constructor === MapModifyOp && $content.check(/** @type {MapModifyOp<Modify>} */ (o).value)) ||
|
|
552
|
-
(o.constructor === ModifyOp && $content.check(/** @type {ModifyOp<Modify>} */ (o).modify))
|
|
553
|
-
)
|
|
554
|
-
);
|
|
555
|
-
|
|
556
|
-
const $anyOp = schema.$union($insertOp, $deleteOp, $textOp, $modifyOp);
|
|
557
|
-
|
|
558
|
-
exports.$anyOp = $anyOp;
|
|
559
|
-
exports.$deleteOp = $deleteOp;
|
|
560
|
-
exports.$deltaMapChangeJson = $deltaMapChangeJson;
|
|
561
|
-
exports.$insertOp = $insertOp;
|
|
562
|
-
exports.$insertOpWith = $insertOpWith;
|
|
563
|
-
exports.$modifyOp = $modifyOp;
|
|
564
|
-
exports.$modifyOpWith = $modifyOpWith;
|
|
565
|
-
exports.$retainOp = $retainOp;
|
|
566
|
-
exports.$textOp = $textOp;
|
|
567
|
-
exports.DeleteOp = DeleteOp;
|
|
568
|
-
exports.InsertOp = InsertOp;
|
|
569
|
-
exports.MapDeleteOp = MapDeleteOp;
|
|
570
|
-
exports.MapInsertOp = MapInsertOp;
|
|
571
|
-
exports.MapModifyOp = MapModifyOp;
|
|
572
|
-
exports.ModifyOp = ModifyOp;
|
|
573
|
-
exports.RetainOp = RetainOp;
|
|
574
|
-
exports.TextOp = TextOp;
|
|
575
|
-
//# sourceMappingURL=ops.cjs.map
|
package/dist/ops.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ops.cjs","sources":["../delta/ops.js"],"sourcesContent":["import * as d from './abstract.js'\nimport * as object from '../object.js'\nimport * as traits from '../traits.js'\nimport * as fun from '../function.js'\nimport * as s from '../schema.js'\nimport * as list from '../list.js'\n\n/**\n * @template {any} Content\n * @typedef {TextOp|InsertOp<Content>|RetainOp|DeleteOp|(Content extends d.AbstractDelta ? ModifyOp<Extract<Content,d.AbstractDelta>> : never)} AbstractDeltaArrayOps\n */\n\n/**\n * @template Content\n * @template {boolean} [WithText=false]\n * @typedef {InsertOp<Content>|RetainOp|DeleteOp|(Content extends d.AbstractDelta ? ModifyOp<Extract<Content,d.AbstractDelta>> : never)|(WithText extends true ? TextOp : never)} DeltaArrayOps\n */\n\n/**\n * @template Embeds\n * @typedef {TextOp|InsertOp<Embeds>|RetainOp|DeleteOp|(Embeds extends d.AbstractDelta ? ModifyOp<Extract<Embeds,d.AbstractDelta>> : never)} DeltaTextOps\n */\n\n/**\n * @template {any} Content\n * @typedef {AbstractDeltaArrayOps<Content>} NodeChildrenOps\n */\n\n/**\n * @typedef {s.Unwrap<$anyOp>} DeltaOps\n */\n\n/**\n * @typedef {MapInsertOp<any>|MapDeleteOp<any>|MapModifyOp<any>} DeltaMapOps\n */\n\n/**\n * @typedef {MapInsertOp<any,''>|MapDeleteOp<any,''>|MapModifyOp<any,''>} DeltaValueOps\n */\n\n/**\n * @typedef {{ [key: string]: any }} FormattingAttributes\n */\n\n/**\n * @typedef {{ insert: string|object, attributes?: { [key: string]: any }, attribution?: d.Attribution } | { delete: number } | { retain: number, attributes?: { [key:string]: any }, attribution?: d.Attribution } | { modify: object }} DeltaJsonOp\n */\n\n/**\n * @template {{[key:string]: any} | null} Attrs\n * @param {Attrs} attrs\n * @return {Attrs}\n */\nconst _cloneAttrs = attrs => attrs == null ? attrs : { ...attrs }\n/**\n * @template {any} MaybeDelta\n * @param {MaybeDelta} maybeDelta\n * @return {MaybeDelta}\n */\nconst _cloneMaybeDelta = maybeDelta => d.$delta.check(maybeDelta) ? maybeDelta.clone() : maybeDelta\n\nexport class TextOp extends list.ListNode {\n /**\n * @param {string} insert\n * @param {FormattingAttributes|null} attributes\n * @param {d.Attribution|null} attribution\n */\n constructor (insert, attributes, attribution) {\n super()\n this.insert = insert\n this.attributes = attributes\n this.attribution = attribution\n }\n\n /**\n * @return {'insert'}\n */\n get type () {\n return 'insert'\n }\n\n get length () {\n return this.insert.length\n }\n\n /**\n * Remove a part of the operation (similar to Array.splice)\n *\n * @param {number} offset\n * @param {number} len\n */\n _splice (offset, len) {\n this.insert = this.insert.slice(0, offset) + this.insert.slice(offset + len)\n }\n\n /**\n * @return {DeltaJsonOp}\n */\n toJSON () {\n return object.assign({ insert: this.insert }, this.attributes ? { attributes: this.attributes } : ({}), this.attribution ? { attribution: this.attribution } : ({}))\n }\n\n /**\n * @param {TextOp} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return fun.equalityDeep(this.insert, other.insert) && fun.equalityDeep(this.attributes, other.attributes) && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n /**\n * @return {TextOp}\n */\n clone () {\n return new TextOp(this.insert, _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))\n }\n}\n\n/**\n * @template {any} ArrayContent\n */\nexport class InsertOp extends list.ListNode {\n /**\n * @param {Array<ArrayContent>} insert\n * @param {FormattingAttributes|null} attributes\n * @param {d.Attribution|null} attribution\n */\n constructor (insert, attributes, attribution) {\n super()\n this.insert = insert\n this.attributes = attributes\n this.attribution = attribution\n }\n\n /**\n * @return {'insert'}\n */\n get type () {\n return 'insert'\n }\n\n get length () {\n return this.insert.length\n }\n\n /**\n * Remove a part of the operation (similar to Array.splice)\n *\n * @param {number} offset\n * @param {number} len\n */\n _splice (offset, len) {\n this.insert.splice(offset, len)\n }\n\n /**\n * @return {DeltaJsonOp}\n */\n toJSON () {\n return object.assign({ insert: this.insert.map(ins => d.$delta.check(ins) ? ins.toJSON() : ins) }, this.attributes ? { attributes: this.attributes } : ({}), this.attribution ? { attribution: this.attribution } : ({}))\n }\n\n /**\n * @param {InsertOp<ArrayContent>} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return fun.equalityDeep(this.insert, other.insert) && fun.equalityDeep(this.attributes, other.attributes) && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n /**\n * @return {InsertOp<ArrayContent>}\n */\n clone () {\n return new InsertOp(this.insert.slice(), _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))\n }\n}\n\nexport class DeleteOp extends list.ListNode {\n /**\n * @param {number} len\n */\n constructor (len) {\n super()\n this.delete = len\n }\n\n /**\n * @return {'delete'}\n */\n get type () {\n return 'delete'\n }\n\n get length () {\n return 0\n }\n\n /**\n * Remove a part of the operation (similar to Array.splice)\n *\n * @param {number} offset\n * @param {number} len\n */\n _splice (offset, len) {\n this.delete -= len\n }\n\n /**\n * @return {DeltaJsonOp}\n */\n toJSON () {\n return { delete: this.delete }\n }\n\n /**\n * @param {DeleteOp} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.delete === other.delete\n }\n\n clone () {\n return new DeleteOp(this.delete)\n }\n}\n\nexport class RetainOp extends list.ListNode {\n /**\n * @param {number} retain\n * @param {FormattingAttributes|null} attributes\n * @param {d.Attribution|null} attribution\n */\n constructor (retain, attributes, attribution) {\n super()\n this.retain = retain\n this.attributes = attributes\n this.attribution = attribution\n }\n\n /**\n * @return {'retain'}\n */\n get type () {\n return 'retain'\n }\n\n get length () {\n return this.retain\n }\n\n /**\n * Remove a part of the operation (similar to Array.splice)\n *\n * @param {number} _offset\n * @param {number} len\n */\n _splice (_offset, len) {\n this.retain -= len\n }\n\n /**\n * @return {DeltaJsonOp}\n */\n toJSON () {\n return object.assign({ retain: this.retain }, this.attributes ? { attributes: this.attributes } : {}, this.attribution ? { attribution: this.attribution } : {})\n }\n\n /**\n * @param {RetainOp} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.retain === other.retain && fun.equalityDeep(this.attributes, other.attributes) && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n clone () {\n return new RetainOp(this.retain, _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))\n }\n}\n\n/**\n * Delta that can be applied on a YType Embed\n *\n * @template {{ toJSON(): any } & traits.EqualityTrait & { clone: any }} DTypes\n */\nexport class ModifyOp extends list.ListNode {\n /**\n * @param {DTypes} delta\n * @param {FormattingAttributes|null} attributes\n * @param {d.Attribution|null} attribution\n */\n constructor (delta, attributes, attribution) {\n super()\n this.modify = delta\n this.attributes = attributes\n this.attribution = attribution\n }\n\n /**\n * @return {'modify'}\n */\n get type () {\n return 'modify'\n }\n\n get length () {\n return 1\n }\n\n /**\n * Remove a part of the operation (similar to Array.splice)\n *\n * @param {number} _offset\n * @param {number} len\n */\n _splice (_offset, len) {\n }\n\n /**\n * @return {DeltaJsonOp}\n */\n toJSON () {\n return object.assign({ modify: this.modify.toJSON() }, this.attributes ? { attributes: this.attributes } : {}, this.attribution ? { attribution: this.attribution } : {})\n }\n\n /**\n * @param {ModifyOp<any>} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.modify[traits.EqualityTraitSymbol](other.modify) && fun.equalityDeep(this.attributes, other.attributes) && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n /**\n * @return {ModifyOp<DTypes>}\n */\n clone () {\n return new ModifyOp(this.modify.clone(), _cloneAttrs(this.attributes), _cloneAttrs(this.attribution))\n }\n}\n\n/**\n * @template V\n * @template [K=string]\n */\nexport class MapInsertOp {\n /**\n * @param {K} key\n * @param {V} value\n * @param {V|undefined} prevValue\n * @param {s.TypeOf<d.$attribution>?} attribution\n */\n constructor (key, value, prevValue, attribution) {\n /**\n * @type {K}\n */\n this.key = key\n /**\n * @type {V}\n */\n this.value = value\n /**\n * @type {V|undefined}\n */\n this.prevValue = prevValue\n this.attribution = attribution\n }\n\n /**\n * @return {'insert'}\n */\n get type () { return 'insert' }\n\n toJSON () {\n return {\n type: this.type,\n value: d.$delta.check(this.value) ? this.value.toJSON() : this.value,\n attribution: this.attribution\n }\n }\n\n /**\n * @param {MapInsertOp<V>} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.key === other.key && fun.equalityDeep(this.value, other.value) && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n /**\n * @return {MapInsertOp<V,K>}\n */\n clone () {\n return new MapInsertOp(this.key, _cloneMaybeDelta(this.value), _cloneMaybeDelta(this.prevValue), _cloneAttrs(this.attribution))\n }\n}\n\n/**\n * @template V\n * @template [K=string]\n */\nexport class MapDeleteOp {\n /**\n * @param {K} key\n * @param {V|undefined} prevValue\n * @param {s.TypeOf<d.$attribution>?} attribution\n */\n constructor (key, prevValue, attribution) {\n /**\n * @type {K}\n */\n this.key = key\n /**\n * @type {V|undefined}\n */\n this.prevValue = prevValue\n this.attribution = attribution\n }\n\n get value () { return undefined }\n\n /**\n * @type {'delete'}\n */\n get type () { return 'delete' }\n\n toJSON () {\n return {\n type: this.type,\n attribution: this.attribution\n }\n }\n\n /**\n * @param {MapDeleteOp<V>} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.key === other.key && fun.equalityDeep(this.attribution, other.attribution)\n }\n\n clone () {\n return new MapDeleteOp(this.key, _cloneMaybeDelta(this.prevValue), _cloneAttrs(this.attribution))\n }\n}\n\n/**\n * @template {d.AbstractDelta} Modifiers\n * @template [K=string]\n */\nexport class MapModifyOp {\n /**\n * @param {K} key\n * @param {Modifiers} delta\n */\n constructor (key, delta) {\n /**\n * @type {K}\n */\n this.key = key\n /**\n * @type {Modifiers}\n */\n this.value = delta\n }\n\n /**\n * @type {'modify'}\n */\n get type () { return 'modify' }\n\n toJSON () {\n return {\n type: this.type,\n value: this.value.toJSON()\n }\n }\n\n /**\n * @param {MapModifyOp<Modifiers>} other\n */\n [traits.EqualityTraitSymbol] (other) {\n return this.key === other.key && this.value[traits.EqualityTraitSymbol](other.value)\n }\n\n /**\n * @return {MapModifyOp<Modifiers,K>}\n */\n clone () {\n return new MapModifyOp(this.key, this.value.clone())\n }\n}\n\nexport const $deltaMapChangeJson = s.$union(\n s.$object({ type: s.$literal('insert'), value: s.$any, attribution: d.$attribution.nullable.optional }),\n s.$object({ type: s.$literal('modify'), value: s.$any }),\n s.$object({ type: s.$literal('delete'), attribution: d.$attribution.nullable.optional })\n)\n\n/**\n * @type {s.Schema<MapDeleteOp<any> | DeleteOp>}\n */\nexport const $deleteOp = s.$custom(o => o != null && (o.constructor === DeleteOp || o.constructor === MapDeleteOp))\n\n/**\n * @type {s.Schema<MapInsertOp<any> | InsertOp<any>>}\n */\nexport const $insertOp = s.$custom(o => o != null && (o.constructor === MapInsertOp || o.constructor === InsertOp))\n\n/**\n * @template Content\n * @param {s.Schema<Content>} $content\n * @return {s.Schema<MapInsertOp<Content> | InsertOp<Content>>}\n */\nexport const $insertOpWith = $content => s.$custom(o =>\n o != null && (\n (o.constructor === MapInsertOp && $content.check(/** @type {MapInsertOp<Content>} */ (o).value)) ||\n (o.constructor === InsertOp && /** @type {InsertOp<Content>} */ (o).insert.every(ins => $content.check(ins)))\n )\n)\n\n/**\n * @type {s.Schema<TextOp>}\n */\nexport const $textOp = s.$constructedBy(TextOp)\n\n/**\n * @type {s.Schema<RetainOp>}\n */\nexport const $retainOp = s.$constructedBy(RetainOp)\n\n/**\n * @type {s.Schema<MapModifyOp<any> | ModifyOp<any>>}\n */\nexport const $modifyOp = s.$custom(o => o != null && (o.constructor === MapModifyOp || o.constructor === ModifyOp))\n\n/**\n * @template {d.AbstractDelta} Modify\n * @param {s.Schema<Modify>} $content\n * @return {s.Schema<MapModifyOp<Modify> | ModifyOp<Modify>>}\n */\nexport const $modifyOpWith = $content => s.$custom(o =>\n o != null && (\n (o.constructor === MapModifyOp && $content.check(/** @type {MapModifyOp<Modify>} */ (o).value)) ||\n (o.constructor === ModifyOp && $content.check(/** @type {ModifyOp<Modify>} */ (o).modify))\n )\n)\n\nexport const $anyOp = s.$union($insertOp, $deleteOp, $textOp, $modifyOp)\n"],"names":["d.$delta","list.ListNode","object.assign","traits.EqualityTraitSymbol","fun.equalityDeep","s.$union","s.$object","s.$literal","s.$any","d.$attribution","s.$custom","s.$constructedBy"],"mappings":";;;;;;;;;;;;;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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