@maptiler/geocoding-control 0.0.87 → 0.0.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/geocoding-control",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Martin Ždila",
@@ -31,15 +31,16 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "dev": "vite",
34
- "build": "npm run check && concurrently --names \"SVELTE ,MAPLIBRE,MAPTILER ,MAPLIB-C,LEAFLET ,LEAFLE-C,REACT ,TYPES \" \"npm run build-svelte\" \"npm run build-maplibre\" \"npm run build-maptilersdk\" \"npm run build-maplibre-controller\" \"npm run build-leaflet\" \"npm run build-leaflet-controller\" \"npm run build-react\" \"npm run build-types\" && cp dist.svelte/*.svelte* LICENSE README.md package.json dist",
34
+ "build": "npm run check && concurrently --names \"SVELTE ,MAPLIBRE,MAPTILER,MAPLIB-C,LEAFLET ,LEAFLE-C,REACT ,TYPES \" \"npm run build-svelte\" \"npm run build-maplibre\" \"npm run build-maptilersdk\" \"npm run build-maplibre-controller\" \"npm run build-leaflet\" \"npm run build-leaflet-controller\" \"npm run build-react\" \"npm run build-types\" && npm run cjs2js && cp dist.svelte/*.svelte* LICENSE README.md package.json dist",
35
35
  "build-svelte": "svelte-package -o dist.svelte",
36
- "build-maptilersdk": "FLAVOUR=maptilersdk vite build && mv dist/maptilersdk.umd.cjs dist/maptilersdk.umd.js && mv dist/maptilersdk.umd.cjs.map dist/maptilersdk.umd.js.map",
37
- "build-maplibre": "FLAVOUR=maplibre vite build && mv dist/maplibregl.umd.cjs dist/maplibregl.umd.js && mv dist/maplibregl.umd.cjs.map dist/maplibregl.umd.js.map",
38
- "build-maplibre-controller": "FLAVOUR=maplibregl-controller vite build && mv dist/maplibregl-controller.umd.cjs dist/maplibregl-controller.umd.js && mv dist/maplibregl-controller.umd.cjs.map dist/maplibregl-controller.umd.js.map",
39
- "build-leaflet": "FLAVOUR=leaflet vite build && mv dist/leaflet.umd.cjs dist/leaflet.umd.js && mv dist/leaflet.umd.cjs.map dist/leaflet.umd.js.map",
40
- "build-leaflet-controller": "FLAVOUR=leaflet-controller vite build && mv dist/leaflet-controller.umd.cjs dist/leaflet-controller.umd.js && mv dist/leaflet-controller.umd.cjs.map dist/leaflet-controller.umd.js.map",
41
- "build-react": "FLAVOUR=react vite build && mv dist/react.umd.cjs dist/react.umd.js && mv dist/react.umd.cjs.map dist/react.umd.js.map",
42
- "build-types": "tsc --outDir dist --declaration --emitDeclarationOnly && mv dist/ReactGeocodingControl.d.ts dist/react.d.ts && mv dist/MapLibreGlGeocodingControl.d.ts dist/maplibregl.d.ts && mv dist/maplibreglMapController.d.ts dist/maplibregl-controller.d.ts && mv dist/LeafletGeocodingControl.d.ts dist/leaflet.d.ts && mv dist/leafletMapController.d.ts dist/leaflet-controller.d.ts",
36
+ "build-maptilersdk": "FLAVOUR=maptilersdk vite build",
37
+ "build-maplibre": "FLAVOUR=maplibre vite build",
38
+ "build-maplibre-controller": "FLAVOUR=maplibregl-controller vite build ",
39
+ "build-leaflet": "FLAVOUR=leaflet vite build",
40
+ "build-leaflet-controller": "FLAVOUR=leaflet-controller vite build",
41
+ "build-react": "FLAVOUR=react vite build",
42
+ "build-types": "tsc --outDir dist --declaration --emitDeclarationOnly",
43
+ "cjs2js": "renamer --find '/\\bcjs\\b/' --replace js dist/*cjs*",
43
44
  "clean": "rm -rf dist dist.svelte",
44
45
  "pack": "npm run clean && npm run build && cd dist && npm pack",
45
46
  "pub": "npm run clean && npm run build && cd dist && npm publish",
@@ -81,6 +82,7 @@
81
82
  }
82
83
  },
83
84
  "devDependencies": {
85
+ "@maptiler/sdk": "^1.0.8",
84
86
  "@sveltejs/package": "^2.0.2",
85
87
  "@sveltejs/vite-plugin-svelte": "^2.0.4",
86
88
  "@tsconfig/svelte": "^4.0.1",
@@ -89,7 +91,7 @@
89
91
  "@turf/union": "^6.5.0",
90
92
  "@types/geojson": "^7946.0.10",
91
93
  "@types/leaflet": "^1.9.3",
92
- "@types/react": "^18.0.31",
94
+ "@types/react": "^18.0.33",
93
95
  "@types/react-dom": "^18.0.11",
94
96
  "concurrently": "^8.0.1",
95
97
  "esm-env": "^1.0.0",
@@ -100,6 +102,7 @@
100
102
  "prettier-plugin-svelte": "^2.10.0",
101
103
  "react": "^18.2.0",
102
104
  "react-dom": "^18.2.0",
105
+ "renamer": "^4.0.0",
103
106
  "sass": "^1.60.0",
104
107
  "svelte": "^3.58.0",
105
108
  "svelte-check": "^3.1.4",
@@ -109,11 +112,11 @@
109
112
  "vite": "^4.2.1"
110
113
  },
111
114
  "peerDependencies": {
112
- "@maptiler/sdk": "^1.0.8",
113
- "leaflet": "^1.9.3",
114
- "maplibre-gl": "^2.4.0",
115
- "react": "^18.2.0",
116
- "svelte": "^3.57.0"
115
+ "@maptiler/sdk": "^1",
116
+ "leaflet": "^1.9 || ^1.8",
117
+ "maplibre-gl": "^2 || ^3.0.0-alpha",
118
+ "react": "^17 || ^18",
119
+ "svelte": "^3.50"
117
120
  },
118
121
  "peerDependenciesMeta": {
119
122
  "@maptiler/sdk": {
package/react.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { DispatcherType } from "./DispatcherType";
3
2
  import GeocodingControl from "./GeocodingControl.svelte";
4
- import type { ControlOptions, MapController } from "./types";
3
+ import type { ControlOptions, DispatcherType, MapController } from "./types";
5
4
  type EventNames = keyof DispatcherType;
6
5
  type EventHandlerFnName<T extends EventNames> = `on${Capitalize<T>}`;
7
6
  type CallbackProperties<T> = {