-
Notifications
You must be signed in to change notification settings - Fork 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
Add VBE editor injector #86123
Add VBE editor injector #86123
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Async-loaded Components (~66 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
…ticle-fetching-content.tsx
…-article-alternates-query.js
…nto vbe/add-injector
@Automattic/team-calypso would really appreciate your help 🙏🏼 |
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.
Haven't dug into this too deep, but at first glance this looks like a good candidate to be implemented as a Calypso app. I'd also advise you to borrow the build config from one of the working apps (they use @automattic/calypso-apps-builder
AFAIK), since they're all independently loaded outside of Calypso as standalone apps. This will likely solve whatever build issue you've been having.
I'll check that out! Maybe we don't even need to publish on npm. |
I think JSX is OK here, I suspect something with the Gutenberg components ( Is there a situation where exactly the same code, built and bundled differently, works as expected? I'd like to compare the working and non-working versions side by side. |
You're kinda right. I was sure it's a build issue because it's working perfectly in https://wordpress.com/comment. To see it
But we now realized that removing the children of |
Removing |
The Verbum package in this PR is build with There were some framework changes between these two versions (12.5.0 is from Nov 29, 12.6.0 from Dec 13), for example #56996 by @youknowriad that integrates For some reason, it's the |
Regarding The situation with the Automattic/verbum version is a bit different: if the initial content is empty, it will default it to |
While testing this, I noticed that some styles are broken, but the stylesheet itself looks ok. I also noticed that BlockTools is being rendered twice, I believe this is causing some CSS issues. The content being rendered from BlockToolbar is also a bit different from what we had in Verbum initially, it gets more CSS classes I believe by default and might also be breaking styling. There is also a version difference between Verbum and Calypso, I will try to downgrade Calypso and see if it works better |
@@ -0,0 +1 @@ | |||
.cache |
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.
Let's add a /packages/*/.cache
record to the top-level .gitignore
instead. There's already an identical one for apps/...
there.
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.
Applied the suggestion 👍
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Co-authored-by: escapemanuele <escapemanuele@gmail.com> Co-authored-by: Renan <renansscarvalho@gmail.com>
Changes
This PR aims to create a standalone bundle that attaches the Gutenberg editor to a textarea and makes it support blocks. By standalone, I mean a library that exposes global and doesn't have any dependencies.
Testing steps
Regression testing
Testing in Verbum
packages/verbum-block-editor
.yarn dev --sync
.use/packaged-editor
and runnpm run start:sync
.Old description
## Proposed Changes
This PR aims to create a standalone bundle that attaches the Gutenberg editor to a textarea and makes it support blocks. By standalone, I mean a library that exposes global and doesn't have any dependencies.
The goal is to be able to publish it to NPM, then import it in here and use it.
Issue
For some reason, the editor is not being rendered correctly. It's a bit hard to describe the issue, but if you follow the steps, and take a quick look at the code, you'll see it right away!
Reproduction steps
npm i serve --global && serve
).I suspect it's a JSX issue.
Related thread: p1704811519896619-slack-C7YPUHBB2