-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add basic collaborative editing with automerge #71
Conversation
6f71de0
to
cafaa88
Compare
eabe3e7
to
fe6083d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm :)
fe6083d
to
6a65762
Compare
Nice :) But I don't get why the CI thinks the lockfile is outdated... |
c54f8d0
to
f0dff42
Compare
6414f9f
to
cc6a0b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great. LGTM, just two inline thoughts.
@@ -1,4 +1,5 @@ | |||
import { Observable } from 'lib0/observable'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib0
is still an old dependency from the yjs-devs. Does it make since to keep it now that we decided against yjs or can we switch this to something from the stdlib or self-built?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, this can be easily replaced with something self build. Would do this in a separate PR though
|
||
declare module 'slate' { | ||
interface CustomTypes { | ||
Editor: BaseEditor & ReactEditor; | ||
Editor: BaseEditor & ReactEditor & AutomergeEditor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AutomergeEditor
is already BaseEditor & ...
, so the following should work?
Editor: BaseEditor & ReactEditor & AutomergeEditor; | |
Editor: AutomergeEditor & ReactEditor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this should work. Do you like it better that way? :D I've no opinion on this
Seems like the lockfile of slate-automerge-doc was simply not up to date 🙈 Let's cross fingers the CI works now 🤞 |
7c591dd
to
f9850be
Compare
f9850be
to
341d876
Compare
No description provided.