@lin1538001/unified-map 0.0.0-stage → 0.1.1

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 (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +82 -2
  3. package/dist/chunks/AMapAdapter-76901841.js +581 -0
  4. package/dist/chunks/ArcGISAdapter-5e6881de.js +962 -0
  5. package/dist/chunks/BMapAdapter-0d882313.js +581 -0
  6. package/dist/chunks/color-128d7dff.js +38 -0
  7. package/dist/chunks/index-dd303ebf.js +1190 -0
  8. package/dist/chunks/mapLoader-06d6e155.js +226 -0
  9. package/dist/index.js +7 -0
  10. package/dist/types/index.d.ts +2 -0
  11. package/dist/types/index.d.ts.map +1 -0
  12. package/dist/types/map/InfoWindow.d.ts +38 -0
  13. package/dist/types/map/InfoWindow.d.ts.map +1 -0
  14. package/dist/types/map/UnifiedMap.d.ts +266 -0
  15. package/dist/types/map/UnifiedMap.d.ts.map +1 -0
  16. package/dist/types/map/adapters/AMapAdapter.d.ts +87 -0
  17. package/dist/types/map/adapters/AMapAdapter.d.ts.map +1 -0
  18. package/dist/types/map/adapters/ArcGISAdapter.d.ts +92 -0
  19. package/dist/types/map/adapters/ArcGISAdapter.d.ts.map +1 -0
  20. package/dist/types/map/adapters/BMapAdapter.d.ts +83 -0
  21. package/dist/types/map/adapters/BMapAdapter.d.ts.map +1 -0
  22. package/dist/types/map/adapters/MapAdapter.d.ts +46 -0
  23. package/dist/types/map/adapters/MapAdapter.d.ts.map +1 -0
  24. package/dist/types/map/adapters/color.d.ts +3 -0
  25. package/dist/types/map/adapters/color.d.ts.map +1 -0
  26. package/dist/types/map/coordinates.d.ts +29 -0
  27. package/dist/types/map/coordinates.d.ts.map +1 -0
  28. package/dist/types/map/errors.d.ts +8 -0
  29. package/dist/types/map/errors.d.ts.map +1 -0
  30. package/dist/types/map/index.d.ts +5 -0
  31. package/dist/types/map/index.d.ts.map +1 -0
  32. package/dist/types/map/types.d.ts +240 -0
  33. package/dist/types/map/types.d.ts.map +1 -0
  34. package/dist/types/utils/mapLoader.d.ts +49 -0
  35. package/dist/types/utils/mapLoader.d.ts.map +1 -0
  36. package/package.json +63 -4
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
2
  "name": "@lin1538001/unified-map",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "A typed unified map API for AMap, Baidu Map and ArcGIS.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/types/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": ["dist", "README.md", "LICENSE"],
18
+ "sideEffects": ["**/*.css"],
19
+ "license": "MIT",
20
+ "keywords": ["map", "amap", "baidu-map", "arcgis", "typescript"],
21
+ "engines": { "node": ">=18" },
22
+ "publishConfig": { "access": "public" },
23
+ "packageManager": "pnpm@11.25.0",
24
+ "scripts": {
25
+ "dev": "vite",
26
+ "build": "run-s type-check build:lib",
27
+ "build:lib": "run-s build:lib:js build:lib:types",
28
+ "build:lib:js": "vite build --config vite.lib.config.ts",
29
+ "build:lib:types": "vue-tsc -p tsconfig.lib.json --declaration --emitDeclarationOnly",
30
+ "build:demo": "vite build",
31
+ "preview": "vite preview",
32
+ "test:build": "vite build --mode test",
33
+ "type-check": "vue-tsc --noEmit",
34
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
35
+ "lint:fix": "pnpm lint --fix"
36
+ },
37
+ "peerDependencies": {
38
+ "@arcgis/core": "^5.0.17",
39
+ "vue": "^3.4.0"
40
+ },
41
+ "peerDependenciesMeta": {
42
+ "@arcgis/core": { "optional": true }
43
+ },
44
+ "devDependencies": {
45
+ "@arcgis/core": "^5.0.17",
46
+ "@rushstack/eslint-patch": "^1.1.4",
47
+ "@types/node": "^20.17.0",
48
+ "@vitejs/plugin-vue": "^4.4.1",
49
+ "@vue/eslint-config-typescript": "^11.0.0",
50
+ "@vue/tsconfig": "^0.7.0",
51
+ "ant-design-vue": "^4.2.6",
52
+ "axios": "^1.7.0",
53
+ "dayjs": "^1.11.0",
54
+ "eslint": "^8.22.0",
55
+ "eslint-plugin-vue": "^9.3.0",
56
+ "npm-run-all": "^4.1.5",
57
+ "pinia": "^2.2.0",
58
+ "sass": "^1.77.0",
59
+ "typescript": "~5.7.3",
60
+ "vite": "^4.5.0",
61
+ "vue": "^3.4.0",
62
+ "vue-router": "^4.5.0",
63
+ "vue-tsc": "^2.2.0"
64
+ }
65
+ }