@maptiler/sdk 3.2.2 → 3.2.3
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/README.md +1 -0
- package/dist/maptiler-sdk.mjs +3 -3
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/helpers/index.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/{eslint.config.mjs → eslint.config.ts} +16 -3
- package/package.json +7 -4
- package/tsconfig.json +1 -0
- package/vite.config-dev.ts +82 -16
package/README.md
CHANGED
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -317,7 +317,7 @@ function to(r, e, t) {
|
|
|
317
317
|
}
|
|
318
318
|
function ro(r) {
|
|
319
319
|
var n;
|
|
320
|
-
const e = /\{name(
|
|
320
|
+
const e = /\{name(?::(?<language>\S+))?\}/g, t = [];
|
|
321
321
|
for (; ; ) {
|
|
322
322
|
const a = e.exec(r);
|
|
323
323
|
if (!a) break;
|
|
@@ -7942,7 +7942,7 @@ class Is {
|
|
|
7942
7942
|
this.projectionButton.classList.remove("maplibregl-ctrl-projection-globe"), this.projectionButton.classList.remove("maplibregl-ctrl-projection-mercator"), this.map.isGlobeProjection() ? (this.projectionButton.classList.add("maplibregl-ctrl-projection-mercator"), this.projectionButton.title = "Enable Mercator projection") : (this.projectionButton.classList.add("maplibregl-ctrl-projection-globe"), this.projectionButton.title = "Enable Globe projection");
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
|
-
const Es = "@maptiler/sdk", Ms = "3.2.
|
|
7945
|
+
const Es = "@maptiler/sdk", Ms = "3.2.3", _s = "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", zs = "MapTiler", Ps = "dist/maptiler-sdk.mjs", Rs = "dist/maptiler-sdk.d.ts", $s = "dist/maptiler-sdk.css", js = "module", Ns = { ".": { import: "./dist/maptiler-sdk.mjs", types: "./dist/maptiler-sdk.d.ts" }, "./dist/maptiler-sdk.css": { import: "./dist/maptiler-sdk.css" }, "./style.css": { import: "./dist/maptiler-sdk.css" } }, Os = ["maptiler", "map", "sdk", "webmap", "cloud", "webGL", "maplibre"], Fs = "https://docs.maptiler.com/sdk-js/", Ds = "BSD-3-Clause", qs = { type: "git", url: "https://github.com/maptiler/maptiler-sdk-js.git" }, Bs = { prepare: "husky", doc: "rm -rf docs/* && typedoc --out docs && cp -r images docs/", ncu: "npx npm-check-updates", lint: "tsc --noEmit && eslint src", "lint:fix": "tsc --noEmit && eslint src --fix", "test:watch": "vitest watch -c vite.config-test.ts --dom", test: "vitest run -c vite.config-test.ts --dom", "install:clean": "rm -rf build/ dist/ node_modules/ && npm ci", dev: "vite -c vite.config-dev.ts", "dev-umd": "npm run build-css && tsc && NODE_ENV=development vite build -w -c vite.config-umd.ts", "build-css": "mkdir -p dist build && node scripts/replace-path-with-content.js src/style/style_template.css dist/tmp_maptiler-sdk.css && cat node_modules/maplibre-gl/dist/maplibre-gl.css dist/tmp_maptiler-sdk.css > dist/maptiler-sdk.css && rm dist/tmp_maptiler-sdk.css && cp dist/maptiler-sdk.css build/maptiler-sdk.css", "build-umd": "tsc && NODE_ENV=production vite build -c vite.config-umd.ts", "build-es": "tsc && NODE_ENV=production vite build -c vite.config-es.ts", build: "npm run build-es; npm run build-umd; npm run build-css", make: "npm run install:clean && npm run build" }, Us = { "@canvas/image-data": "^1.0.0", "@eslint/js": "^9.21.0", "@types/stats.js": "^0.17.4", "@types/uuid": "^10.0.0", "@types/xmldom": "^0.1.31", "@vitest/web-worker": "^3.0.9", "@xmldom/xmldom": "^0.8.10", concurrently: "^9.1.2", eslint: "^9.21.0", "eslint-config-prettier": "^10.0.2", "eslint-plugin-prettier": "^5.2.3", "happy-dom": "^17.4.4", husky: "^8.0.0", jiti: "^2.4.2", "lint-staged": "^15.4.3", prettier: "3.5.2", "stats.js": "^0.17.0", typedoc: "^0.27.6", typescript: "^5.7.3", "typescript-eslint": "^8.25.0", vite: "^6.0.7", "vite-plugin-dts": "^4.5.0", vitest: "^3.0.9" }, Vs = { "@maplibre/maplibre-gl-style-spec": "^23.0.0", "@maptiler/client": "^2.3.2", events: "^3.3.0", "js-base64": "^3.7.7", "maplibre-gl": "^5.3.1", uuid: "^11.0.5" }, Gs = {
|
|
7946
7946
|
name: Es,
|
|
7947
7947
|
version: Ms,
|
|
7948
7948
|
description: _s,
|
|
@@ -10628,7 +10628,7 @@ const Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10628
10628
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10629
10629
|
Wa();
|
|
10630
10630
|
function Fl() {
|
|
10631
|
-
return "3.2.
|
|
10631
|
+
return "3.2.3";
|
|
10632
10632
|
}
|
|
10633
10633
|
const Dl = S.Map, ql = S.Marker, Bl = S.Popup, Ul = S.Style, Vl = S.CanvasSource, Gl = S.GeoJSONSource, Hl = S.ImageSource, Kl = S.RasterTileSource, Wl = S.RasterDEMTileSource, Zl = S.VectorTileSource, Jl = S.VideoSource, Yl = S.NavigationControl, Xl = S.GeolocateControl, Ql = S.AttributionControl, eu = S.LogoControl, tu = S.ScaleControl, ru = S.FullscreenControl, nu = S.TerrainControl, au = S.BoxZoomHandler, ou = S.ScrollZoomHandler, iu = S.CooperativeGesturesHandler, su = S.KeyboardHandler, lu = S.TwoFingersTouchPitchHandler, uu = S.MapWheelEvent, cu = S.MapTouchEvent, pu = S.MapMouseEvent, fu = S.config, du = S.getVersion, {
|
|
10634
10634
|
setRTLTextPlugin: yu,
|