@open-pioneer/measurement 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +43 -33
  2. package/package.json +13 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @open-pioneer/measurement
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
@@ -71,17 +81,17 @@
71
81
  - 193068a: Deprecate the `mapId` property on React components.
72
82
  Use the `MapModel` directly instead to pass a reference to the map.
73
83
 
74
- Example:
84
+ Example:
75
85
 
76
- ```tsx
77
- // Default map for entire component tree
78
- <DefaultMapProvider map={mapModel}>
79
- <Toc />
80
- </DefaultMapProvider>
86
+ ```tsx
87
+ // Default map for entire component tree
88
+ <DefaultMapProvider map={mapModel}>
89
+ <Toc />
90
+ </DefaultMapProvider>
81
91
 
82
- // Map for specific component
83
- <Toc map={mapModel} />
84
- ```
92
+ // Map for specific component
93
+ <Toc map={mapModel} />
94
+ ```
85
95
 
86
96
  ### Patch Changes
87
97
 
@@ -101,9 +111,9 @@
101
111
 
102
112
  - b717121: Update from OL 9 to OL 10.
103
113
  - 2fa8020: Update trails core package dependencies.
104
- - Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
105
- - Removes any obsolete references to `@chakra-ui/system`.
106
- This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
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.
107
117
 
108
118
  ### Patch Changes
109
119
 
@@ -121,7 +131,7 @@
121
131
  - 583f1d6: The `mapId` or `map` properties are now optional on individual components.
122
132
  You can use the `DefaultMapProvider` to configure an implicit default value.
123
133
 
124
- Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
134
+ Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
125
135
 
126
136
  - 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
127
137
  - a8b3449: Switch to a new versioning strategy.
@@ -135,26 +145,26 @@
135
145
  - b152428: Update trails dependencies
136
146
  - 23b48ad: Add two new optional properties:
137
147
 
138
- - `predefinedMeasurements`: an array of measurements that will be added to the map (without user interaction)
139
- - `onMeasurementsChange`: an event listener that will be called when measurements are added or removed
140
-
141
- ```tsx
142
- const predefinedMeasurements = useMemo(
143
- () => [
144
- new LineString([
145
- [398657.97, 5755696.26],
146
- [402570.98, 5757547.78]
147
- ])
148
- ],
149
- []
150
- );
151
-
152
- <Measurement
153
- mapId={MAP_ID}
154
- onMeasurementsChange={(e) => console.log(e.kind, e.geometry)}
155
- predefinedMeasurements={predefinedMeasurements}
156
- />;
157
- ```
148
+ - `predefinedMeasurements`: an array of measurements that will be added to the map (without user interaction)
149
+ - `onMeasurementsChange`: an event listener that will be called when measurements are added or removed
150
+
151
+ ```tsx
152
+ const predefinedMeasurements = useMemo(
153
+ () => [
154
+ new LineString([
155
+ [398657.97, 5755696.26],
156
+ [402570.98, 5757547.78],
157
+ ]),
158
+ ],
159
+ []
160
+ );
161
+
162
+ <Measurement
163
+ mapId={MAP_ID}
164
+ onMeasurementsChange={(e) => console.log(e.kind, e.geometry)}
165
+ predefinedMeasurements={predefinedMeasurements}
166
+ />;
167
+ ```
158
168
 
159
169
  ## 0.4.3
160
170
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/measurement",
4
- "version": "1.4.0",
4
+ "version": "1.5.0-dev.20260910103330",
5
5
  "description": "This package provides a UI component that allows the user to perform area and distance measurements on the map.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,14 +14,18 @@
14
14
  "directory": "src/packages/measurement"
15
15
  },
16
16
  "dependencies": {
17
- "@chakra-ui/react": "^3.36.1",
18
- "@open-pioneer/chakra-snippets": "^4.7.0",
19
- "@open-pioneer/core": "^4.7.0",
20
- "@open-pioneer/react-utils": "^4.7.0",
21
- "@open-pioneer/runtime": "^4.7.0",
22
- "ol": "^10.9.0",
23
- "react": "^19.2.8",
24
- "@open-pioneer/map": "1.4.0"
17
+ "@chakra-ui/react": "^3.37.0",
18
+ "@open-pioneer/chakra-snippets": "4.8.0-dev.20260910101405",
19
+ "@open-pioneer/core": "4.8.0-dev.20260910101405",
20
+ "@open-pioneer/map": "1.5.0-dev.20260910103330",
21
+ "@open-pioneer/react-utils": "4.8.0-dev.20260910101405",
22
+ "@open-pioneer/runtime": "4.8.0-dev.20260910101405",
23
+ "ol": "^10.10.0",
24
+ "react": "^19.2.8"
25
+ },
26
+ "publishConfig": {
27
+ "directory": "dist",
28
+ "linkDirectory": false
25
29
  },
26
30
  "exports": {
27
31
  "./package.json": "./package.json",