@open-pioneer/map-navigation 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 +29 -28
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/map-navigation
|
|
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
|
|
|
@@ -80,16 +81,16 @@
|
|
|
80
81
|
|
|
81
82
|
- 9376a74: Ensure that icons and other decorative elements are hidden from the screen reader using the `aria-hidden="true"` attribute.
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
The easiest way to do that is to wrap icons into chakra's `<Icon />` component, for example:
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
```tsx
|
|
87
|
+
import { Icon } from "@chakra-ui/react";
|
|
88
|
+
import { FiX } from "react-icons/fi";
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
<Icon>
|
|
91
|
+
<FiX />
|
|
92
|
+
</Icon>;
|
|
93
|
+
```
|
|
93
94
|
|
|
94
95
|
## 0.10.0
|
|
95
96
|
|
|
@@ -98,17 +99,17 @@
|
|
|
98
99
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
99
100
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
100
101
|
|
|
101
|
-
|
|
102
|
+
Example:
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
```tsx
|
|
105
|
+
// Default map for entire component tree
|
|
106
|
+
<DefaultMapProvider map={mapModel}>
|
|
107
|
+
<Toc />
|
|
108
|
+
</DefaultMapProvider>
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
// Map for specific component
|
|
111
|
+
<Toc map={mapModel} />
|
|
112
|
+
```
|
|
112
113
|
|
|
113
114
|
### Patch Changes
|
|
114
115
|
|
|
@@ -123,18 +124,18 @@
|
|
|
123
124
|
- cb94c75: update dependencies
|
|
124
125
|
- 8dc793e: Add `ButtonProps` to `ToolButton` in `@open-pioneer/geolocation` and `@open-pioneer/map-navigation`
|
|
125
126
|
|
|
126
|
-
|
|
127
|
+
Example:
|
|
127
128
|
|
|
128
|
-
|
|
129
|
+
`<Geolocation buttonProps={{ variant: "outline" }} />`
|
|
129
130
|
|
|
130
131
|
## 0.8.0
|
|
131
132
|
|
|
132
133
|
### Minor Changes
|
|
133
134
|
|
|
134
135
|
- 2fa8020: Update trails core package dependencies.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
137
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
138
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
138
139
|
|
|
139
140
|
### Patch Changes
|
|
140
141
|
|
|
@@ -147,10 +148,10 @@
|
|
|
147
148
|
|
|
148
149
|
- 440b165: Create new tool buttons that allow the user to navigate the history of map views (e.g. jump back to previous map extent):
|
|
149
150
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
```jsx
|
|
152
|
+
<HistoryBackward /* ... */ />
|
|
153
|
+
<HistoryForward /* ... */ />
|
|
154
|
+
```
|
|
154
155
|
|
|
155
156
|
- 310800c: Switch from `peerDependencies` to normal `dependencies`. Peer dependencies have some usability problems when used at scale.
|
|
156
157
|
|
|
@@ -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/map-navigation",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a collection of map navigation controls.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/react": "^3.37.0",
|
|
18
18
|
"@conterra/reactivity-core": "^0.8.8",
|
|
19
|
-
"@open-pioneer/map": "1.5.0
|
|
20
|
-
"@open-pioneer/map-ui-components": "1.5.0
|
|
21
|
-
"@open-pioneer/react-utils": "4.8.0
|
|
22
|
-
"@open-pioneer/reactivity": "4.8.0
|
|
23
|
-
"@open-pioneer/runtime": "4.8.0
|
|
19
|
+
"@open-pioneer/map": "1.5.0",
|
|
20
|
+
"@open-pioneer/map-ui-components": "1.5.0",
|
|
21
|
+
"@open-pioneer/react-utils": "^4.8.0",
|
|
22
|
+
"@open-pioneer/reactivity": "^4.8.0",
|
|
23
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
24
24
|
"ol": "^10.10.0",
|
|
25
25
|
"react": "^19.3.0",
|
|
26
26
|
"react-icons": "^5.7.0"
|