@open-pioneer/map-navigation 1.4.0 → 1.5.0-dev.20260910103330
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 +37 -27
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @open-pioneer/map-navigation
|
|
2
2
|
|
|
3
|
+
## 1.5.0-dev.20260910103330
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f790fda: Update to Chakra 3.37.0
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 09ec7c7: Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 1.4.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -69,16 +79,16 @@
|
|
|
69
79
|
|
|
70
80
|
- 9376a74: Ensure that icons and other decorative elements are hidden from the screen reader using the `aria-hidden="true"` attribute.
|
|
71
81
|
|
|
72
|
-
|
|
82
|
+
The easiest way to do that is to wrap icons into chakra's `<Icon />` component, for example:
|
|
73
83
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
```tsx
|
|
85
|
+
import { Icon } from "@chakra-ui/react";
|
|
86
|
+
import { FiX } from "react-icons/fi";
|
|
77
87
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
<Icon>
|
|
89
|
+
<FiX />
|
|
90
|
+
</Icon>;
|
|
91
|
+
```
|
|
82
92
|
|
|
83
93
|
## 0.10.0
|
|
84
94
|
|
|
@@ -87,17 +97,17 @@
|
|
|
87
97
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
88
98
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
89
99
|
|
|
90
|
-
|
|
100
|
+
Example:
|
|
91
101
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
```tsx
|
|
103
|
+
// Default map for entire component tree
|
|
104
|
+
<DefaultMapProvider map={mapModel}>
|
|
105
|
+
<Toc />
|
|
106
|
+
</DefaultMapProvider>
|
|
97
107
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
// Map for specific component
|
|
109
|
+
<Toc map={mapModel} />
|
|
110
|
+
```
|
|
101
111
|
|
|
102
112
|
### Patch Changes
|
|
103
113
|
|
|
@@ -112,18 +122,18 @@
|
|
|
112
122
|
- cb94c75: update dependencies
|
|
113
123
|
- 8dc793e: Add `ButtonProps` to `ToolButton` in `@open-pioneer/geolocation` and `@open-pioneer/map-navigation`
|
|
114
124
|
|
|
115
|
-
|
|
125
|
+
Example:
|
|
116
126
|
|
|
117
|
-
|
|
127
|
+
`<Geolocation buttonProps={{ variant: "outline" }} />`
|
|
118
128
|
|
|
119
129
|
## 0.8.0
|
|
120
130
|
|
|
121
131
|
### Minor Changes
|
|
122
132
|
|
|
123
133
|
- 2fa8020: Update trails core package dependencies.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
134
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
135
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
136
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
127
137
|
|
|
128
138
|
### Patch Changes
|
|
129
139
|
|
|
@@ -136,10 +146,10 @@
|
|
|
136
146
|
|
|
137
147
|
- 440b165: Create new tool buttons that allow the user to navigate the history of map views (e.g. jump back to previous map extent):
|
|
138
148
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
149
|
+
```jsx
|
|
150
|
+
<HistoryBackward /* ... */ />
|
|
151
|
+
<HistoryForward /* ... */ />
|
|
152
|
+
```
|
|
143
153
|
|
|
144
154
|
- 310800c: Switch from `peerDependencies` to normal `dependencies`. Peer dependencies have some usability problems when used at scale.
|
|
145
155
|
|
|
@@ -151,7 +161,7 @@
|
|
|
151
161
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
152
162
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
153
163
|
|
|
154
|
-
|
|
164
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
155
165
|
|
|
156
166
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
157
167
|
- 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.
|
|
4
|
+
"version": "1.5.0-dev.20260910103330",
|
|
5
5
|
"description": "This package provides a collection of map navigation controls.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -14,16 +14,20 @@
|
|
|
14
14
|
"directory": "src/packages/map-navigation"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@chakra-ui/react": "^3.
|
|
18
|
-
"@conterra/reactivity-core": "^0.8.
|
|
19
|
-
"@open-pioneer/
|
|
20
|
-
"@open-pioneer/
|
|
21
|
-
"@open-pioneer/
|
|
22
|
-
"
|
|
17
|
+
"@chakra-ui/react": "^3.37.0",
|
|
18
|
+
"@conterra/reactivity-core": "^0.8.8",
|
|
19
|
+
"@open-pioneer/map": "1.5.0-dev.20260910103330",
|
|
20
|
+
"@open-pioneer/map-ui-components": "1.5.0-dev.20260910103330",
|
|
21
|
+
"@open-pioneer/react-utils": "4.8.0-dev.20260910101405",
|
|
22
|
+
"@open-pioneer/reactivity": "4.8.0-dev.20260910101405",
|
|
23
|
+
"@open-pioneer/runtime": "4.8.0-dev.20260910101405",
|
|
24
|
+
"ol": "^10.10.0",
|
|
23
25
|
"react": "^19.2.8",
|
|
24
|
-
"react-icons": "^5.7.0"
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
"react-icons": "^5.7.0"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"directory": "dist",
|
|
30
|
+
"linkDirectory": false
|
|
27
31
|
},
|
|
28
32
|
"exports": {
|
|
29
33
|
"./package.json": "./package.json",
|