@open-pioneer/react-utils 4.9.0-dev.20261029090037 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +54 -54
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @open-pioneer/react-utils
2
2
 
3
- ## 4.9.0-dev.20261029090037
3
+ ## 4.9.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 6b160f3: Fix three roving menu issues:
8
- - Pressing `End` in a menu whose current item is unknown now moves to the last item instead of the first.
9
- - Keyboard navigation uses `getAttribute("aria-disabled")` to skip disabled nodes instead of reading the `ariaDisabled` property.
10
- - `useRovingMenuItem({ disabled: true })` now returns `itemProps` with `aria-disabled="true"`. Previously the item element had to carry the attribute itself to be skipped during keyboard navigation.
8
+ - Pressing `End` in a menu whose current item is unknown now moves to the last item instead of the first.
9
+ - Keyboard navigation uses `getAttribute("aria-disabled")` to skip disabled nodes instead of reading the `ariaDisabled` property.
10
+ - `useRovingMenuItem({ disabled: true })` now returns `itemProps` with `aria-disabled="true"`. Previously the item element had to carry the attribute itself to be skipped during keyboard navigation.
11
11
 
12
12
  - 42ca366: Update dependencies
13
13
 
@@ -40,23 +40,23 @@
40
40
  These components render translated messages using `intl.formatMessage` / `intl.formatRichMessage`
41
41
  and support reactive changes of the `intl` property.
42
42
 
43
- Example:
43
+ Example:
44
44
 
45
- ```tsx
46
- // currentIntl can be a signal
47
- <FormattedMessage intl={currentIntl} id="message.id" />
48
- ```
45
+ ```tsx
46
+ // currentIntl can be a signal
47
+ <FormattedMessage intl={currentIntl} id="message.id" />
48
+ ```
49
49
 
50
50
  - 27f5f1e: Add a new `classnames` function to replace the `classnames` package.
51
51
  - 4b207f4: Added a `required` option to `useHeadingLevel` hook to make it return `undefined` instead of throwing an error when used outside of a `TitledSection`.
52
52
 
53
- This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
53
+ This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
54
54
 
55
- ```tsx
56
- const currentHeading: number | undefined = useHeadingLevel({
57
- required: false,
58
- });
59
- ```
55
+ ```tsx
56
+ const currentHeading: number | undefined = useHeadingLevel({
57
+ required: false
58
+ });
59
+ ```
60
60
 
61
61
  ## 4.5.0
62
62
 
@@ -66,20 +66,20 @@
66
66
  - d523ade: Add more properties to the `CommonComponentProps` interface.
67
67
  Previously, trails components only allowed customizing the `className`.
68
68
 
69
- Now, these additional properties are supported:
70
- - `role`: the ARIA role
71
- - `aria-*`: arbitrary ARIA attributes
72
- - `data-*`: arbitrary JavaScript values
73
- - `css`: additional Chakra style rules
69
+ Now, these additional properties are supported:
70
+ - `role`: the ARIA role
71
+ - `aria-*`: arbitrary ARIA attributes
72
+ - `data-*`: arbitrary JavaScript values
73
+ - `css`: additional Chakra style rules
74
74
 
75
- NOTE: Defining these values may overwrite existing behavior of a component if values cannot be merged.
76
- For example, overriding an existing `data-` property may break a component.
75
+ NOTE: Defining these values may overwrite existing behavior of a component if values cannot be merged.
76
+ For example, overriding an existing `data-` property may break a component.
77
77
 
78
78
  - d523ade: Implement `mergeChakraProps` helper to merge multiple props objects.
79
79
  - 604a589: Provide an implementation of the roving tab index pattern for menus ("Roving Menu").
80
80
  This roving menu can be used to implement accessible menus with support for keyboard navigation.
81
- - Supports plain menus (e.g. toolbars, sidebars, ...)
82
- - Supports simple cases of nesting (horizontal menu in vertical menu, or the other way around)
81
+ - Supports plain menus (e.g. toolbars, sidebars, ...)
82
+ - Supports simple cases of nesting (horizontal menu in vertical menu, or the other way around)
83
83
 
