167 Commits

Author SHA1 Message Date
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
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
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
981340139f skip iterating when there are no formatting items - replaces #547 2023-06-25 12:46:02 +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
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
d039d48b3f ytext: diff should never create useless delta op 2023-04-18 20:07:17 +02:00
WofWca
fb6664a2bc
docs: fix JSDoc typo 2023-04-01 23:12:49 +08:00
Kevin Jahns
227018f5c7 toDelta doesnt create transaction - fixes #506 2023-03-11 09:13:27 +01:00
Kevin Jahns
fe48efe64f fix generating too many cleanup transactions. closes #506 2023-03-09 13:45:13 +01:00
Kevin Jahns
035e350062 optimize formatting cleanup 2023-03-02 19:48:00 +01:00
Kevin Jahns
bf338d8040 fix attribute update issue - fixes #503 2023-03-02 19:08:01 +01:00
Kevin Jahns
2576d4efca increasing sort of ds encoding 2023-02-21 14:35:28 +01:00
Kevin Jahns
1c999b250e fix #474 - formatting bug 2023-02-14 16:19:22 +01:00
Kevin Jahns
7f6c12a541 bump typescript and fix type issues 2023-01-31 12:16:03 +01:00
Kevin Jahns
3ece681758 allow transactions within event handlers having different origins 2022-11-30 12:09:19 +01:00
Kevin Jahns
cac9407185 remove snapshot param in yxml.getAttributes 2022-11-30 11:34:34 +01:00
Wenchen Li
12667f6b66
Remove unused return in forEach of YMap
If the idea is to keep the API as close to the JS Map as possible, maybe we should consider not returning here.

Ref: https://github.com/microsoft/TypeScript/blob/v4.8.3/lib/lib.es2015.collection.d.ts#L28-L31
2022-09-19 18:19:41 -04:00
Kevin Jahns
588788fbef fix snapshot diff calculation naming bug 2022-09-14 00:37:06 +02:00
Kevin Jahns
ece1fe5426 minimize changes when formatting text - #422 2022-05-09 12:53:26 +02:00
Kevin Jahns
1c9c97ffe6 add yxml.forEach method - closes #421 2022-04-23 15:13:26 +02:00
Kevin Jahns
71fad52854 fix typing information YMap.iterator - fixes #420 2022-04-20 13:09:56 +02:00
Kevin Jahns
9f1548204a
Merge pull request #376 from fson/yevent-target-type
Add more accurate typing for YEvent.target
2022-03-02 13:18:00 +01:00
dkuhnert
fddb620d41 cleanup redundant text attributes when delete attributes
fixes #392
2022-02-23 18:20:26 +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
2d1e3fde43 fixed edge formatting case 2022-02-04 11:26:32 +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
Ville Immonen
81a36a2762 add more accurate typing for YEvent.target 2022-01-15 14:22:17 +02:00
Kevin Jahns
20e1234af2 implement performant push in arrays 2022-01-11 21:53:20 +01:00
Kevin Jahns
8abf5b85ff fix #344 - formatting attribute assign bug 2021-11-06 14:35:04 +01:00
Kevin Jahns
e33c67fc72 bump standard linter 2021-10-14 16:18:50 +02:00
Kevin Jahns
9afc5cf615
Merge pull request #331 from thomaswelter/main
Add support for null values in Y.Map and Y.Array
2021-10-14 15:08:20 +02:00
Kevin Jahns
ca0fb4b15d
Merge pull request #332 from yjs/types-as-embeds
Allow types as Y.Text embeds
2021-10-14 15:04:26 +02:00