@open-pioneer/react-utils 4.9.0 → 4.10.0-dev.20261119090001

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 +60 -53
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,13 +1,20 @@
1
1
  # @open-pioneer/react-utils
2
2
 
3
+ ## 4.10.0-dev.20261119090001
4
+
5
+ ### Patch Changes
6
+
7
+ - 57b5b4f: Enable trusted publishing for this package.
8
+ - 93d2a9f: Update dependencies
9
+
3
10
  ## 4.9.0
4
11
 
5
12
  ### Patch Changes
6
13
 
7
14
  - 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.
15
+ - Pressing `End` in a menu whose current item is unknown now moves to the last item instead of the first.
16
+ - Keyboard navigation uses `getAttribute("aria-disabled")` to skip disabled nodes instead of reading the `ariaDisabled` property.
17
+ - `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
18
 
12
19
  - 42ca366: Update dependencies
13
20
 
@@ -40,23 +47,23 @@
40
47
  These components render translated messages using `intl.formatMessage` / `intl.formatRichMessage`
41
48
  and support reactive changes of the `intl` property.
42
49
 
43
- Example:
50
+ Example:
44
51
 
45
- ```tsx
46
- // currentIntl can be a signal
47
- <FormattedMessage intl={currentIntl} id="message.id" />
48
- ```
52
+ ```tsx
53
+ // currentIntl can be a signal
54
+ <FormattedMessage intl={currentIntl} id="message.id" />
55
+ ```
49
56
 
50
57
  - 27f5f1e: Add a new `classnames` function to replace the `classnames` package.
51
58
  - 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
59
 
53
- This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
60
+ This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
54
61
 
55
- ```tsx
56
- const currentHeading: number | undefined = useHeadingLevel({
57
- required: false
58
- });
59
- ```
62
+ ```tsx
63
+ const currentHeading: number | undefined = useHeadingLevel({
64
+ required: false,
65
+ });
66
+ ```
60
67
 
61
68
  ## 4.5.0
62
69
 
@@ -66,20 +73,20 @@
66
73
  - d523ade: Add more properties to the `CommonComponentProps` interface.
67
74
  Previously, trails components only allowed customizing the `className`.
68
75
 
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
76
+ Now, these additional properties are supported:
77
+ - `role`: the ARIA role
78
+ - `aria-*`: arbitrary ARIA attributes
79
+ - `data-*`: arbitrary JavaScript values
80
+ - `css`: additional Chakra style rules
74
81
 
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.
82
+ NOTE: Defining these values may overwrite existing behavior of a component if values cannot be merged.
83
+ For example, overriding an existing `data-` property may break a component.
77
84
 
78
85
  - d523ade: Implement `mergeChakraProps` helper to merge multiple props objects.
79
86
  - 604a589: Provide an implementation of the roving tab index pattern for menus ("Roving Menu").
80
87
  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)
88
+ - Supports plain menus (e.g. toolbars, sidebars, ...)
89
+ - Supports simple cases of nesting (horizontal menu in vertical menu, or the other way around)
83
90
 
84
91
  ## 4.4.0
85
92
 
@@ -123,22 +130,22 @@
123
130
  - a5177fc: Allow using `SectionHeading` in the children of a `TitledSection` instead of the `title` prop.
124
131
  This is more flexible and more readable compared to complex components in the `title` prop.
125
132
 
126
- For example:
133
+ For example:
127
134
 
128
- ```jsx
135
+ ```jsx
136
+ <TitledSection>
137
+ <SectionHeading>Top level heading (H1)</SectionHeading>
138
+ .. Some Content ..
129
139
  <TitledSection>
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>
140
+ <Box backgroundColor="green.500">
141
+ <SectionHeading>Other Heading (H2)</SectionHeading>
142
+ </Box>
143
+ .. More Content ..
138
144
  </TitledSection>
139
- ```
145
+ </TitledSection>
146
+ ```
140
147
 
141
- Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
148
+ Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
142
149
 
143
150
  ### Patch Changes
144
151
 
@@ -158,13 +165,13 @@
158
165
  ### Major Changes
159
166
 
160
167
  - 9477e54: Update dependencies
161
- - React 19
162
- - Vite 6
163
- - FormatJS 3
164
- - Open Pioneer Build Tools
165
- - ...
168
+ - React 19
169
+ - Vite 6
170
+ - FormatJS 3
171
+ - Open Pioneer Build Tools
172
+ - ...
166
173
 
167
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
174
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
168
175
 
169
176
  ## 2.4.0
170
177
 
@@ -198,14 +205,14 @@
198
205
 
199
206
  - a208b32: **Breaking:** Removed the `ToolButton` component; it has moved to `@open-pioneer/map-ui-components`.
200
207
 
201
- If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
208
+ If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
202
209
 
203
- ```diff
204
- - import { ToolButton } from "@open-pioneer/react-utils";
205
- + import { ToolButton } from "@open-pioneer/map-ui-components";
206
- ```
210
+ ```diff
211
+ - import { ToolButton } from "@open-pioneer/react-utils";
212
+ + import { ToolButton } from "@open-pioneer/map-ui-components";
213
+ ```
207
214
 
208
- You need to update your `package.json` as well to refer to the `map-ui-components` package.
215
+ You need to update your `package.json` as well to refer to the `map-ui-components` package.
209
216
 
210
217
  ### Minor Changes
211
218
 
@@ -221,13 +228,13 @@
221
228
  - 2c092dc: Update dependencies
222
229
  - 4140646: Add `sectionHeadingProps` to configure the generated `<SectionHeading>` if `title` is a string.
223
230
 
224
- For example:
231
+ For example:
225
232
 
226
- ```tsx
227
- <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
228
- ... Titled content ...
229
- </TitledSection>
230
- ```
233
+ ```tsx
234
+ <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
235
+ ... Titled content ...
236
+ </TitledSection>
237
+ ```
231
238
 
232
239
  ## 0.2.2
233
240
 
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",
4
+ "version": "4.10.0-dev.20261119090001",
5
5
  "description": "Contains common react utilities used by the open pioneer trails project",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,10 +14,10 @@
14
14
  "directory": "src/packages/react-utils"
15
15
  },
16
16
  "dependencies": {
17
- "@chakra-ui/react": "^3.37.0",
17
+ "@chakra-ui/react": "^3.38.0",
18
18
  "@conterra/reactivity-core": "^0.8.9",
19
- "@open-pioneer/core": "4.9.0",
20
- "@open-pioneer/reactivity": "4.9.0",
19
+ "@open-pioneer/core": "4.10.0-dev.20261119090001",
20
+ "@open-pioneer/reactivity": "4.10.0-dev.20261119090001",
21
21
  "react": "^19.3.1"
22
22
  },
23
23
  "publishConfig": {