@maptiler/geocoding-control 3.0.0-rc.6 → 3.0.0-rc.8

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 (39) hide show
  1. package/check-version.js +69 -0
  2. package/dist/check-version.d.ts +1 -0
  3. package/dist/index.js +188 -178
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.umd.js +55 -50
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/leaflet.public.js +313 -303
  8. package/dist/leaflet.public.js.map +1 -1
  9. package/dist/leaflet.public.umd.js +51 -46
  10. package/dist/leaflet.public.umd.js.map +1 -1
  11. package/dist/maplibregl.js +188 -178
  12. package/dist/maplibregl.js.map +1 -1
  13. package/dist/maplibregl.umd.js +50 -45
  14. package/dist/maplibregl.umd.js.map +1 -1
  15. package/dist/maptilersdk.js +243 -233
  16. package/dist/maptilersdk.js.map +1 -1
  17. package/dist/maptilersdk.umd.js +62 -57
  18. package/dist/maptilersdk.umd.js.map +1 -1
  19. package/dist/openlayers.public.js +225 -214
  20. package/dist/openlayers.public.js.map +1 -1
  21. package/dist/openlayers.public.umd.js +51 -46
  22. package/dist/openlayers.public.umd.js.map +1 -1
  23. package/dist/src/components/clear-icon.d.ts +1 -0
  24. package/dist/src/components/fail-icon.d.ts +1 -0
  25. package/dist/src/components/loading-icon.d.ts +1 -0
  26. package/dist/src/components/marker.d.ts +1 -0
  27. package/dist/src/components/reverse-geocoding-icon.d.ts +1 -0
  28. package/dist/src/components/search-icon.d.ts +1 -0
  29. package/dist/src/controls/maplibregl-control.d.ts +2 -7
  30. package/dist/src/controls/maplibregl-events.d.ts +2 -3
  31. package/dist/src/controls/maplibregl-options.d.ts +1 -9
  32. package/dist/src/geocoder/geocoder-feature-item.d.ts +1 -0
  33. package/dist/src/geocoder/geocoder.d.ts +5 -2
  34. package/dist/src/index.d.ts +1 -0
  35. package/dist/src/leaflet.public.d.ts +1 -0
  36. package/dist/src/maplibregl.d.ts +1 -0
  37. package/dist/src/maptilersdk.d.ts +1 -0
  38. package/dist/src/openlayers.public.d.ts +1 -0
  39. package/package.json +20 -10
