@open-pioneer/scale-bar 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 +15 -14
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/scale-bar
|
|
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,17 +82,17 @@
|
|
|
81
82
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
82
83
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
Example:
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
```tsx
|
|
88
|
+
// Default map for entire component tree
|
|
89
|
+
<DefaultMapProvider map={mapModel}>
|
|
90
|
+
<Toc />
|
|
91
|
+
</DefaultMapProvider>
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
// Map for specific component
|
|
94
|
+
<Toc map={mapModel} />
|
|
95
|
+
```
|
|
95
96
|
|
|
96
97
|
### Patch Changes
|
|
97
98
|
|
|
@@ -110,9 +111,9 @@
|
|
|
110
111
|
### Minor Changes
|
|
111
112
|
|
|
112
113
|
- 2fa8020: Update trails core package dependencies.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
115
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
116
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
116
117
|
|
|
117
118
|
### Patch Changes
|
|
118
119
|
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
131
132
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
132
133
|
|
|
133
|
-
|
|
134
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
134
135
|
|
|
135
136
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
136
137
|
- 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/scale-bar",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a UI component to show the scale as a line or bar to the user.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/react": "^3.37.0",
|
|
18
|
-
"@open-pioneer/map": "1.5.0
|
|
19
|
-
"@open-pioneer/react-utils": "4.8.0
|
|
20
|
-
"@open-pioneer/runtime": "4.8.0
|
|
18
|
+
"@open-pioneer/map": "1.5.0",
|
|
19
|
+
"@open-pioneer/react-utils": "^4.8.0",
|
|
20
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
21
21
|
"ol": "^10.10.0",
|
|
22
22
|
"react": "^19.3.0"
|
|
23
23
|
},
|