@unmap/sdk 0.0.1 → 0.0.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/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Map } from '@unmap/maps';
|
|
2
2
|
export { DEMO_CITIES, DemoCity, Map, UnmapMapOptions, createMap, maplibregl, unmapStyle } from '@unmap/maps';
|
|
3
|
-
import { Geocoder } from '@unmap/
|
|
4
|
-
export * from '@unmap/
|
|
5
|
-
import { Router } from '@unmap/
|
|
6
|
-
export * from '@unmap/
|
|
3
|
+
import { Geocoder } from '@unmap/geocoding';
|
|
4
|
+
export * from '@unmap/geocoding';
|
|
5
|
+
import { Router } from '@unmap/routing';
|
|
6
|
+
export * from '@unmap/routing';
|
|
7
7
|
|
|
8
8
|
interface UnmapOptions {
|
|
9
9
|
key: string;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { createMap } from "@unmap/maps";
|
|
3
|
-
import { Geocoder } from "@unmap/
|
|
4
|
-
import { Router } from "@unmap/
|
|
5
|
-
export * from "@unmap/
|
|
6
|
-
export * from "@unmap/
|
|
3
|
+
import { Geocoder } from "@unmap/geocoding";
|
|
4
|
+
import { Router } from "@unmap/routing";
|
|
5
|
+
export * from "@unmap/geocoding";
|
|
6
|
+
export * from "@unmap/routing";
|
|
7
7
|
import { createMap as createMap2, unmapStyle, DEMO_CITIES, maplibregl } from "@unmap/maps";
|
|
8
8
|
var Unmap = class {
|
|
9
9
|
geocoder;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createMap, type Map as MaplibreMap, type UnmapMapOptions } from \"@unmap/maps\";\nimport { Geocoder } from \"@unmap/
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createMap, type Map as MaplibreMap, type UnmapMapOptions } from \"@unmap/maps\";\nimport { Geocoder } from \"@unmap/geocoding\";\nimport { Router } from \"@unmap/routing\";\n\nexport * from \"@unmap/geocoding\";\nexport * from \"@unmap/routing\";\nexport { createMap, unmapStyle, DEMO_CITIES, maplibregl } from \"@unmap/maps\";\nexport type { Map, UnmapMapOptions, DemoCity } from \"@unmap/maps\";\n\nexport interface UnmapOptions {\n key: string;\n gateway?: string;\n /** If provided, a map is mounted in this container. */\n container?: string | HTMLElement;\n style?: string;\n flavor?: string;\n center?: [number, number];\n zoom?: number;\n}\n\n/**\n * One Stripe-style key, the whole platform. With a `container` you get a rendered map;\n * `geocoder` and `router` are always available.\n *\n * const map = new Unmap({ key: \"um_live_...\", container: \"#map\", center: [-75.69, 45.42] });\n */\nexport class Unmap {\n readonly geocoder: Geocoder;\n readonly router: Router;\n readonly map?: MaplibreMap;\n\n constructor(opts: UnmapOptions) {\n this.geocoder = new Geocoder(opts);\n this.router = new Router(opts);\n if (opts.container) {\n this.map = createMap({ ...opts, container: opts.container } as UnmapMapOptions);\n }\n }\n}\n"],"mappings":";AAAA,SAAS,iBAAgE;AACzE,SAAS,gBAAgB;AACzB,SAAS,cAAc;AAEvB,cAAc;AACd,cAAc;AACd,SAAS,aAAAA,YAAW,YAAY,aAAa,kBAAkB;AAoBxD,IAAM,QAAN,MAAY;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,MAAoB;AAC9B,SAAK,WAAW,IAAI,SAAS,IAAI;AACjC,SAAK,SAAS,IAAI,OAAO,IAAI;AAC7B,QAAI,KAAK,WAAW;AAClB,WAAK,MAAM,UAAU,EAAE,GAAG,MAAM,WAAW,KAAK,UAAU,CAAoB;AAAA,IAChF;AAAA,EACF;AACF;","names":["createMap"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unmap/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "One key, the whole unmap platform: map + geocoder + router",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@unmap/maps": "0.0.1",
|
|
24
|
-
"@unmap/
|
|
25
|
-
"@unmap/
|
|
26
|
-
"@unmap/
|
|
24
|
+
"@unmap/core": "0.0.1",
|
|
25
|
+
"@unmap/geocoding": "0.0.1",
|
|
26
|
+
"@unmap/routing": "0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsup": "^8.3.0",
|