Skip to content

Releases: patternfly/patternfly-elements

@patternfly/pfe-tools@4.0.0

11 Oct 12:16
94b9680

Choose a tag to compare

Major Changes

  • f779095: Removes EleventyRenderPlugin from custom-elements-manifest 11ty plugin config. Ensure you add it yourself.

    Before:

    module.exports = function (eleventyConfig) {
      eleventyConfig.addPlugin(CustomElementsManifestPlugin);
    };

    After:

    import { EleventyRenderPlugin } from "@11ty/eleventy"; // 3.0.0 only
    export default function (eleventyConfig) {
      eleventyConfig.addPlugin(CustomElementsManifestPlugin);
      eleventyConfig.addPlugin(EleventyRenderPlugin);
    }

@patternfly/pfe-tools@3.0.2

09 Oct 15:23
4799ed8

Choose a tag to compare

Patch Changes

  • 4a03ced: SSR: add shim for ResizeObserver

@patternfly/pfe-core@4.0.4

09 Oct 15:23
4799ed8

Choose a tag to compare

Patch Changes

  • 4a03ced: SSR: add shim for ResizeObserver

@patternfly/pfe-core@4.0.3

09 Oct 14:49
e1f9d66

Choose a tag to compare

Patch Changes

  • 7c855a6: TabsARIAController: improve SSR compatibility

@patternfly/elements@4.0.2

26 Sep 16:24
c098e6f

Choose a tag to compare

Patch Changes

  • 155911d: <pf-jump-links>: corrected a layout bug which occurred when the centered attribute applied

@patternfly/pfe-core@4.0.2

25 Sep 07:42
85f1854

Choose a tag to compare

Patch Changes

  • 0ec7338: OverflowController: prevent browser from locking up in some scenarios

@patternfly/pfe-tools@3.0.1

02 Sep 17:41
b8eb5b0

Choose a tag to compare

Patch Changes

  • 921e5d5: TypeScript CSS Import Transforms: allow importing from bare specifiers

@patternfly/pfe-core@4.0.1

27 Aug 09:38
94261f6

Choose a tag to compare

Patch Changes

  • 43b97bf: InternalsController: prevent Safari-detector from breaking SSR

@patternfly/elements@4.0.1

27 Aug 09:38
94261f6

Choose a tag to compare

Patch Changes

  • bce98d2: <pf-icon>: fixed lazy icon lazy loading
  • Updated dependencies [43b97bf]
    • @patternfly/pfe-core@4.0.1

@patternfly/pfe-tools@3.0.0

19 Aug 14:16
9364e16

Choose a tag to compare

Major Changes

  • 1ca3515: Custom Elements Manifest: Removed support for non-standard inline {@default value} JSDoc tags. Use standard syntax instead

    Before:

    /**
     * @cssprop --foo {@default bar} Foo
     */

    After:

    /**
     * @cssprop [--foo=bar] Foo
     */
  • c9bd577: Custom Elements Manifest: added custom-elements-manifest.js, which exports the function getAllManifests

    import { getAllManifests } from "@patternfly/pfe-tools/custom-elements-manifest/custom-elements-manifest/.js";
    
    for (const manifest of getAllManifests()) {
      const packageName = manifest.packageJson?.name ?? "package";
      console.log(
        `Available Elements in ${packageName}`,
        ...manifest.getTagNames()
      );
    }

Minor Changes

  • c9bd577: a11ySnapshot: Added chai assertions for various accessibility-tree scenarios

    Examples:

    describe("<pf-accordion>", function () {
      beforeEach(() =>
        fixture(html`
          <pf-accordion>
            <pf-accordion-header id="header1">header-1</pf-accordion-header>
            <pf-accordion-panel>panel-1</pf-accordion-panel>
          </pf-accordion>
        `)
      );
      describe("clicking the first heading", function () {
        beforeEach(clickFirstHeading);
        it("expands the first panel", async function () {
          expect(await a11ySnapshot()).to.axContainName("panel-1");
        });
        it("focuses the first panel", async function () {
          expect(await a11ySnapshot()).to.have.axTreeFocusOn(
            document.getElementById("header1")
          );
        });
        it("shows the collapse all button", async function () {
          expect(await a11ySnapshot()).to.axContainRole("button");
        });
      });
    });
  • c9bd577: Added querySnapshot accessibility testing helper

    describe("then clicking the toggle", function () {
      beforeEach(async function () {
        await clickElementAtCenter(toggle);
      });
      it("expands the disclosure panel", async function () {
        const snapshot = await a11ySnapshot();
        const expanded = querySnapshot(snapshot, { expanded: true });
        expect(expanded).to.be.ok;
      });
    });
  • c9bd577: TypeScript: Add static version transformer. This adds a runtime-only
    static version field to custom element classes.

    import "@patternfly/elements/pf-button/pf-button.js";
    const PFE_VERSION = await customElements
      .whenDefined("pf-button")
      .then((PfButton) => PfButton.version);

Patch Changes

  • c9bd577: updated dependencies
  • 9d68f3d: Dev Server: load lightdom shim files
  • 9d68f3d: Dev Server: reload on typescript file changes
  • f3f68c9: Windows compatibility for various tools packages
  • c9bd577: Dev Server: use last modified time for the dev server cache
  • c9bd577: Test Runner Config: import the production version of Lit for tests, reducing
    console chatter during test runs