@@ -0,0 +1,69 @@
1
+ import { execSync } from "node:child_process";
2
+ import { rmSync, writeFileSync } from "node:fs";
3
+
4
+ const TSCONFIG = "./tsconfig.check-version.json";
5
+
6
+ const checks = [
7
+ { entrypoint: "src/maptilersdk.ts" },
8
+ {
9
+ entrypoint: "src/maptilersdk.ts",
10
+ paths: {
11
+ "@maptiler/sdk": ["../node_modules/@maptiler/sdk--v3.0/dist/maptiler-sdk.d.ts"],
12
+ "maplibre-gl": ["../node_modules/@maptiler/sdk--v3.0/node_modules/maplibre-gl/dist/maplibre-gl.d.ts", "../node_modules/maplibre-gl/dist/maplibre-gl.d.ts"],
13
+ },
14
+ },
15
+ {
16
+ entrypoint: "src/maptilersdk.ts",
17
+ paths: {
18
+ "@maptiler/sdk": ["../node_modules/@maptiler/sdk--v3.5/dist/maptiler-sdk.d.ts"],
19
+ "maplibre-gl": ["../node_modules/@maptiler/sdk--v3.5/node_modules/maplibre-gl/dist/maplibre-gl.d.ts", "../node_modules/maplibre-gl/dist/maplibre-gl.d.ts"],
20
+ },
21
+ },
22
+ {
23
+ entrypoint: "src/maptilersdk.ts",
24
+ paths: {
25
+ "@maptiler/sdk": ["../node_modules/@maptiler/sdk--v3.11/dist/maptiler-sdk.d.ts"],
26
+ "maplibre-gl": ["../node_modules/@maptiler/sdk--v3.11/node_modules/maplibre-gl/dist/maplibre-gl.d.ts", "../node_modules/maplibre-gl/dist/maplibre-gl.d.ts"],
27
+ },
28
+ },
29
+ { entrypoint: "src/maplibregl.ts" },
30
+ { entrypoint: "src/maplibregl.ts", paths: { "maplibre-gl": ["../node_modules/maplibre-gl--v5.0/dist/maplibre-gl.d.ts"] } },
31
+ { entrypoint: "src/maplibregl.ts", paths: { "maplibre-gl": ["../node_modules/maplibre-gl--v5.5/dist/maplibre-gl.d.ts"] } },
32
+ { entrypoint: "src/maplibregl.ts", paths: { "maplibre-gl": ["../node_modules/maplibre-gl--v5.10/dist/maplibre-gl.d.ts"] } },
33
+ { entrypoint: "src/maplibregl.ts", paths: { "maplibre-gl": ["../node_modules/maplibre-gl--v5.15/dist/maplibre-gl.d.ts"] } },
34
+ { entrypoint: "src/maplibregl.ts", paths: { "maplibre-gl": ["../node_modules/maplibre-gl--v5.20/dist/maplibre-gl.d.ts"] } },
35
+ { entrypoint: "src/leaflet.public.ts" },
36
+ { entrypoint: "src/leaflet.public.ts", paths: { leaflet: ["../node_modules/@types/leaflet--v1.5/index.d.ts"] } },
37
+ { entrypoint: "src/leaflet.public.ts", paths: { leaflet: ["../node_modules/@types/leaflet--v1.7/index.d.ts"] } },
38
+ { entrypoint: "src/leaflet.public.ts", paths: { leaflet: ["../node_modules/@types/leaflet--v1.9/index.d.ts"] } },
39
+ { entrypoint: "src/leaflet.public.ts", paths: { leaflet: ["../tmp/@types/leaflet-v2/index.d.ts"] } },
40
+ { entrypoint: "src/openlayers.public.ts" },
41
+ { entrypoint: "src/openlayers.public.ts", paths: { ol: ["../node_modules/ol--v9.0/index.d.ts"], "ol/*": ["../node_modules/ol--v9.0/*.d.ts"] } },
42
+ { entrypoint: "src/openlayers.public.ts", paths: { ol: ["../node_modules/ol--v9.2/index.d.ts"], "ol/*": ["../node_modules/ol--v9.2/*.d.ts"] } },
43
+ { entrypoint: "src/openlayers.public.ts", paths: { ol: ["../node_modules/ol--v10.0/index.d.ts"], "ol/*": ["../node_modules/ol--v10.0/*.d.ts"] } },
44
+ { entrypoint: "src/openlayers.public.ts", paths: { ol: ["../node_modules/ol--v10.3/index.d.ts"], "ol/*": ["../node_modules/ol--v10.3/*.d.ts"] } },
45
+ { entrypoint: "src/openlayers.public.ts", paths: { ol: ["../node_modules/ol--v10.6/index.d.ts"], "ol/*": ["../node_modules/ol--v10.6/*.d.ts"] } },
46
+ ];
47
+
48
+ for (const { entrypoint, paths = {} } of checks) {
49
+ writeFileSync(
50
+ TSCONFIG,
51
+ JSON.stringify(
52
+ {
53
+ extends: "./tsconfig.json",
54
+ compilerOptions: {
55
+ types: [],
56
+ paths,
57
+ },
58
+ include: [entrypoint, "src/*.d.ts"],
59
+ },
60
+ null,
61
+ 2,
62
+ ),
63
+ { encoding: "utf-8" },
64
+ );
65
+
66
+ execSync(`npx tsc -p ${TSCONFIG}`, { encoding: "utf-8" });
67
+ }
68
+
69
+ rmSync(TSCONFIG);
@@ -0,0 +1 @@
1
+ export {};