-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Packages: Extract the editor package #8081
Conversation
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.
So far so good. All changes look good. I like that you replaced occurrences of registerCoreBlocks
with local definitions of the required blocks.
@@ -22,8 +22,7 @@ | |||
"dependencies": { | |||
"@babel/runtime": "^7.0.0-beta.52", | |||
"element-closest": "^2.0.2", | |||
"lodash": "^4.17.10", | |||
"tinymce": "^4.7.2" | |||
"lodash": "^4.17.10" |
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.
Nice, to see tinymce
isn't required by dom
anymore.
251778e
to
b3d166e
Compare
aec4a4c
to
e9de074
Compare
"lodash": "^4.17.10", | ||
"memize": "^1.0.5", | ||
"querystring": "^0.2.0", | ||
"querystringify": "^1.0.0", |
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.
We use multiple querystring
libraries, we should settle on one. I'm leaving this for a later PR though.
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.
And Gutenberg itself also requires http-build-query
to build PHP-compatible query strings (because PHP has to be special), which adds to the query string fun :)
e9de074
to
7defb0e
Compare
@hypest - we are changing the way styles are loaded, we no longer use At the moment it might still work since Riad left |
@@ -32,7 +32,6 @@ | |||
"@wordpress/i18n": "file:../i18n", | |||
"@wordpress/is-shallow-equal": "file:../is-shallow-equal", | |||
"@wordpress/shortcode": "file:../shortcode", | |||
"dom-react": "^2.2.1", |
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.
When checking listed deps I discovered it is no longer used in blocks
🤷♂️
@youknowriad, I added a few very small tweaks based on the things I found during review. I also executed |
@@ -0,0 +1,92 @@ | |||
/** |
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.
I think this file was removed. It looks like a merge issue.
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.
Looks great in my opinion. It also tests well.
There is still one file with-colors-deprecated.js
which most likely should be removed. I think @jorgefilipecosta can confirm.
Travis failed again on one of the tests:
If I see it again on Monday, I will disable this test ... |
21c2e1a
to
75c68a8
Compare
8235fd5
to
75c68a8
Compare
Description
Part of #3955.
This PR extracts new
@wordpress/editor
package.Remaining
window.userSettings.uid
global Data module: Add built-in support for persisting stores #8146How has this been tested?
Make sure all tests pass