annotate-kit 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/LICENSE +21 -0
- package/README.md +307 -0
- package/backend/firebase/firestore.indexes.json +22 -0
- package/backend/firebase/firestore.rules +84 -0
- package/backend/firebase/storage.rules +37 -0
- package/backend/supabase/migration.sql +245 -0
- package/dist/adapter-Cyqfwj6F.d.ts +40 -0
- package/dist/annotate-kit.css +2 -0
- package/dist/chunk-G44KPHPN.js +107 -0
- package/dist/delivery.d.ts +31 -0
- package/dist/delivery.js +48 -0
- package/dist/firebase.d.ts +34 -0
- package/dist/firebase.js +200 -0
- package/dist/idb.d.ts +18 -0
- package/dist/idb.js +202 -0
- package/dist/index.d.ts +290 -0
- package/dist/index.js +1856 -0
- package/dist/local.d.ts +18 -0
- package/dist/local.js +115 -0
- package/dist/prompt.d.ts +54 -0
- package/dist/prompt.js +8 -0
- package/dist/rest.d.ts +27 -0
- package/dist/rest.js +63 -0
- package/dist/supabase.d.ts +31 -0
- package/dist/supabase.js +143 -0
- package/dist/types-BLXmj4Oi.d.ts +93 -0
- package/package.json +143 -0
- package/src/Annotate.tsx +1043 -0
- package/src/ScreenshotEditor.tsx +195 -0
- package/src/adapter.ts +31 -0
- package/src/adapters/firebase.ts +197 -0
- package/src/adapters/idb.ts +181 -0
- package/src/adapters/local.ts +114 -0
- package/src/adapters/rest.ts +98 -0
- package/src/adapters/supabase.ts +185 -0
- package/src/constants.ts +35 -0
- package/src/delivery.ts +63 -0
- package/src/index.ts +20 -0
- package/src/prompt.ts +109 -0
- package/src/snapshot.ts +21 -0
- package/src/styles/annotate.css +211 -0
- package/src/types.ts +71 -0
package/package.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "annotate-kit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Drop-in in-app annotation / visual-feedback overlay for React apps. Pin & draw on your live site, capture screenshots + console, export a clean prompt for your developer or any AI coding assistant. Backend-agnostic via a small storage adapter — ships zero-backend (localStorage), Supabase, Firebase, and generic REST adapters.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "lavish-mitra",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/lavish-mitra/annotate-kit.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/lavish-mitra/annotate-kit/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/lavish-mitra/annotate-kit#readme",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"*.css"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"backend",
|
|
25
|
+
"src",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./supabase": {
|
|
34
|
+
"types": "./dist/supabase.d.ts",
|
|
35
|
+
"import": "./dist/supabase.js"
|
|
36
|
+
},
|
|
37
|
+
"./firebase": {
|
|
38
|
+
"types": "./dist/firebase.d.ts",
|
|
39
|
+
"import": "./dist/firebase.js"
|
|
40
|
+
},
|
|
41
|
+
"./local": {
|
|
42
|
+
"types": "./dist/local.d.ts",
|
|
43
|
+
"import": "./dist/local.js"
|
|
44
|
+
},
|
|
45
|
+
"./rest": {
|
|
46
|
+
"types": "./dist/rest.d.ts",
|
|
47
|
+
"import": "./dist/rest.js"
|
|
48
|
+
},
|
|
49
|
+
"./idb": {
|
|
50
|
+
"types": "./dist/idb.d.ts",
|
|
51
|
+
"import": "./dist/idb.js"
|
|
52
|
+
},
|
|
53
|
+
"./prompt": {
|
|
54
|
+
"types": "./dist/prompt.d.ts",
|
|
55
|
+
"import": "./dist/prompt.js"
|
|
56
|
+
},
|
|
57
|
+
"./delivery": {
|
|
58
|
+
"types": "./dist/delivery.d.ts",
|
|
59
|
+
"import": "./dist/delivery.js"
|
|
60
|
+
},
|
|
61
|
+
"./styles.css": "./dist/annotate-kit.css"
|
|
62
|
+
},
|
|
63
|
+
"main": "./dist/index.js",
|
|
64
|
+
"types": "./dist/index.d.ts",
|
|
65
|
+
"typesVersions": {
|
|
66
|
+
"*": {
|
|
67
|
+
"supabase": [
|
|
68
|
+
"./dist/supabase.d.ts"
|
|
69
|
+
],
|
|
70
|
+
"firebase": [
|
|
71
|
+
"./dist/firebase.d.ts"
|
|
72
|
+
],
|
|
73
|
+
"local": [
|
|
74
|
+
"./dist/local.d.ts"
|
|
75
|
+
],
|
|
76
|
+
"rest": [
|
|
77
|
+
"./dist/rest.d.ts"
|
|
78
|
+
],
|
|
79
|
+
"idb": [
|
|
80
|
+
"./dist/idb.d.ts"
|
|
81
|
+
],
|
|
82
|
+
"prompt": [
|
|
83
|
+
"./dist/prompt.d.ts"
|
|
84
|
+
],
|
|
85
|
+
"delivery": [
|
|
86
|
+
"./dist/delivery.d.ts"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build": "npm run build:js && npm run build:css",
|
|
92
|
+
"build:js": "tsup",
|
|
93
|
+
"build:css": "tailwindcss -i ./src/styles/annotate.css -o ./dist/annotate-kit.css --minify",
|
|
94
|
+
"dev": "tsup --watch",
|
|
95
|
+
"test": "vitest run",
|
|
96
|
+
"typecheck": "tsc --noEmit",
|
|
97
|
+
"prepublishOnly": "npm run build"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"react": ">=18",
|
|
101
|
+
"react-dom": ">=18"
|
|
102
|
+
},
|
|
103
|
+
"peerDependenciesMeta": {
|
|
104
|
+
"@supabase/supabase-js": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"firebase": {
|
|
108
|
+
"optional": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"lucide-react": "^0.469.0",
|
|
113
|
+
"modern-screenshot": "^4.6.0"
|
|
114
|
+
},
|
|
115
|
+
"devDependencies": {
|
|
116
|
+
"@supabase/supabase-js": "^2.47.0",
|
|
117
|
+
"@tailwindcss/cli": "^4.0.0",
|
|
118
|
+
"@types/react": "^19.0.0",
|
|
119
|
+
"@types/react-dom": "^19.0.0",
|
|
120
|
+
"fake-indexeddb": "^6.2.5",
|
|
121
|
+
"firebase": "^11.0.0",
|
|
122
|
+
"react": "^19.0.0",
|
|
123
|
+
"react-dom": "^19.0.0",
|
|
124
|
+
"tailwindcss": "^4.0.0",
|
|
125
|
+
"tsup": "^8.3.5",
|
|
126
|
+
"typescript": "^5.7.0",
|
|
127
|
+
"vitest": "^2.1.8"
|
|
128
|
+
},
|
|
129
|
+
"keywords": [
|
|
130
|
+
"annotation",
|
|
131
|
+
"feedback",
|
|
132
|
+
"visual-feedback",
|
|
133
|
+
"bug-report",
|
|
134
|
+
"screenshot",
|
|
135
|
+
"react",
|
|
136
|
+
"overlay",
|
|
137
|
+
"supabase",
|
|
138
|
+
"firebase",
|
|
139
|
+
"rest",
|
|
140
|
+
"self-hosted",
|
|
141
|
+
"backend-agnostic"
|
|
142
|
+
]
|
|
143
|
+
}
|