Automattic / isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
343 stars 50 forks source link

Update 2.19.0 #188

Closed johngodley closed 2 years ago

johngodley commented 2 years ago

Updates to the latest Gutenberg packages. This requires a few changes to remove a deprecated anchorRef.

Something has changed in Gutenberg (possibly @wordpress/data and @wordpress/compose) that has affected the Typescript checking in this repo, resulting in a lot of warnings with valid code. After checking it seems the same code doesn't produce warnings in Gutenberg itself because Typescript doesn't run on those areas of code.

Until there is a better way (possibly as a result of whatever code migration is ongoing in Gutenberg itself) I've just disabled typescript in various files and bits of code here. The code is mostly related to old usage of withSelect and withDispatch.

I've not been able to update the Babel packages as it breaks Storybook in a way I'm unable to fix. For now I will leave those alone and hope whatever issues exist are fixed further up the line.