Skip to content

Commit 99e4081

Browse files
chore: prepare release (#2528)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c4170a5 commit 99e4081

File tree

12 files changed

+98
-87
lines changed

12 files changed

+98
-87
lines changed

.changeset/accordion-expanded-index.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/core-floating-ui-ts-error.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/elements-react-wrappers.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

.changeset/pf-timestamp-controller.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/tools-react-wrappers.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/tools-styling-hooks-ids.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

core/pfe-core/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @patternfly/pfe-core
22

3+
## 2.4.0
4+
5+
### Minor Changes
6+
7+
- a81bcb133: **Controllers**: Added timestamp controller
8+
9+
### Patch Changes
10+
11+
- 7055add74: `FloatingDOMController`: fixed an incorrect typescript import
12+
313
## 2.3.1
414

515
### Patch Changes

core/pfe-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternfly/pfe-core",
3-
"version": "2.3.1",
3+
"version": "2.4.0",
44
"license": "MIT",
55
"description": "PatternFly Elements Core Library",
66
"customElements": "custom-elements.json",

elements/CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
# @patternfly/elements
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- c4170a595: PatternFly elements are now available wrapped in React components. While it was
8+
always possible to use PatternFly elements (or any other custom elements) in
9+
React apps, this release makes it easier to integrate them into React without
10+
the need for cumbersome workarounds to React's [poor HTML and DOM support][cee].
11+
12+
Before:
13+
14+
```jsx
15+
import { useEffect, useState, useRef } from "react";
16+
import "@patternfly/elements/pf-switch/pf-switch.js";
17+
18+
function App() {
19+
const [checked, setChecked] = useState(false);
20+
const switchRef = useRef(null);
21+
useEffect(() => {
22+
switchRef.current.checked = checked;
23+
}, [switchRef.current, checked]);
24+
useEffect(() => {
25+
switchRef.current.addEventListener("change", () =>
26+
setChecked(switchRef.current.checked)
27+
);
28+
}, [switchRef.current]);
29+
return (
30+
<>
31+
<pf-switch ref={switchRef}></pf-switch>
32+
</>
33+
);
34+
}
35+
```
36+
37+
After:
38+
39+
```jsx
40+
import { useState } from "react";
41+
import { Switch } from "@patternfly/elements/react/pf-switch/pf-switch.js";
42+
43+
function App() {
44+
const [checked, setChecked] = useState(false);
45+
return (
46+
<>
47+
<Switch
48+
checked={checked}
49+
onChange={({ target }) => setChecked(target.checked)}
50+
/>
51+
</>
52+
);
53+
}
54+
```
55+
56+
[cee]: https://custom-elements-everywhere.com/#react
57+
58+
### Patch Changes
59+
60+
- f4a7ae7d7: `<pf-accordion>`: update the `expandedIndex` DOM property on change
61+
- Updated dependencies [7055add74]
62+
- Updated dependencies [a81bcb133]
63+
- @patternfly/[email protected]
64+
365
## 2.2.2
466
567
### Patch Changes

elements/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@patternfly/elements",
33
"license": "MIT",
4-
"version": "2.2.2",
4+
"version": "2.3.0",
55
"description": "PatternFly Elements",
66
"customElements": "custom-elements.json",
77
"type": "module",
@@ -119,7 +119,7 @@
119119
],
120120
"dependencies": {
121121
"@patternfly/icons": "^1.0.2",
122-
"@patternfly/pfe-core": "^2.3.1",
122+
"@patternfly/pfe-core": "^2.4.0",
123123
"lit": "2.6.1",
124124
"tslib": "^2.4.1"
125125
}

0 commit comments

Comments
 (0)