Skip to content

Commit

Permalink
chore: prepare release (#2528)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jul 5, 2023
1 parent c4170a5 commit 99e4081
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 87 deletions.
4 changes: 0 additions & 4 deletions .changeset/accordion-expanded-index.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/core-floating-ui-ts-error.md

This file was deleted.

51 changes: 0 additions & 51 deletions .changeset/elements-react-wrappers.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/pf-timestamp-controller.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/tools-react-wrappers.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/tools-styling-hooks-ids.md

This file was deleted.

10 changes: 10 additions & 0 deletions core/pfe-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @patternfly/pfe-core

## 2.4.0

### Minor Changes

- a81bcb133: **Controllers**: Added timestamp controller

### Patch Changes

- 7055add74: `FloatingDOMController`: fixed an incorrect typescript import

## 2.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion core/pfe-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/pfe-core",
"version": "2.3.1",
"version": "2.4.0",
"license": "MIT",
"description": "PatternFly Elements Core Library",
"customElements": "custom-elements.json",
Expand Down
62 changes: 62 additions & 0 deletions elements/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# @patternfly/elements

## 2.3.0

### Minor Changes

- c4170a595: PatternFly elements are now available wrapped in React components. While it was
always possible to use PatternFly elements (or any other custom elements) in
React apps, this release makes it easier to integrate them into React without
the need for cumbersome workarounds to React's [poor HTML and DOM support][cee].

Before:

```jsx
import { useEffect, useState, useRef } from "react";
import "@patternfly/elements/pf-switch/pf-switch.js";

function App() {
const [checked, setChecked] = useState(false);
const switchRef = useRef(null);
useEffect(() => {
switchRef.current.checked = checked;
}, [switchRef.current, checked]);
useEffect(() => {
switchRef.current.addEventListener("change", () =>
setChecked(switchRef.current.checked)
);
}, [switchRef.current]);
return (
<>
<pf-switch ref={switchRef}></pf-switch>
</>
);
}
```
After:
```jsx
import { useState } from "react";
import { Switch } from "@patternfly/elements/react/pf-switch/pf-switch.js";

function App() {
const [checked, setChecked] = useState(false);
return (
<>
<Switch
checked={checked}
onChange={({ target }) => setChecked(target.checked)}
/>
</>
);
}
```
[cee]: https://custom-elements-everywhere.com/#react
### Patch Changes
- f4a7ae7d7: `<pf-accordion>`: update the `expandedIndex` DOM property on change
- Updated dependencies [7055add74]
- Updated dependencies [a81bcb133]
- @patternfly/[email protected]
## 2.2.2
### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions elements/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/elements",
"license": "MIT",
"version": "2.2.2",
"version": "2.3.0",
"description": "PatternFly Elements",
"customElements": "custom-elements.json",
"type": "module",
Expand Down Expand Up @@ -119,7 +119,7 @@
],
"dependencies": {
"@patternfly/icons": "^1.0.2",
"@patternfly/pfe-core": "^2.3.1",
"@patternfly/pfe-core": "^2.4.0",
"lit": "2.6.1",
"tslib": "^2.4.1"
}
Expand Down
22 changes: 22 additions & 0 deletions tools/pfe-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @patternfly/pfe-tools

## 1.4.0

### Minor Changes

- f4a7ae7d7: **React**: adds `@patternfly/pfe-tools/react/generate-wrappers.js`

Use this to generate React component wrappers for Lit custom elements,
based on their `custom-elements.json` manifest.

```js
import { generateReactWrappers } from "@patternfly/pfe-tools/react/generate-wrappers.js";

const inURL = new URL("../elements/custom-elements.json", import.meta.url);
const outURL = new URL("../elements/react/", import.meta.url);

await generateReactWrappers(inURL, outURL);
```
### Patch Changes
- 699a812bf: `11ty`: prevent duplicate IDs on code pages when multiple elements are documented
## 1.3.2
### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion tools/pfe-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/pfe-tools",
"version": "1.3.2",
"version": "1.4.0",
"type": "module",
"description": "Development and build tools for PatternFly Elements and related projects",
"keywords": [
Expand Down

0 comments on commit 99e4081

Please sign in to comment.