222 Commits

Author SHA1 Message Date
Bartosz Sypytkowski
747ceb9916 moved linkedBy reference out of Item into StructStore 2023-06-30 11:29:06 +02:00
Bartosz Sypytkowski
9d2b488691 fixed missing deps for linked content 2023-06-23 07:16:35 +02:00
Bartosz Sypytkowski
6d1d46c80f even more delayed visitedLink initialization in event bubbling 2023-06-15 10:44:22 +02:00
Bartosz Sypytkowski
5b3306fc10 prevent infinite loops when deepObserve is called over links with circular references 2023-06-15 09:50:06 +02:00
Bartosz Sypytkowski
c7e3840a93 make WeakLink event propagation bubble up 2023-06-15 05:55:24 +02:00
Bartosz Sypytkowski
4aad1bb344 deep event propagation over linked elements 2023-06-09 16:17:21 +02:00
Bartosz Sypytkowski
5dcf2d7610 working flat observers over arrays + test 2023-06-09 16:04:20 +02:00
Bartosz Sypytkowski
2c60c4a130 reimplemented WeakLink as an AbstractType 2023-06-09 15:55:25 +02:00
Bartosz Sypytkowski
7b0d5fede5 renamed WeakLink -> YWeakLink + YWeakLinkEvent 2023-06-09 13:57:06 +02:00
Bartosz Sypytkowski
3f68e787de more thorough tests 2023-06-04 08:44:24 +02:00
Bartosz Sypytkowski
7c3af93fa9 simplified model for weak links 2023-06-02 20:02:28 +02:00
Bartosz Sypytkowski
93a65faf0a WeakLink: generally working except events 2023-05-31 08:45:17 +02:00
Bartosz Sypytkowski
7433b58a09 first tests passing 2023-05-30 11:51:36 +02:00
Bartosz Sypytkowski
d062cc5420 more work 2023-05-30 09:05:06 +02:00
Bartosz Sypytkowski
c7539b028a draft for WeakLink API 2023-05-29 10:17:38 +02:00
Kevin Jahns
83712cb1a6 update typings of getAttributes 2023-05-04 11:26:11 +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
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
99bab4a1d8 Fix lint errors 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
Kevin Jahns
cb70d7bad3 fix typings and lib0 resolution 2023-03-21 11:14:37 +01:00
Kevin Jahns
2001bec8eb modernize tsconfig 2023-03-11 12:20:52 +01:00
Kevin Jahns
227018f5c7 toDelta doesnt create transaction - fixes #506 2023-03-11 09:13:27 +01:00
Kevin Jahns
da8bacfc78 add tests for complex Y.Text deltas 2023-03-10 12:53:48 +01:00
Kevin Jahns
fe48efe64f fix generating too many cleanup transactions. closes #506 2023-03-09 13:45:13 +01:00
Kevin Jahns
bf338d8040 fix attribute update issue - fixes #503 2023-03-02 19:08:01 +01:00
Kevin Jahns
1c999b250e fix #474 - formatting bug 2023-02-14 16:19:22 +01:00
Kevin Jahns
e9189365ee add debugging case for #474 - unfininished 2023-02-13 14:27:57 +01:00
Kevin Jahns
7445a9ce5f add whenSynced and isSynced property with refined logic 2023-01-31 12:56:07 +01:00
Kevin Jahns
7f6c12a541 bump typescript and fix type issues 2023-01-31 12:16:03 +01:00
Neftaly Hernandez
d29de75f85 Add test for Y.Array.from 2023-01-23 06:41:57 +00:00
Kevin Jahns
3ece681758 allow transactions within event handlers having different origins 2022-11-30 12:09:19 +01:00
Kevin Jahns
7395229086 Port test from @PatrickShaw #432. Allow infinite captureTimeout in UndoManager #431. Closes #432 2022-10-18 16:45:30 +02:00
Kevin Jahns
df2d59e2fb UndoManager: fix special deletion case. closes #447 closes #443 2022-07-28 14:12:21 +02:00
Kevin Jahns
6fa8778fc7 add doc parameter to UndoManager 2022-07-22 14:22:46 +02:00
Kevin Jahns
14c14de21e simplify testhelper 2022-04-20 18:01:33 +02:00
Kevin Jahns
a22b3cdbc1 add option to UndoManager to ignore remote map changes. implements #390 2022-03-26 10:29:19 +01:00
Kevin Jahns
6b8cef29e2 address #398 2022-03-20 23:58:14 +01:00
Kevin Jahns
d0f9c4a27f lint 2022-03-02 13:25:56 +01:00
Kevin Jahns
a5ffdce342 bump dependencies 2022-03-02 13:23:18 +01:00
dkuhnert
abf3fab1b6 cleanup redundant text attributes when delete attributes
fixes #392
2022-02-23 14:53:31 +01:00
Kevin Jahns
24eddb2d75 fix concurrent formatting / cleanup bug 2022-02-04 12:41:13 +01:00
Kevin Jahns
04009f0d42 Merge branch 'update-attributes-on-delete' of git://github.com/ja2nicholl/yjs into ja2nicholl-update-attributes-on-delete 2022-02-04 10:39:41 +01:00
Jeremy Nicholl
84e95f11cb Fix formatting 2022-02-03 15:19:57 -05:00
Kevin Jahns
4cfa49d601 reproduce and fix issues #355 #343 #304 and closes #367 2022-02-03 21:10:24 +01:00
Jeremy Nicholl
164b38f0cd Avoid copying attribute map when deleting
Calling cleanupFormattingGap should not make a copy of the
attributes because it needs to be able to update them.
2022-01-31 14:49:16 -05:00
Kevin Jahns
3aebb8db83 correct typings for a test 2022-01-10 22:04:28 +01:00
Kevin Jahns
610e532868 add test case for nested Y.Text as embeds. 2021-11-27 11:37:11 +01:00