785 Commits

Author SHA1 Message Date
Bartosz Sypytkowski
d25307c355 fixed linter errors 2023-08-31 19:15:18 +02:00
Bartosz Sypytkowski
10cf4b44f8 fixed issues with unbounded XmlText.toString 2023-08-31 19:15:18 +02:00
Bartosz Sypytkowski
160c9ca1b7 quotations ove text with XML formatted strings 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
8788a4b9e0 quotations: fix splitting quoted item and inserting new item in quoted range 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
535bcc3424 added tests for quoting multiple elements in arrays 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
5415565cf0 renamed YArray.link -> YArray.quote 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
02367b612b basics of range based quotations 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
337cc1e202 changed weak link serialization to use restEncoder 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
88883a7402 moved linkedBy reference out of Item into StructStore 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
75853433d9 fixed missing deps for linked content 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
170a80a25f more comments 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
c7f069318e even more delayed visitedLink initialization in event bubbling 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
6e95c19b3e prevent infinite loops when deepObserve is called over links with circular references 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
cc3ca51d6a make WeakLink event propagation bubble up 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
0e0d626220 deep event propagation over linked elements 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
e50db9e123 reimplemented WeakLink as an AbstractType 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
6f9db68f9a renamed WeakLink -> YWeakLink + YWeakLinkEvent 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
c6640fae5b more thorough tests 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
16556fd8a1 simplified model for weak links 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
0d9de28609 WeakLink: generally working except events 2023-08-31 19:15:17 +02:00
Bartosz Sypytkowski
1b6b69f056 first tests passing 2023-08-31 19:15:16 +02:00
Bartosz Sypytkowski
608a309f2c more work 2023-08-31 19:15:16 +02:00
Bartosz Sypytkowski
740598cef2 draft for WeakLink API 2023-08-31 19:15:16 +02:00
Kevin Jahns
97c09a6cca fix #509 2023-08-24 13:52:38 +02:00
Kevin Jahns
c77dedb68d bulk-merging structs - replaces #542, fixes #541 2023-07-17 14:29:54 +02:00
Kevin Jahns
90f2a06b5e throw error when event changes are computed after a transaction 2023-06-27 13:20:53 +02:00
Kevin Jahns
981340139f skip iterating when there are no formatting items - replaces #547 2023-06-25 12:46:02 +02:00
Kevin Jahns
83b7c6839e
Merge pull request #548 from YousefED/fix/equalDeleteSets
fix equalDeleteSets
2023-06-22 17:46:34 +02:00
Kevin Jahns
942c8a267b remove duplicate Transaction.callAll logic 2023-06-22 17:46:49 +02:00
yousefed
eda085936a keep original imports 2023-06-21 18:29:40 +02:00
yousefed
12be6c006a fix equalDeleteSets 2023-06-21 18:28:53 +02:00
Noel Levy
5d862477cd invalidate cached path when changing currentTarget of event
fixes #544
2023-06-19 11:31:45 -07:00
Kevin Jahns
885a740470 heavily improve performance when there are many events 2023-06-15 13:09:30 +02:00
Kevin Jahns
ce098d0ac2 refactor #538 (formatting attrs) a bit 2023-06-15 12:40:28 +02:00
Noel Levy
08801dd406 scan the document once for all ytexts when cleaning up
Fixes #522 but is a scarier change
2023-06-12 18:20:22 -07:00
Noel Levy
3741f43a11 group cleanups for YText changes into a single transaction
Fixes #522 but is still massively slow
2023-06-12 16:56:19 -07:00
Kevin Jahns
719858201a implement snapshotContainsUpdate 2023-06-08 11:14:49 +02:00
Kevin Jahns
83712cb1a6 update typings of getAttributes 2023-05-04 11:26:11 +02:00
Kevin Jahns
30b56d5ae9 Enable typings for inserting custom attrs in YXmlElement - fixes #531 2023-05-04 10:07:05 +02:00
Kevin Jahns
adaa95ebb8 add example to createDocFromSnapshot - #159 2023-04-27 18:08:28 +02:00
Kevin Jahns
39167e6e2a Implement function that obfuscates a ydoc and scrambles its content 2023-04-22 18:39:29 +02:00
Kevin Jahns
d039d48b3f ytext: diff should never create useless delta op 2023-04-18 20:07:17 +02:00
Kevin Jahns
49f435284f lint 2023-04-03 14:10:26 +02:00
Kevin Jahns
ba96f2fe74 implement fix for #500. extends #515 2023-04-03 14:02:37 +02:00
Dominik Henneke
1674d3986d Restore deleted entries in a map 2023-04-03 14:02:37 +02:00
WofWca
fb6664a2bc
docs: fix JSDoc typo 2023-04-01 23:12:49 +08:00
Kevin Jahns
cb70d7bad3 fix typings and lib0 resolution 2023-03-21 11:14:37 +01:00
Kevin Jahns
227018f5c7 toDelta doesnt create transaction - fixes #506 2023-03-11 09:13:27 +01:00
Kevin Jahns
92bad63145 add docs: tr.changes should only be computed during the event 2023-03-09 18:44:43 +01:00
Kevin Jahns
fe48efe64f fix generating too many cleanup transactions. closes #506 2023-03-09 13:45:13 +01:00