@florasync/leaflet-geokit 0.11.1 → 0.12.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.
- package/CHANGELOG.md +5 -1
- package/README.md +4 -7
- package/dist/django/index.js +1044 -955
- package/dist/django/index.js.map +1 -1
- package/dist/geocoding-control.js +177 -0
- package/dist/geocoding-control.js.map +1 -0
- package/dist/geocoding.js +241 -0
- package/dist/geocoding.js.map +1 -0
- package/dist/leaflet-geokit.es.js +1155 -1064
- package/dist/leaflet-geokit.es.js.map +1 -1
- package/dist/leaflet-geokit.external.es.js +1583 -1492
- package/dist/leaflet-geokit.external.es.js.map +1 -1
- package/dist/leaflet-geokit.umd.js +23 -23
- package/dist/leaflet-geokit.umd.js.map +1 -1
- package/dist/preact/{index-CFFA4RWo.js → index-IL53Vgct.js} +745 -657
- package/dist/preact/index-IL53Vgct.js.map +1 -0
- package/dist/preact/index.js +8 -7
- package/dist/preact/index.js.map +1 -1
- package/dist/preact-bundled/index.js +2160 -2071
- package/dist/preact-bundled/index.js.map +1 -1
- package/dist/react/{index-CFFA4RWo.js → index-IL53Vgct.js} +745 -657
- package/dist/react/index-IL53Vgct.js.map +1 -0
- package/dist/react/index.js +18 -17
- package/dist/react/index.js.map +1 -1
- package/dist/react-bundled/index.js +2159 -2070
- package/dist/react-bundled/index.js.map +1 -1
- package/dist/types/components/LeafletDrawMapElement.d.ts +8 -2
- package/dist/types/geocoding.d.ts +5 -0
- package/dist/types/lib/MapController.d.ts +2 -0
- package/dist/types/lib/feature-credits.d.ts +12 -0
- package/dist/types/lib/geocoding-control.d.ts +4 -0
- package/dist/types/preact/core.d.ts +1 -1
- package/dist/types/react/core.d.ts +2 -2
- package/dist/types/react/index.d.ts +1 -1
- package/dist/types/react-bundled/index.d.ts +1 -1
- package/dist/types/types/events.d.ts +4 -0
- package/dist/types/types/geocoding.d.ts +36 -0
- package/dist/types/types/public.d.ts +4 -0
- package/docs/api-reference.md +41 -0
- package/docs/grower-geometry.md +1 -3
- package/docs/release-verification.md +6 -1
- package/docs/shims/django.md +1 -1
- package/docs/shims/preact.md +4 -2
- package/docs/shims/react.md +3 -1
- package/package.json +17 -12
- package/dist/preact/index-CFFA4RWo.js.map +0 -1
- package/dist/react/index-CFFA4RWo.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.12.0 - 2026-12-05
|
|
4
|
+
|
|
5
|
+
- Add opt-in place search to `<leaflet-geokit>`. The host supplies a provider or Nominatim-compatible endpoint. Selecting a result centers the map; only the separate **Add to map** action imports geometry. No search request is sent on load or while typing.
|
|
6
|
+
- Support React 19 alongside React 18.3.1 for both optional React wrappers. The development runtime and types now use React 19.
|
|
7
|
+
- Keep Preact optional and exclude only the Preact 10 releases affected by [GHSA-36hm-qxxp-pg3m](https://github.com/advisories/GHSA-36hm-qxxp-pg3m) from the [wrapper peer range](docs/shims/preact.md#install).
|
|
4
8
|
|
|
5
9
|
## 0.11.1 - 2026-12-04
|
|
6
10
|
|
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Documentation quick-links
|
|
|
16
16
|
|
|
17
17
|
- Branded toolbar, external layer-cake button, trust boundaries and screenshot checklist: [docs/custom-toolbar.md](docs/custom-toolbar.md); runnable [plain HTML example](custom-toolbar.html).
|
|
18
18
|
- Public API tables: [docs/api-reference.md](docs/api-reference.md).
|
|
19
|
+
- [Opt-in place search](docs/api-reference.md#place-search-opt-in-geocoding): choose a provider, center on a result, and optionally add its geometry. No default search service.
|
|
19
20
|
- Integration recipes (including SSR): [docs/integration-recipes.md](docs/integration-recipes.md).
|
|
20
21
|
- Diagnostic event catalog and troubleshooting: [docs/diagnostics.md](docs/diagnostics.md).
|
|
21
22
|
- Release and packed-consumer verification: [docs/release-verification.md](docs/release-verification.md).
|
|
@@ -897,9 +898,7 @@ console.log("Imported features with IDs:", ids);
|
|
|
897
898
|
```javascript
|
|
898
899
|
await map.loadGeoJSON({
|
|
899
900
|
type: "FeatureCollection",
|
|
900
|
-
features: [
|
|
901
|
-
/* ... */
|
|
902
|
-
],
|
|
901
|
+
features: [/* ... */],
|
|
903
902
|
});
|
|
904
903
|
```
|
|
905
904
|
|
|
@@ -935,9 +934,7 @@ await map.clearLayers();
|
|
|
935
934
|
await map.updateFeature(featureId, {
|
|
936
935
|
type: "Feature",
|
|
937
936
|
properties: { name: "Updated" },
|
|
938
|
-
geometry: {
|
|
939
|
-
/* ... */
|
|
940
|
-
},
|
|
937
|
+
geometry: {/* ... */},
|
|
941
938
|
});
|
|
942
939
|
```
|
|
943
940
|
|
|
@@ -1450,7 +1447,7 @@ See full Preact shim docs: [docs/shims/preact.md](docs/shims/preact.md)
|
|
|
1450
1447
|
|
|
1451
1448
|
Use the React wrappers when you want component-level integration in React apps. These wrappers provide a first-class React experience for the web component.
|
|
1452
1449
|
|
|
1453
|
-
- **Runtime dependency model**: React/ReactDOM are consumer-provided (
|
|
1450
|
+
- **Runtime dependency model**: React/ReactDOM are matching, consumer-provided optional peers (18.3.1 or later in v18, or v19), so wrapper bundles stay thin.
|
|
1454
1451
|
- **Shim docs**: [docs/shims/react.md](docs/shims/react.md)
|
|
1455
1452
|
- **Entrypoints**: [src/react/index.tsx](src/react/index.tsx), [src/react-bundled/index.tsx](src/react-bundled/index.tsx)
|
|
1456
1453
|
|