Commit Graph

2019 Commits

Author SHA1 Message Date
Kevin Jahns
4d582748c1 more generic gedDelta implementation (could be used for events) 2025-07-25 16:07:31 +02:00
Kevin Jahns
b646654df1 be able to intersect idmaps and idsets 2025-07-25 16:07:31 +02:00
Kevin Jahns
62422544bc events can be computed with attributions 2025-07-25 16:07:31 +02:00
Kevin Jahns
fc620617df lint & fix tests 2025-07-25 16:07:31 +02:00
Kevin Jahns
cb191e744e [y.text] event returns delta - fix a bunch of bugs 2025-07-25 16:07:31 +02:00
Kevin Jahns
0efa4dd2a7 [diffing] event returns delta class object, migrate away from legacy deltas, work on snapshots using attribution manager. WIP 2025-07-25 16:07:28 +02:00
Kevin Jahns
de12a0ff9f 14.0.0-5 2025-07-25 16:06:41 +02:00
Kevin Jahns
04c6fbde52 fix nicks test case 2025-07-25 16:06:41 +02:00
Kevin Jahns
00c2646031 [idmap/idset] implement forEach and perf improvement on diffingAttributionManager 2025-07-25 16:06:41 +02:00
Kevin Jahns
6e98b3f1f3 14.0.0-4 2025-07-25 16:06:41 +02:00
Kevin Jahns
2aba7bf0fd add missing exports for y-prosemirror 2025-07-25 16:06:41 +02:00
Kevin Jahns
397f24bc7d 14.0.0-3 2025-07-25 16:06:41 +02:00
Kevin Jahns
7528541713 bump y-protocols 2025-07-25 16:06:39 +02:00
Kevin Jahns
d8143efb12 fix nicks test 2025-07-25 16:06:02 +02:00
Kevin Jahns
a43f1983c5 [AttributionManager] auto-updates on doc changes and can destroy itself 2025-07-25 16:06:02 +02:00
Kevin Jahns
2daad96c12 implement idset.delete & idmap.delete 2025-07-25 16:06:02 +02:00
Kevin Jahns
574892be8c 14.0.0-2 2025-07-25 16:05:59 +02:00
Kevin Jahns
df4a424793 lint 2025-07-25 16:03:30 +02:00
Kevin Jahns
af2ccc741f add an simple attributions example 2025-07-25 16:03:30 +02:00
Kevin Jahns
527e382f8a implement createAttributionsManagerFromDiff that automatically handles gc 2025-07-25 16:03:30 +02:00
Kevin Jahns
1722c8a36f Implement & test getContentDeep for all types. Improve ability to compare things using lib0/traits. 2025-07-25 16:03:30 +02:00
Kevin Jahns
4f840247a3 implement and test getContent on all types 2025-07-25 16:03:30 +02:00
Kevin Jahns
b3171c535f getContent on Y.Map 2025-07-25 16:03:30 +02:00
Kevin Jahns
ece7466123 [AttributionManager] further improve performance to be almost on-par with toString 2025-07-25 16:03:30 +02:00
Kevin Jahns
324620d578 [attribution manager] returns null instead of empty array to reduce gc allocations 2025-07-25 16:03:30 +02:00
Kevin Jahns
d399756eec more work on optimizing. Improve the test case. 2025-07-25 16:03:30 +02:00
Kevin Jahns
f5e2a4d4f4 add test case for finding a type in another ydoc 2025-07-25 16:03:30 +02:00
Kevin Jahns
a6b2dd1d66 more perf improvements on getContent with attributedContent 2025-07-25 16:03:30 +02:00
Kevin Jahns
fbfe0e0eeb working on performance 2025-07-25 16:03:30 +02:00
Kevin Jahns
69786f7ee5 add another example and create a writeup for attributing content. 2025-07-25 16:03:30 +02:00
Kevin Jahns
768d6b1cb2 perf tests toDelta vs getContent 2025-07-25 16:03:30 +02:00
Kevin Jahns
7de9476e27 attribution tests for adding and removing attributes 2025-07-25 16:03:30 +02:00
Kevin Jahns
3c37699392 basic attribution test working 2025-07-25 16:03:30 +02:00
Kevin Jahns
6671071213 first test case for attributions 2025-07-25 16:03:30 +02:00
Kevin Jahns
2e2968e71b attributions and fixes to idmap 2025-07-25 16:03:30 +02:00
Kevin Jahns
5f5cf343a8 implement base AttributionManager class and use in Y.Text 2025-07-25 16:03:30 +02:00
Kevin Jahns
f78a7d009e more renames (ds=>idset) 2025-07-25 16:03:30 +02:00
Kevin Jahns
065f268b00 more renames (am=>idmap) 2025-07-25 16:03:30 +02:00
Kevin Jahns
99bcafe193 efficient encoding & decoding of IdMaps 2025-07-25 16:03:30 +02:00
Kevin Jahns
2d87301af2 implement attribution class that is de-duplicated in IdMap 2025-07-25 16:03:30 +02:00
Kevin Jahns
1d025ae73f rename AttributionManager=>IdMap
The "AttributionManager" will be an abstract class that maps data
(probably using IdMap(s))
2025-07-25 16:03:30 +02:00
Kevin Jahns
55238e0faf ds is no longer maintained on store - improves perf 2025-07-25 16:03:30 +02:00
Kevin Jahns
a36075161a diffing of attribution manager state 2025-07-25 16:03:30 +02:00
Kevin Jahns
8908bd21dc [am] fixed tests 2025-07-25 16:03:30 +02:00
Kevin Jahns
a6ae65d32c Work on AttributionManager 2025-07-25 16:03:30 +02:00
Kevin Jahns
869dd2aa41 use stores ds to compute state as update 2025-07-25 16:03:30 +02:00
Kevin Jahns
6360297e33 doc maintains ds 2025-07-25 16:03:30 +02:00
Kevin Jahns
46347ee6ec rename DeleteSet=>IdSet and add utilities and perf improvements 2025-07-25 16:03:16 +02:00
Kevin Jahns
c554bd754d add test case for insertSet 2025-07-25 15:58:25 +02:00
Kevin Jahns
da3cb22147 use "insertSet" instead of computing state vectors in transactions 2025-07-25 15:58:25 +02:00