@open-pioneer/react-utils 4.7.0 → 4.7.1-dev-test-snapshot.20260821120534

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