-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fixes HTML importer to make image entity immutable #2184
Fixes HTML importer to make image entity immutable #2184
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.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@claudiopro merged this pull request in b858f43. |
) Summary: **Summary** Makes image entities created with the HTML importer immutable This diff also adds the `flow` annotation to the `convertFromHTMLToContentBlocks` test case and fixes typechecking failures that are surfaced by its addition. To support a more modern syntax to handle nullable fields, it adds the `babel/plugin-proposal-optional-chaining` plugin to Babel config. Fixes facebookarchive#2149 **Test Plan** Adds tests to verify created entities are immutable Pull Request resolved: facebookarchive#2184 Reviewed By: j-nolan Differential Revision: D17474930 Pulled By: claudiopro fbshipit-source-id: c60ef368ff471914c2e188277a0ecc050115533b
) Summary: **Summary** Makes image entities created with the HTML importer immutable This diff also adds the `flow` annotation to the `convertFromHTMLToContentBlocks` test case and fixes typechecking failures that are surfaced by its addition. To support a more modern syntax to handle nullable fields, it adds the `babel/plugin-proposal-optional-chaining` plugin to Babel config. Fixes facebookarchive#2149 **Test Plan** Adds tests to verify created entities are immutable Pull Request resolved: facebookarchive#2184 Reviewed By: j-nolan Differential Revision: D17474930 Pulled By: claudiopro fbshipit-source-id: c60ef368ff471914c2e188277a0ecc050115533b
Summary: **Summary** Makes image entities created with the HTML importer immutable This diff also adds the `flow` annotation to the `convertFromHTMLToContentBlocks` test case and fixes typechecking failures that are surfaced by its addition. To support a more modern syntax to handle nullable fields, it adds the `babel/plugin-proposal-optional-chaining` plugin to Babel config. Fixes facebookarchive/draft-js#2149 **Test Plan** Adds tests to verify created entities are immutable Pull Request resolved: facebookarchive/draft-js#2184 Reviewed By: j-nolan Differential Revision: D17474930 Pulled By: claudiopro fbshipit-source-id: c60ef368ff471914c2e188277a0ecc050115533b
Summary
Makes image entities created with the HTML importer immutable
This PR also adds the
@flow
annotation to theconvertFromHTMLToContentBlocks
test case and fixes typechecking failures that are surfaced by its addition.To support a more modern syntax to handle nullable fields, it adds the
@babel/plugin-proposal-optional-chaining
plugin to Babel config.Fixes #2149
Test Plan
Adds tests to verify created entities are immutable