Skip to content

Releases: BuilderIO/mitosis

@builder.io/[email protected]

29 Jan 21:13
5594fac
Compare
Choose a tag to compare

Patch Changes

  • d24889d: [angular,stencil] Fix attribute-passing in options

@builder.io/[email protected]

29 Jan 21:13
5594fac
Compare
Choose a tag to compare

Patch Changes

@builder.io/[email protected]

27 Jan 21:07
2a6aa82
Compare
Choose a tag to compare

Patch Changes

  • 0c493b2: [Builder] Fix null check issue with localized values

@builder.io/[email protected]

27 Jan 21:07
2a6aa82
Compare
Choose a tag to compare

Patch Changes

@builder.io/[email protected]

22 Jan 18:08
b15f534
Compare
Choose a tag to compare

Patch Changes

  • 1d74164: adds support to Builder parser and generator for inline localized content

@builder.io/[email protected]

22 Jan 18:08
b15f534
Compare
Choose a tag to compare

Patch Changes

@builder.io/[email protected]

20 Jan 17:08
8b492b7
Compare
Choose a tag to compare

Patch Changes

  • b63279f: [angular, stencil]: Add attributePassing to enable passing attributes like data-*, aria-* or class to correct child.

    There is a wired behaviour for Angular and Stencil (without shadow DOM), where attributes are rendered on parent elements like this:

    Input

    <!-- Angular -->
    <my-component class="cool" data-nice="true" aria-label="wow"></my-component>
    

    Output

    <!-- DOM -->
    <my-component class="cool" data-nice="true" aria-label="wow">
      <button class="my-component">My Component</button>
    </my-component>

    In general, we want to pass those attributes down to the rendered child, like this:

    <!-- DOM -->
    <my-component>
      <button class="my-component cool" data-nice="true" aria-label="wow">My Component</button>
    </my-component>

    We provide 2 ways to enable this attribute passing:

    Metadata

    // my-component.lite.tsx
    useMetadata({
      attributePassing: {
        enabled: true,
        // customRef: "_myRef";
      },
    });

    Config

    // mitosis.config.cjs
    module.exports = {
      // ... other settings
      attributePassing: {
        enabled: true,
        // customRef: "_myRef";
      },
    };

    If you enable the attributePassing we add a new ref to the root element named _root to interact with the DOM element. If you wish to control the name of the ref, because you already have a useRef on your root element, you can use the customRef property to select it.

@builder.io/[email protected]

20 Jan 17:08
8b492b7
Compare
Choose a tag to compare

Patch Changes

@builder.io/[email protected]

15 Jan 20:23
ed0d7fa
Compare
Choose a tag to compare

Patch Changes

  • 92ad2c6: Misc: stop using fs-extra-promise dependency

@builder.io/[email protected]

15 Jan 14:00
dbfc462
Compare
Choose a tag to compare

Patch Changes

  • 57bdffe: [angular] fix issue with definite assignment (!) for props with defaultProps