leaflet-tual 0.0.0 → 0.1.0

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,16 +1,134 @@
1
1
  {
2
2
  "name": "leaflet-tual",
3
- "version": "0.0.0",
4
- "description": "Framework-agnostic interactive canvas and annotation toolkit for Leaflet maps",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/yusufarsln98/leaflet-tual.git"
3
+ "version": "0.1.0",
4
+ "description": "Framework-agnostic interactive canvas and annotation toolkit for Leaflet maps — draw arrows, shapes, freehand sketches, rulers, notes, and text pinned to geo-coordinates. Optional React bindings.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ },
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./core": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": {
26
+ "types": "./dist/index.d.ts",
27
+ "default": "./dist/index.js"
28
+ },
29
+ "require": {
30
+ "types": "./dist/index.d.cts",
31
+ "default": "./dist/index.cjs"
32
+ },
33
+ "default": "./dist/index.js"
34
+ },
35
+ "./react": {
36
+ "types": "./dist/react.d.ts",
37
+ "import": {
38
+ "types": "./dist/react.d.ts",
39
+ "default": "./dist/react.js"
40
+ },
41
+ "require": {
42
+ "types": "./dist/react.d.cts",
43
+ "default": "./dist/react.cjs"
44
+ },
45
+ "default": "./dist/react.js"
46
+ },
47
+ "./package.json": "./package.json"
9
48
  },
49
+ "files": [
50
+ "dist",
51
+ "README.md"
52
+ ],
10
53
  "author": "Yusuf Arslan",
11
54
  "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/yusufarsln98/leaflet-tual.git",
58
+ "directory": "packages/leaflet-tual"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/yusufarsln98/leaflet-tual/issues"
62
+ },
12
63
  "publishConfig": {
13
64
  "access": "public",
14
65
  "registry": "https://registry.npmjs.org/"
66
+ },
67
+ "keywords": [
68
+ "leaflet",
69
+ "leaflet-tual",
70
+ "tual",
71
+ "tuval",
72
+ "canvas",
73
+ "annotation",
74
+ "map-tools",
75
+ "arrows",
76
+ "notes",
77
+ "gis",
78
+ "overlay",
79
+ "framework-agnostic",
80
+ "vanilla-js",
81
+ "react",
82
+ "react-leaflet"
83
+ ],
84
+ "scripts": {
85
+ "build": "tsup",
86
+ "dev": "tsup --watch",
87
+ "lint": "eslint src --ext ts,tsx",
88
+ "typecheck": "tsc --noEmit",
89
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
90
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
91
+ "test": "vitest run",
92
+ "test:watch": "vitest",
93
+ "version": "changeset version",
94
+ "release": "npm run build && changeset publish"
95
+ },
96
+ "peerDependencies": {
97
+ "leaflet": "^1.9.0",
98
+ "react": "^18.0.0 || ^19.0.0",
99
+ "react-dom": "^18.0.0 || ^19.0.0",
100
+ "react-leaflet": "^4.0.0 || ^5.0.0"
101
+ },
102
+ "peerDependenciesMeta": {
103
+ "react": {
104
+ "optional": true
105
+ },
106
+ "react-dom": {
107
+ "optional": true
108
+ },
109
+ "react-leaflet": {
110
+ "optional": true
111
+ }
112
+ },
113
+ "devDependencies": {
114
+ "@changesets/cli": "^2.27.1",
115
+ "@testing-library/dom": "^10.4.0",
116
+ "@testing-library/react": "^16.2.0",
117
+ "@types/leaflet": "^1.9.16",
118
+ "@types/node": "^22.13.0",
119
+ "@types/react": "^19.0.0",
120
+ "@types/react-dom": "^19.0.0",
121
+ "eslint": "^9.20.0",
122
+ "eslint-plugin-react-hooks": "^5.1.0",
123
+ "jsdom": "^26.0.0",
124
+ "leaflet": "^1.9.4",
125
+ "prettier": "^3.5.0",
126
+ "react": "^19.0.0",
127
+ "react-dom": "^19.0.0",
128
+ "react-leaflet": "^5.0.0",
129
+ "tsup": "^8.5.1",
130
+ "typescript": "^5.7.0",
131
+ "typescript-eslint": "^8.24.0",
132
+ "vitest": "^3.0.0"
15
133
  }
16
134
  }
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = {};