@open-pioneer/spatial-bookmarks 1.5.0-dev.20260917081843 → 1.5.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.
- package/CHANGELOG.md +30 -29
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/spatial-bookmarks
|
|
2
2
|
|
|
3
|
-
## 1.5.0
|
|
3
|
+
## 1.5.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- f790fda: Update to Chakra 3.37.0
|
|
8
|
+
- a186f5d: Update core packages to 4.8.0.
|
|
8
9
|
|
|
9
10
|
### Patch Changes
|
|
10
11
|
|
|
@@ -81,29 +82,29 @@
|
|
|
81
82
|
|
|
82
83
|
- 9376a74: Ensure that icons and other decorative elements are hidden from the screen reader using the `aria-hidden="true"` attribute.
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
The easiest way to do that is to wrap icons into chakra's `<Icon />` component, for example:
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
```tsx
|
|
88
|
+
import { Icon } from "@chakra-ui/react";
|
|
89
|
+
import { FiX } from "react-icons/fi";
|
|
89
90
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
<Icon>
|
|
92
|
+
<FiX />
|
|
93
|
+
</Icon>;
|
|
94
|
+
```
|
|
94
95
|
|
|
95
96
|
- 0137b05: Fix a11y issues.
|
|
96
97
|
|
|
97
|
-
|
|
98
|
+
**Improvements:**
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
- add descriptive `aria-label` to each list item to make it clearer for screen reader users that list item is an interactive element
|
|
101
|
+
- use title in `aria-label` of deleteOne button to provide more context for screen reader users
|
|
101
102
|
|
|
102
|
-
|
|
103
|
+
**Known issues:**
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
- screen readers read both tooltip content and aria label of deleteOne Button
|
|
106
|
+
- descriptive `aria-label` for list items is a workaround
|
|
107
|
+
- ideally interactive elements should not be nested (deleteOne Button is currently a child of list item)
|
|
107
108
|
|
|
108
109
|
## 0.10.0
|
|
109
110
|
|
|
@@ -112,17 +113,17 @@
|
|
|
112
113
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
113
114
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
114
115
|
|
|
115
|
-
|
|
116
|
+
Example:
|
|
116
117
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
```tsx
|
|
119
|
+
// Default map for entire component tree
|
|
120
|
+
<DefaultMapProvider map={mapModel}>
|
|
121
|
+
<Toc />
|
|
122
|
+
</DefaultMapProvider>
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
// Map for specific component
|
|
125
|
+
<Toc map={mapModel} />
|
|
126
|
+
```
|
|
126
127
|
|
|
127
128
|
### Patch Changes
|
|
128
129
|
|
|
@@ -141,9 +142,9 @@
|
|
|
141
142
|
### Minor Changes
|
|
142
143
|
|
|
143
144
|
- 2fa8020: Update trails core package dependencies.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
146
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
147
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
147
148
|
|
|
148
149
|
### Patch Changes
|
|
149
150
|
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
163
164
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
164
165
|
|
|
165
|
-
|
|
166
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
166
167
|
|
|
167
168
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
168
169
|
- a8b3449: Switch to a new versioning strategy.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/spatial-bookmarks",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a UI component that allows the user to store, manage, and easily navigate between different map extents by creating bookmarks.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/react": "^3.37.0",
|
|
18
18
|
"@conterra/reactivity-core": "^0.8.8",
|
|
19
|
-
"@open-pioneer/chakra-snippets": "4.8.0
|
|
20
|
-
"@open-pioneer/core": "4.8.0
|
|
21
|
-
"@open-pioneer/local-storage": "4.8.0
|
|
22
|
-
"@open-pioneer/map": "1.5.0
|
|
23
|
-
"@open-pioneer/react-utils": "4.8.0
|
|
24
|
-
"@open-pioneer/reactivity": "4.8.0
|
|
25
|
-
"@open-pioneer/runtime": "4.8.0
|
|
19
|
+
"@open-pioneer/chakra-snippets": "^4.8.0",
|
|
20
|
+
"@open-pioneer/core": "^4.8.0",
|
|
21
|
+
"@open-pioneer/local-storage": "^4.8.0",
|
|
22
|
+
"@open-pioneer/map": "1.5.0",
|
|
23
|
+
"@open-pioneer/react-utils": "^4.8.0",
|
|
24
|
+
"@open-pioneer/reactivity": "^4.8.0",
|
|
25
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
26
26
|
"ol": "^10.10.0",
|
|
27
27
|
"react": "^19.3.0",
|
|
28
28
|
"react-icons": "^5.7.0",
|