84
84
  ## 4.4.0
85
85
 
@@ -123,22 +123,22 @@
123
123
  - a5177fc: Allow using `SectionHeading` in the children of a `TitledSection` instead of the `title` prop.
124
124
  This is more flexible and more readable compared to complex components in the `title` prop.
125
125
 
126
- For example:
126
+ For example:
127
127
 
128
- ```jsx
129
- <TitledSection>
130
- <SectionHeading>Top level heading (H1)</SectionHeading>
131
- .. Some Content ..
128
+ ```jsx
132
129
  <TitledSection>
133
- <Box backgroundColor="green.500">
134
- <SectionHeading>Other Heading (H2)</SectionHeading>
135
- </Box>
136
- .. More Content ..
130
+ <SectionHeading>Top level heading (H1)</SectionHeading>
131
+ .. Some Content ..
132
+ <TitledSection>
133
+ <Box backgroundColor="green.500">
134
+ <SectionHeading>Other Heading (H2)</SectionHeading>
135
+ </Box>
136
+ .. More Content ..
137
+ </TitledSection>
137
138
  </TitledSection>
138
- </TitledSection>
139
- ```
139
+ ```
140
140
 
141
- Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
141
+ Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
142
142
 
143
143
  ### Patch Changes
144
144
 
@@ -158,13 +158,13 @@
158
158
  ### Major Changes
159
159
 
160
160
  - 9477e54: Update dependencies
161
- - React 19
162
- - Vite 6
163
- - FormatJS 3
164
- - Open Pioneer Build Tools
165
- - ...
161
+ - React 19
162
+ - Vite 6
163
+ - FormatJS 3
164
+ - Open Pioneer Build Tools
165
+ - ...
166
166
 
167
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
167
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
168
168
 
169
169
  ## 2.4.0
170
170
 
@@ -198,14 +198,14 @@
198
198
 
199
199
  - a208b32: **Breaking:** Removed the `ToolButton` component; it has moved to `@open-pioneer/map-ui-components`.
200
200
 
201
- If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
201
+ If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
202
202
 
203
- ```diff
204
- - import { ToolButton } from "@open-pioneer/react-utils";
205
- + import { ToolButton } from "@open-pioneer/map-ui-components";
206
- ```
203
+ ```diff
204
+ - import { ToolButton } from "@open-pioneer/react-utils";
205
+ + import { ToolButton } from "@open-pioneer/map-ui-components";
206
+ ```
207
207
 
208
- You need to update your `package.json` as well to refer to the `map-ui-components` package.
208
+ You need to update your `package.json` as well to refer to the `map-ui-components` package.
209
209
 
210
210
  ### Minor Changes
211
211
 
@@ -221,13 +221,13 @@
221
221
  - 2c092dc: Update dependencies
222
222
  - 4140646: Add `sectionHeadingProps` to configure the generated `<SectionHeading>` if `title` is a string.
223
223
 
224
- For example:
224
+ For example:
225
225
 
226
- ```tsx
227
- <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
228
- ... Titled content ...
229
- </TitledSection>
230
- ```
226
+ ```tsx
227
+ <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
228
+ ... Titled content ...
229
+ </TitledSection>
230
+ ```
231
231
 
232
232
  ## 0.2.2
233
233
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/react-utils",
4
- "version": "4.9.0-dev.20261029090037",
4
+ "version": "4.9.0",
5
5
  "description": "Contains common react utilities used by the open pioneer trails project",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -16,8 +16,8 @@
16
16
  "dependencies": {
17
17
  "@chakra-ui/react": "^3.37.0",
18
18
  "@conterra/reactivity-core": "^0.8.9",
19
- "@open-pioneer/core": "4.9.0-dev.20261029090037",
20
- "@open-pioneer/reactivity": "4.9.0-dev.20261029090037",
19
+ "@open-pioneer/core": "4.9.0",
20
+ "@open-pioneer/reactivity": "4.9.0",
21
21
  "react": "^19.3.1"
22
22
  },
23
23
  "publishConfig": {