@comapeo/core-react 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/CHANGELOG.md +9 -0
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/contexts/ClientApi.d.ts +14 -0
- package/dist/contexts/ClientApi.js +12 -0
- package/dist/hooks/client.d.ts +59 -0
- package/dist/hooks/client.js +66 -0
- package/dist/hooks/documents.d.ts +475 -0
- package/dist/hooks/documents.js +124 -0
- package/dist/hooks/maps.d.ts +34 -0
- package/dist/hooks/maps.js +35 -0
- package/dist/hooks/projects.d.ts +261 -0
- package/dist/hooks/projects.js +257 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/lib/react-query/client.d.ts +30 -0
- package/dist/lib/react-query/client.js +29 -0
- package/dist/lib/react-query/documents.d.ts +1492 -0
- package/dist/lib/react-query/documents.js +62 -0
- package/dist/lib/react-query/invites.d.ts +12 -0
- package/dist/lib/react-query/invites.js +17 -0
- package/dist/lib/react-query/maps.d.ts +15 -0
- package/dist/lib/react-query/maps.js +18 -0
- package/dist/lib/react-query/projects.d.ts +188 -0
- package/dist/lib/react-query/projects.js +120 -0
- package/dist/lib/react-query/shared.d.ts +5 -0
- package/dist/lib/react-query/shared.js +12 -0
- package/docs/API.md +783 -0
- package/package.json +80 -0
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comapeo/core-react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React wrapper for working with @comapeo/core",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/digidem/comapeo-core-react.git"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"comapeo"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/digidem/comapeo-core-react/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/digidem/comapeo-core-react#readme",
|
|
17
|
+
"authors": [
|
|
18
|
+
"Andrew Chou <achou@awana.digital>"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"dist/",
|
|
30
|
+
"docs/API.md"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"prepare": "husky",
|
|
34
|
+
"lint:eslint": "eslint --cache .",
|
|
35
|
+
"lint:format": "prettier --cache --check .",
|
|
36
|
+
"lint": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output lint:*",
|
|
37
|
+
"types": "tsc",
|
|
38
|
+
"test:unit": "vitest run",
|
|
39
|
+
"test": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output types test:*",
|
|
40
|
+
"docs:generate": "tsdoc --src=src/contexts/*,src/hooks/*,src/lib/react-query/* --dest=docs/API.md --noemoji --types",
|
|
41
|
+
"build:clean": "rimraf ./dist",
|
|
42
|
+
"build:npm": "tsc -p tsconfig.npm.json",
|
|
43
|
+
"build": "npm-run-all build:clean build:npm",
|
|
44
|
+
"prepack": "npm run build"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@comapeo/core": "*",
|
|
48
|
+
"@comapeo/ipc": "*",
|
|
49
|
+
"@comapeo/schema": "*",
|
|
50
|
+
"@tanstack/react-query": "^5 || ^6",
|
|
51
|
+
"react": "^18 || ^19"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/compat": "^1.2.4",
|
|
55
|
+
"@eslint/js": "^9.15.0",
|
|
56
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
57
|
+
"@mapeo/crypto": "^1.0.0-alpha.10",
|
|
58
|
+
"@tanstack/eslint-plugin-query": "^5.62.1",
|
|
59
|
+
"@testing-library/dom": "^10.4.0",
|
|
60
|
+
"@testing-library/react": "^16.1.0",
|
|
61
|
+
"@types/lint-staged": "^13.3.0",
|
|
62
|
+
"@types/node": "^22.10.2",
|
|
63
|
+
"@types/react": "^19.0.1",
|
|
64
|
+
"@types/react-dom": "^19.0.2",
|
|
65
|
+
"commit-and-tag-version": "^12.5.0",
|
|
66
|
+
"eslint": "^9.16.0",
|
|
67
|
+
"fastify": "^4.29.0",
|
|
68
|
+
"globals": "^15.13.0",
|
|
69
|
+
"husky": "^9.1.7",
|
|
70
|
+
"lint-staged": "^15.2.11",
|
|
71
|
+
"npm-run-all2": "^7.0.1",
|
|
72
|
+
"prettier": "^3.4.2",
|
|
73
|
+
"random-access-memory": "^6.2.1",
|
|
74
|
+
"rimraf": "^6.0.1",
|
|
75
|
+
"tsdoc-markdown": "^1.0.0",
|
|
76
|
+
"typescript": "^5.7.2",
|
|
77
|
+
"typescript-eslint": "^8.18.0",
|
|
78
|
+
"vitest": "^2.1.8"
|
|
79
|
+
}
|
|
80
|
+
}
|