@open-pioneer/legend 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +35 -34
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # @open-pioneer/legend
2
2
 
3
- ## 1.5.0-dev.20260917081843
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
 
@@ -57,26 +58,26 @@
57
58
 
58
59
  - 1723382: Introduce `listMode` for layer legend configurations:
59
60
 
60
- ```typescript
61
- //sublayer with legend configuration
62
- const internalLayer = new SimpleLayer({
63
- id: "layer1",
64
- title: "layer 1",
65
- olLayer: myOlLayer,
66
- visible: true,
67
- attributes: {
68
- legend: {
69
- listMode: "show",
70
- } satisfies LegendItemAttributes,
71
- },
72
- sublayers: [
73
- {
74
- name: "sublayer1",
75
- title: "Sub Layer 1",
76
- },
77
- ],
78
- });
79
- ```
61
+ ```typescript
62
+ //sublayer with legend configuration
63
+ const internalLayer = new SimpleLayer({
64
+ id: "layer1",
65
+ title: "layer 1",
66
+ olLayer: myOlLayer,
67
+ visible: true,
68
+ attributes: {
69
+ legend: {
70
+ listMode: "show"
71
+ } satisfies LegendItemAttributes
72
+ },
73
+ sublayers: [
74
+ {
75
+ name: "sublayer1",
76
+ title: "Sub Layer 1"
77
+ }
78
+ ]
79
+ });
80
+ ```
80
81
 
81
82
  - 2702df4: A layer's `internal` property is now respected by the Legend widget. If a layer is marked as internal (`internal` is `true`) no legend entry is displayed for this layer even if the legend is configured in the layer attributes.
82
83
  - 2732052: Icons have been changed to unify the appearance of the components. Preferably, Lucide react-icons are used.
@@ -104,17 +105,17 @@
104
105
  - 193068a: Deprecate the `mapId` property on React components.
105
106
  Use the `MapModel` directly instead to pass a reference to the map.
106
107
 
107
- Example:
108
+ Example:
108
109
 
109
- ```tsx
110
- // Default map for entire component tree
111
- <DefaultMapProvider map={mapModel}>
112
- <Toc />
113
- </DefaultMapProvider>
110
+ ```tsx
111
+ // Default map for entire component tree
112
+ <DefaultMapProvider map={mapModel}>
113
+ <Toc />
114
+ </DefaultMapProvider>
114
115
 
115
- // Map for specific component
116
- <Toc map={mapModel} />
117
- ```
116
+ // Map for specific component
117
+ <Toc map={mapModel} />
118
+ ```
118
119
 
119
120
  ### Patch Changes
120
121
 
@@ -134,9 +135,9 @@
134
135
  ### Minor Changes
135
136
 
136
137
  - 2fa8020: Update trails core package dependencies.
137
- - Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
138
- - Removes any obsolete references to `@chakra-ui/system`.
139
- This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
138
+ - Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
139
+ - Removes any obsolete references to `@chakra-ui/system`.
140
+ This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
140
141
 
141
142
  ### Patch Changes
142
143
 
@@ -155,7 +156,7 @@
155
156
  - 583f1d6: The `mapId` or `map` properties are now optional on individual components.
156
157
  You can use the `DefaultMapProvider` to configure an implicit default value.
157
158
 
158
- Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
159
+ Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
159
160
 
160
161
  - 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
161
162
  - 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/legend",
4
- "version": "1.5.0-dev.20260917081843",
4
+ "version": "1.5.0",
5
5
  "description": "This package provides a legend UI component that allows a user to see legend information for layers in the map.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@chakra-ui/react": "^3.37.0",
18
- "@open-pioneer/map": "1.5.0-dev.20260917081843",
19
- "@open-pioneer/react-utils": "4.8.0-dev.20260910101405",
20
- "@open-pioneer/reactivity": "4.8.0-dev.20260910101405",
21
- "@open-pioneer/runtime": "4.8.0-dev.20260910101405",
18
+ "@open-pioneer/map": "1.5.0",
19
+ "@open-pioneer/react-utils": "^4.8.0",
20
+ "@open-pioneer/reactivity": "^4.8.0",
21
+ "@open-pioneer/runtime": "^4.8.0",
22
22
  "ol": "^10.10.0",
23
23
  "react": "^19.3.0",
24
24
  "react-icons": "^5.7.0"