- Support parsing nested blocks (thanks @YuliyaBolbot!)
- Bugfix: render single blocks in a category again (thanks @YuliyaBolbot!)
- Add a
prepare
script to make it easier to test forks (thanks again @YuliyaBolbot!)
- Add a
parseWorkspaceXml
function that makes it easier to use XML-formatted toolboxes with react-blockly-component (thanks @Macilias!)
- Make
type
an optional prop because categories don't always use it
- Fix a logic error in BlocklyEditor's componentDidUpdate (thanks @prabak!)
- If the toolbox props change, automatically update the toolbox in Blockly
- Support React 16. Drop support for React 0.14.x.
- Deprecate
xmlDidChange
in favor ofworkspaceDidChange
, which gives you access to the workspace object itself to allow generating code for any language including XML (thanks @Xaptor!) - Stop depending on ReactDOM in favor of callback refs.
- Major internal cleanups to pass AirBnB's eslint configuration.
- Update react-immutable-proptypes dependency to avoid warning in newer React versions (thanks @ipince!)
- BREAKING CHANGE: Swap the order of arguments for
domToWorkspace
to match the latest Blockly changes (thanks @ipince!)
- Handle errors when importing/exporting workspace XML, optionally passing the error back to the app (thanks @benjie!)
- Support
readOnly
mode for workspaces (thanks @benjie!).
- Add
colour
property for toolbox blocks (thanks @benjie!).
- Add
.npmignore
so that npm doesn't use.gitignore
by default.
- Make React a peerDependency.
- Loosen the React version dependency.
- Fix a bug that was causing unnecessary toolbox updates.
- Expose a
resize
function fromBlocklyEditor
andBlocklyWorkspace
that causes the workspace to resize to fit its container element.
- Breaking change: the component now uses Immutable.js internally to track its state and properties for dramatically improved performance. This is mostly invisible to embedding apps, but if they have a custom
processToolboxCategory
function, that function will now be passed an Immutable.js Map and is expected to return one (either modified or not).
- Reconfigured the build to emit compiled ES5 in the dist-modules directory, for easier use in build systems.
- Add a default export so that this component can easily be used inside another ES6 module.
- Add support for PatientsLikeMe's [https://github.com/google/blockly/pull/224](pending pull request) on Blockly to allow typeahead search.
- Add a code of conduct.
- Initial public release.