Docs
Changed
- Improved the extension of components via
DomComponents.addType
Read more about this here - In
isComponent
is not necessary anymore to return the object with itstype
to accept it, any truthy value is enough.
// Before
isComponent: el => {
if (el.tagName === 'SOME-TAG') {
return { type: 'my-component' };
}
}
// After
isComponent: el => el.tagName === 'SOME-TAG'
- Add default attributes in the creation of new components
- Emit
component:clone
event on the component which was cloned - Clear old attributes in
updateAttributes
- Don't trigger component hooks for temporary components
- Improved the parserHtml
Added
- Added
getTypes
method inDomComponents