@sakaniui/react 0.11.1 → 0.11.2
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/AGENTS.md +14 -0
- package/CHANGELOG.md +11 -0
- package/dist/emoji-index.json +1 -1
- package/dist/icon-index.json +1 -1
- package/dist/manifest.json +11 -18
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -245,6 +245,20 @@ lists its other names under `aliases` in `manifest.json`, and `search_components
|
|
|
245
245
|
row in a list. **Charts** — pick by question: trend over time → Line/Area; compare categories → Bar;
|
|
246
246
|
part of whole → Pie/Donut (few slices only); progress to a target → Radial; compare several measures →
|
|
247
247
|
Radar; drop-off → Funnel; intensity across two dimensions → Heatmap.
|
|
248
|
+
- **Map / MapMarker / MapPopup / MapClusterLayer** — an interactive tile map with no map library. Put `MapMarker`
|
|
249
|
+
(`pin`, `dot`, `cluster`) and `MapPopup` children inside `Map`, placed by `[latitude, longitude]` (latitude
|
|
250
|
+
first). Give every marker a `label`; a marker with `onClick` is a button and `selected` is yours to set. The
|
|
251
|
+
default tiles are OpenStreetMap's, fine for development and light use: for production traffic pass `tileUrl`
|
|
252
|
+
(and `attribution`) from a tile provider. For a live feed keep positions in state and give the markers `glide`
|
|
253
|
+
(about the interval between updates, in ms) so they slide instead of jumping. For more than a few dozen places
|
|
254
|
+
use `MapClusterLayer` (`points`, `renderPoint`) instead of mapping hundreds of `MapMarker`s. Dark mode follows
|
|
255
|
+
`.dark`; `theme="dark"` makes one map dark, `tileUrlDark` supplies a dark tile style. It only draws a map: no
|
|
256
|
+
routing, geocoding or search, and a map is hard to use without a pointer, so list the places beside it.
|
|
257
|
+
**MapGlobe** — a 3D dotted globe for places across the whole world (offices, customers, routes), not for
|
|
258
|
+
navigation: `variant` land or ocean, `markers`, `arcs`. It has no background of its own, so place it on the
|
|
259
|
+
colour you want (`theme="dark"` for a dark surface inside a light page); give markers a `label` and
|
|
260
|
+
`onMarkerClick` to make them selectable. Choose Map when people need streets and zoom, MapGlobe when the point
|
|
261
|
+
is global spread.
|
|
248
262
|
- **Avatar / AvatarGroup** — Avatar type is inferred: `src` → image, `initials` → initials, else icon.
|
|
249
263
|
Prefer a real image when you have one; initials are the fallback, not the default.
|
|
250
264
|
- **BoardCard / BoardColumn** — kanban pieces. `BoardColumn state="loading"` styles the column; *you* pass
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@sakaniui/react` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.11.2
|
|
6
|
+
|
|
7
|
+
- **Agent guide:** `AGENTS.md` gains a Map section (when to use `Map` or `MapGlobe`, latitude first, tile providers,
|
|
8
|
+
`glide` for live feeds, `MapClusterLayer` for many places, dark mode, accessibility), served by the MCP
|
|
9
|
+
server's `get_guide`.
|
|
10
|
+
- **MCP server:** `@sakaniui/mcp` 0.11.2 carries the 0.11 reference, so Map and its parts are found even in a
|
|
11
|
+
project that has no `@sakaniui/react` installed (a project that has it was already answered from its own copy).
|
|
12
|
+
- **Fixed: `since` for `MapControlButton` and `MapControls`** was 0.11.1; they shipped in 0.11.0. The release
|
|
13
|
+
history can now name the commit a version was actually published from (`scripts/manifest/releases.json`).
|
|
14
|
+
- No component or API changes.
|
|
15
|
+
|
|
5
16
|
## 0.11.1
|
|
6
17
|
|
|
7
18
|
- **Fixed: `Map` markers on the server.** Rendered before the map is measured, markers and popups were placed
|