@open-pioneer/selection 0.9.0 → 0.10.0-dev.20250324141112

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @open-pioneer/selection
2
2
 
3
+ ## 0.10.0-dev.20250324141112
4
+
5
+ ### Minor Changes
6
+
7
+ - 193068a: Deprecate the `mapId` property on React components.
8
+ Use the `MapModel` directly instead to pass a reference to the map.
9
+
10
+ Example:
11
+
12
+ ```tsx
13
+ // Default map for entire component tree
14
+ <DefaultMapProvider map={mapModel}>
15
+ <Toc />
16
+ </DefaultMapProvider>
17
+
18
+ // Map for specific component
19
+ <Toc map={mapModel} />
20
+ ```
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [193068a]
25
+ - @open-pioneer/map@0.10.0-dev.20250324141112
26
+
3
27
  ## 0.9.0
4
28
 
5
29
  ### Minor Changes
package/README.md CHANGED
@@ -6,11 +6,14 @@ This package provides a UI component to perform a selection on given selection s
6
6
 
7
7
  To add the component to your app, import `Selection` from `@open-pioneer/selection`. The `@open-pioneer/notifier` package is required too.
8
8
 
9
- The mandatory properties are `mapId` and `sources` (layer source to be selected on).
9
+ The mandatory properties are `map` (unless the `DefaultMapProvider`is used) and `sources` (layer source to be selected on).
10
10
  The limit per selection is 10.000 items.
11
11
 
12
12
  ```tsx
13
- <Selection mapId={MAP_ID} sources={selectionsources} />
13
+ <Selection
14
+ map={map}
15
+ sources={selectionsources}
16
+ /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
14
17
  ```
15
18
 
16
19
  ### Listening to events
@@ -23,7 +26,7 @@ In case of the `onSelectionSourceChanged` event, you can access the selected sel
23
26
  ```tsx
24
27
  import { Search, SearchSelectEvent } from "@open-pioneer/search";
25
28
  <Selection
26
- mapId={MAP_ID}
29
+ map={map}
27
30
  sources={datasources}
28
31
  onSelectionComplete={(event: SelectionCompleteEvent) => {
29
32
  // do something
@@ -65,7 +68,7 @@ class MySelectionSource implements SelectionSource {
65
68
  const selectionsources: SelectionSource[] = [new MySelectionSource()];
66
69
 
67
70
  // In your JSX template:
68
- <Selection mapId={MAP_ID} sources={selectionsources} />;
71
+ <Selection map={map} sources={selectionsources} />;
69
72
  ```
70
73
 
71
74
  ### VectorLayer as selection source
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/selection",
4
- "version": "0.9.0",
4
+ "version": "0.10.0-dev.20250324141112",
5
5
  "description": "This package provides a UI component to perform a selection on given selection sources from the map.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -28,7 +28,7 @@
28
28
  "uuid": "^11.1.0",
29
29
  "@conterra/reactivity-core": "^0.4.3",
30
30
  "@open-pioneer/reactivity": "^3.0.0",
31
- "@open-pioneer/map": "^0.9.0"
31
+ "@open-pioneer/map": "^0.10.0-dev.20250324141112"
32
32
  },
33
33
  "exports": {
34
34
  "./package.json": "./package.json",