@open-pioneer/legend 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 +43 -33
- package/package.json +12 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @open-pioneer/legend
|
|
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
|
|
@@ -47,26 +57,26 @@
|
|
|
47
57
|
|
|
48
58
|
- 1723382: Introduce `listMode` for layer legend configurations:
|
|
49
59
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
+
```
|
|
70
80
|
|
|
71
81
|
- 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.
|
|
72
82
|
- 2732052: Icons have been changed to unify the appearance of the components. Preferably, Lucide react-icons are used.
|
|
@@ -94,17 +104,17 @@
|
|
|
94
104
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
95
105
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
96
106
|
|
|
97
|
-
|
|
107
|
+
Example:
|
|
98
108
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
```tsx
|
|
110
|
+
// Default map for entire component tree
|
|
111
|
+
<DefaultMapProvider map={mapModel}>
|
|
112
|
+
<Toc />
|
|
113
|
+
</DefaultMapProvider>
|
|
104
114
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
// Map for specific component
|
|
116
|
+
<Toc map={mapModel} />
|
|
117
|
+
```
|
|
108
118
|
|
|
109
119
|
### Patch Changes
|
|
110
120
|
|
|
@@ -124,9 +134,9 @@
|
|
|
124
134
|
### Minor Changes
|
|
125
135
|
|
|
126
136
|
- 2fa8020: Update trails core package dependencies.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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.
|
|
130
140
|
|
|
131
141
|
### Patch Changes
|
|
132
142
|
|
|
@@ -145,7 +155,7 @@
|
|
|
145
155
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
146
156
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
147
157
|
|
|
148
|
-
|
|
158
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
149
159
|
|
|
150
160
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
151
161
|
- 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.
|
|
4
|
+
"version": "1.5.0-dev.20260910103330",
|
|
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"
|
|
@@ -14,14 +14,18 @@
|
|
|
14
14
|
"directory": "src/packages/legend"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@chakra-ui/react": "^3.
|
|
18
|
-
"@open-pioneer/
|
|
19
|
-
"@open-pioneer/
|
|
20
|
-
"@open-pioneer/
|
|
21
|
-
"
|
|
17
|
+
"@chakra-ui/react": "^3.37.0",
|
|
18
|
+
"@open-pioneer/map": "1.5.0-dev.20260910103330",
|
|
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",
|
|
22
|
+
"ol": "^10.10.0",
|
|
22
23
|
"react": "^19.2.8",
|
|
23
|
-
"react-icons": "^5.7.0"
|
|
24
|
-
|
|
24
|
+
"react-icons": "^5.7.0"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"directory": "dist",
|
|
28
|
+
"linkDirectory": false
|
|
25
29
|
},
|
|
26
30
|
"exports": {
|
|
27
31
|
"./package.json": "./package.json",
|