@open-pioneer/react-utils 4.7.0-dev.20260727091735 → 4.7.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 +52 -52
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @open-pioneer/react-utils
2
2
 
3
- ## 4.7.0-dev.20260727091735
3
+ ## 4.7.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - 9d84f1e: Migrated from eslint to oxlint.
11
+ - 9d84f1e: Migrated from eslint to oxlint and from prettier to oxfmt.
12
12
 
13
13
  ## 4.6.0
14
14
 
@@ -18,23 +18,23 @@
18
18
  These components render translated messages using `intl.formatMessage` / `intl.formatRichMessage`
19
19
  and support reactive changes of the `intl` property.
20
20
 
21
- Example:
21
+ Example:
22
22
 
23
- ```tsx
24
- // currentIntl can be a signal
25
- <FormattedMessage intl={currentIntl} id="message.id" />
26
- ```
23
+ ```tsx
24
+ // currentIntl can be a signal
25
+ <FormattedMessage intl={currentIntl} id="message.id" />
26
+ ```
27
27
 
28
28
  - 27f5f1e: Add a new `classnames` function to replace the `classnames` package.
29
29
  - 4b207f4: Added a `required` option to `useHeadingLevel` hook to make it return `undefined` instead of throwing an error when used outside of a `TitledSection`.
30
30
 
31
- This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
31
+ This allows to use the hook in components which do not necessarily need to be used inside a `TitledSection`.
32
32
 
33
- ```tsx
34
- const currentHeading: number | undefined = useHeadingLevel({
35
- required: false,
36
- });
37
- ```
33
+ ```tsx
34
+ const currentHeading: number | undefined = useHeadingLevel({
35
+ required: false
36
+ });
37
+ ```
38
38
 
39
39
  ## 4.5.0
40
40
 
@@ -44,20 +44,20 @@
44
44
  - d523ade: Add more properties to the `CommonComponentProps` interface.
45
45
  Previously, trails components only allowed customizing the `className`.
46
46
 
47
- Now, these additional properties are supported:
48
- - `role`: the ARIA role
49
- - `aria-*`: arbitrary ARIA attributes
50
- - `data-*`: arbitrary JavaScript values
51
- - `css`: additional Chakra style rules
47
+ Now, these additional properties are supported:
48
+ - `role`: the ARIA role
49
+ - `aria-*`: arbitrary ARIA attributes
50
+ - `data-*`: arbitrary JavaScript values
51
+ - `css`: additional Chakra style rules
52
52
 
53
- NOTE: Defining these values may overwrite existing behavior of a component if values cannot be merged.
54
- For example, overriding an existing `data-` property may break a component.
53
+ NOTE: Defining these values may overwrite existing behavior of a component if values cannot be merged.
54
+ For example, overriding an existing `data-` property may break a component.
55
55
 
56
56
  - d523ade: Implement `mergeChakraProps` helper to merge multiple props objects.
57
57
  - 604a589: Provide an implementation of the roving tab index pattern for menus ("Roving Menu").
58
58
  This roving menu can be used to implement accessible menus with support for keyboard navigation.
59
- - Supports plain menus (e.g. toolbars, sidebars, ...)
60
- - Supports simple cases of nesting (horizontal menu in vertical menu, or the other way around)
59
+ - Supports plain menus (e.g. toolbars, sidebars, ...)
60
+ - Supports simple cases of nesting (horizontal menu in vertical menu, or the other way around)
61
61
 
62
62
  ## 4.4.0
63
63
 
@@ -101,22 +101,22 @@
101
101
  - a5177fc: Allow using `SectionHeading` in the children of a `TitledSection` instead of the `title` prop.
102
102
  This is more flexible and more readable compared to complex components in the `title` prop.
103
103
 
104
- For example:
104
+ For example:
105
105
 
106
- ```jsx
107
- <TitledSection>
108
- <SectionHeading>Top level heading (H1)</SectionHeading>
109
- .. Some Content ..
106
+ ```jsx
110
107
  <TitledSection>
111
- <Box backgroundColor="green.500">
112
- <SectionHeading>Other Heading (H2)</SectionHeading>
113
- </Box>
114
- .. More Content ..
108
+ <SectionHeading>Top level heading (H1)</SectionHeading>
109
+ .. Some Content ..
110
+ <TitledSection>
111
+ <Box backgroundColor="green.500">
112
+ <SectionHeading>Other Heading (H2)</SectionHeading>
113
+ </Box>
114
+ .. More Content ..
115
+ </TitledSection>
115
116
  </TitledSection>
116
- </TitledSection>
117
- ```
117
+ ```
118
118
 
119
- Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
119
+ Note that you should be using exactly one `<SectionHeading />` for each `<TitledSection />`.
120
120
 
121
121
  ### Patch Changes
122
122
 
@@ -136,13 +136,13 @@
136
136
  ### Major Changes
137
137
 
138
138
  - 9477e54: Update dependencies
139
- - React 19
140
- - Vite 6
141
- - FormatJS 3
142
- - Open Pioneer Build Tools
143
- - ...
139
+ - React 19
140
+ - Vite 6
141
+ - FormatJS 3
142
+ - Open Pioneer Build Tools
143
+ - ...
144
144
 
145
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
145
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
146
146
 
147
147
  ## 2.4.0
148
148
 
@@ -176,14 +176,14 @@
176
176
 
177
177
  - a208b32: **Breaking:** Removed the `ToolButton` component; it has moved to `@open-pioneer/map-ui-components`.
178
178
 
179
- If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
179
+ If you were previously using the `ToolButton` in your app, you need to update your import statements when updating to this version:
180
180
 
181
- ```diff
182
- - import { ToolButton } from "@open-pioneer/react-utils";
183
- + import { ToolButton } from "@open-pioneer/map-ui-components";
184
- ```
181
+ ```diff
182
+ - import { ToolButton } from "@open-pioneer/react-utils";
183
+ + import { ToolButton } from "@open-pioneer/map-ui-components";
184
+ ```
185
185
 
186
- You need to update your `package.json` as well to refer to the `map-ui-components` package.
186
+ You need to update your `package.json` as well to refer to the `map-ui-components` package.
187
187
 
188
188
  ### Minor Changes
189
189
 
@@ -199,13 +199,13 @@
199
199
  - 2c092dc: Update dependencies
200
200
  - 4140646: Add `sectionHeadingProps` to configure the generated `<SectionHeading>` if `title` is a string.
201
201
 
202
- For example:
202
+ For example:
203
203
 
204
- ```tsx
205
- <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
206
- ... Titled content ...
207
- </TitledSection>
208
- ```
204
+ ```tsx
205
+ <TitledSection title="some title" sectionHeadingProps={{ size: "lg" }}>
206
+ ... Titled content ...
207
+ </TitledSection>
208
+ ```
209
209
 
210
210
  ## 0.2.2
211
211
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/react-utils",
4
- "version": "4.7.0-dev.20260727091735",
4
+ "version": "4.7.0",
5
5
  "description": "Contains common react utilities used by the open pioneer trails project",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -17,8 +17,8 @@
17
17
  "@chakra-ui/react": "^3.36.1",
18
18
  "@conterra/reactivity-core": "^0.8.6",
19
19
  "react": "^19.2.8",
20
- "@open-pioneer/core": "4.7.0-dev.20260727091735",
21
- "@open-pioneer/reactivity": "4.7.0-dev.20260727091735"
20
+ "@open-pioneer/core": "4.7.0",
21
+ "@open-pioneer/reactivity": "4.7.0"
22
22
  },
23
23
  "exports": {
24
24
  "./package.json": "./package.json",