Skip to content

Releases: patternfly/patternfly-elements

@patternfly/pfe-core@5.0.3

16 Jul 11:27
ef900df

Choose a tag to compare

Patch Changes

  • 2cf37ca: InternalsController: add ariaRelevant property

@patternfly/pfe-core@5.0.2

25 May 04:44
4920a43

Choose a tag to compare

Patch Changes

  • ce5b27b: SlotController: correctly report the state of the default slot in isEmpty() calls with no arguments

@patternfly/pfe-core@5.0.1

10 Apr 20:45
8020937

Choose a tag to compare

Patch Changes

  • fefd8bb: SlotController: correctly report slot content after updating

@patternfly/pfe-core@5.0.0

07 Apr 14:43
61ead0f

Choose a tag to compare

Major Changes

  • 0277045: Enable connectedCallback() and context protocol in SSR scenarios.

    BREAKING CHANGE
    This change affects any element which is expected to execute in node JS when
    lit-ssr shims are present. By enabling the connectedCallback() to execute
    server side. Elements must ensure that their connectedCallbacks do not try to
    access the DOM.

    Before:

    connectedCallback() {
      super.connectedCallback();
      this.items = [...this.querySelectorAll('my-item')];
    }

    After:

    connectedCallback() {
      super.connectedCallback();
      if (!isServer) {
        this.items = isServer ? [] : [...this.querySelectorAll('my-item')];
      }
    }

Minor Changes

  • 8b5b699: SSR: added ssr-hint-has-slotted and ssr-hint-has-slotted-default attributes to elements that use slot controller.

    When running SSR on elements with slots, add these attributes to ensure they render correctly.

    <pf-card ssr-hint-has-slotted-default
             ssr-hint-has-slotted="header,footer">
      <h2 slot="header">Header Content</h2>
      <p>Default content</p>
      <span slot="footer">Footer Content</span>
    </pf-card>

Patch Changes

  • a2f3254: ScrollSpyController: respond to hashchange events

@patternfly/elements@4.1.0

07 Apr 14:43
61ead0f

Choose a tag to compare

Minor Changes

  • 8b5b699: SSR: added ssr-hint-has-slotted and ssr-hint-has-slotted-default attributes to elements that use slot controller.

    When running SSR on elements with slots, add these attributes to ensure they render correctly.

    <pf-card ssr-hint-has-slotted-default
             ssr-hint-has-slotted="header,footer">
      <h2 slot="header">Header Content</h2>
      <p>Default content</p>
      <span slot="footer">Footer Content</span>
    </pf-card>

Patch Changes

  • 996e089: SSR: enable more elements and more features to be rendered server-side
  • Updated dependencies [0277045]
  • Updated dependencies [8b5b699]
  • Updated dependencies [a2f3254]
    • @patternfly/pfe-core@5.0.0

@patternfly/pfe-tools@4.0.3

09 Mar 07:02
3d48094

Choose a tag to compare

Patch Changes

  • 9208bcf: Dev Server: pass ignore and typeScript options to import map generator plugin

@patternfly/pfe-tools@4.0.2

26 Feb 16:37
f2dc263

Choose a tag to compare

Patch Changes

  • 2910260: Update changesets version

@patternfly/pfe-core@4.0.5

26 Feb 16:37
f2dc263

Choose a tag to compare

Patch Changes

  • 0fb28b6: SlotController: hasContent/isEmpty now respects text nodes

@patternfly/create-element@1.0.4

26 Feb 16:37
f2dc263

Choose a tag to compare

Patch Changes

  • fe349ea: Fixed type errors in create-element template

@patternfly/pfe-tools@4.0.1

13 Oct 05:37
1f9e527

Choose a tag to compare

Patch Changes

  • d2cd76d: Test Runner: prevent config exception when lightdom shims are present