0.4.0 • Published 4 years ago

component-register-extensions v0.4.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Component Register Extensions

This package includes a few mixins(HOCs) for Component Register.

withOptions(fn)

fn is a function at that returns an object to merge into the components options.

withEvents

Provides a 'events' as a property to your component with a number of event helpers.

withTimer

Providers a 'timer' property which has release safe delay and interval methods.

withShadyCSS

Provides mechanism to polyfill shadydom css in unsupporting browsers. Registers the custom element.

This library also exposes the CSS Polyfill directly with:

assignCSSId(element, key)

Pass in a element and key and it will assign a CSSId for the CSSPolyfill. withShadyCSS does this for you automatically for your custom elements. One limitation is this polyfill only supports a single style tag per shadowroot.

applyCSSPolyfill

This method uses a mutation observer to transform elements and style tags to work with the updated scoped styles. You must call this on application startup for the polyfill to work both directly and withShadyCSS.

0.4.0

4 years ago

0.3.0

4 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago