-
Notifications
You must be signed in to change notification settings - Fork 88
Support latest version of Slate #83
base: master
Are you sure you want to change the base?
Conversation
@quentez I can also take a look into this whenever you cant work on it, let me know how your workflow is going |
@omar-sr88 I got most things working, and we're actually using this branch right now in our product. I still have issues getting all the tests to pass though. The problem appears to be that the data structure for the selection changed, and because of this it doesn't work to initialize it from |
It would be great to convert all these tests to |
Hi there, I started to take a look at moving from yaml files to jsx ones but I am struggling to make the correct version of the yamls into jsx. Not sure if Im getting the structure is correct when I need empty paragraphs specifically |
@Soreine Could you please do one of the tests here to use hyperscript? I have tried working with
and the expected.yaml To:
Followed the pattern used on slate-edit-table for this, but my result keeps showing me the |
@omar-sr88 I have converted all tests to hyperscript. I'm sorry, I can't merge this right now. We are still thinking whether we will upgrade our codebase to the new Slate version at GitBook. We might fork Slate for a moment. We will communicate on this precisely this week. |
@Soreine can I ask what potential limitations you're facing that are making you consider forking? |
Hi, we're actually depending on this change (we upgraded slate and it broke this plugin). Is there an ETA on the decision to merge? Is there something I can do (i.e., remaining tasks) to move things along? |
@Soreine @SamyPesse do you have any update on your decision? |
@slapbox We've just published a readme on our fork explaining the reasons: https://github.com/GitbookIO/slate/blob/master/Readme.md |
@SamyPesse thanks very much for the update. Your reasons make a lot of sense. I know internally upgrading to 0.40.0 before forking probably makes no sense, but I think you'd have the potential to rope in a larger chunk of the community if you upgraded before forking. I don't know how much interest Gitbook has in keeping the community though, as I don't know the strategic goals as well. Best of luck with this fork and thanks for all you've contributed to the Slate community. You too @Soreine! |
@SamyPesse thanks for the update – would you be interested in exchanging ownership of the npm module if a fork continues your work tracking the Slate mainline? |
I've fixed all the tests and made the code compatible with the latest Slate version. (The lint fails because of bugs in the Gitbook ESLint config). |
Update: I've published that PR here for the time being. I make no guarantee of stability/maintainability for now, but it may be helpful for people who are blocked. We will probably start a new package soon that we will maintain in the long run, but this probably won't happen for another month. |
@quentez thanks very much for your work. |
fd524de
to
bfce02d
Compare
@quentez Thank you very much for your work! I've loaded your package with newest version of Slate and it doesn't work as expected. Did you try it with newest version of Slate? |
@svenadlung I started a PR to upgrade to latest slate here: frontapp#1 would be good to get a second set of eyes on it and whether it seems like its working |
@cdunn Thx a lot. For me your PR looks pretty good! No problems so far. |
Still a work in progress.
I need to get all of the tests working.