Repository - API - Source
component.on('update')
- fixed this.props
to hold up-to-date value.preact
to "10.5.7":warning: this release breaks towards 5.x.x :warning:
To be able to access updated DOM on mounted component call await component.update()
otherwise the update happens async, ie accessing the DOM right after component update yeilds unexpected results.
preact
to "10.2.1"Component.appendAt(container, props)
- applies any String props
to the created element.render-as
feature support:warning: this release breaks towards 4.2.0 :warning:
compilers/tag-file
- delegates all js specific component definition to the runtimeindex.js
- represents an singleton commonjs module aka the runtime with default renderer preact
directives
are removedBaseTag
api is removedtag.plasma
is removed and custom elements dispatch custom dom events on themselfsupdate
method to properly assign tag.attributes
tagName(tagName, props)
support for directives which need to change rendered tagNameREADME.md
with known issue 3update
event is fired after tag props/attrs are updatedpostCreate
is not triggeredfreeze
-ed dom elements with childrenpostCreate(el, value)
tag.keepTagName
oval.mountAll
oval.appendAt
oval.mountAt
oval.BaseTag
morphdom
with incremental-dom
freeze
if
control statements having multiple expressions within as single linecreateElement
BaseTag.morph()
BaseTag.updateinnerChildren(sourceEl)
- accepting optional source elementBaseTag.injectDirectives()
- every directive accepts tag
and directiveName
BaseTag.updateAttributes(sourceEl)
- accepts optional source elementBaseTag.updateProps(sourceEl)
- accepts optional source elementBaseTag.updateRefs(sourceEl)
- accepts optional source elementif
control statement edge case with inner tags having the same name of the openning oneunmount
with unmounted
and introduced unmount
as before element removekeepParentTag
with keepTagName
tag.shouldRender
is refactored as flag instead of functionbaseTag
all props from parent component go to tag.props
ref-
is now called prop-
oval.mountAt
tag.updateProps()
which populates tag.props
objecttag.updateRefs()
which populates tag.refs
objecttag.updateAttributes()
which populates tag.attributes
objectoval.unmount
tag.keepParentTag
, defaults to true
if
control statements parserbaseTag
's tag.injectDirectives
passes tag
to every directive:create-element
to passes the createElement
function to every directive along with the tagName
, props
and children
registerTag
remove usage of document.registerTag
BaseTag
organic-plasma-dom eventsBaseTag.shouldRender
oval
oval.init
oval.updateElement
oval.createElement
oval.BaseTag
oval.registerTag
oval.getRegisteredTag
oval.mountAll
oval.appendAt