@comapeo/core-react 8.0.0 → 9.0.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.
- package/README.md +38 -0
- package/dist/commonjs/contexts/ClientApi.d.ts +5 -5
- package/dist/commonjs/contexts/ClientApi.js +6 -5
- package/dist/commonjs/contexts/ComapeoCore.d.ts +8 -0
- package/dist/commonjs/contexts/ComapeoCore.js +9 -0
- package/dist/commonjs/contexts/MapServer.d.ts +69 -0
- package/dist/commonjs/contexts/MapServer.js +92 -0
- package/dist/commonjs/contexts/MapShares.d.ts +52 -0
- package/dist/commonjs/contexts/MapShares.js +74 -0
- package/dist/commonjs/hooks/maps.d.ts +460 -3
- package/dist/commonjs/hooks/maps.js +261 -4
- package/dist/commonjs/index.d.ts +5 -2
- package/dist/commonjs/index.js +20 -3
- package/dist/commonjs/lib/http.d.ts +45 -0
- package/dist/commonjs/lib/http.js +103 -0
- package/dist/commonjs/lib/map-shares-stores.d.ts +80 -0
- package/dist/commonjs/lib/map-shares-stores.js +299 -0
- package/dist/commonjs/lib/react-query/maps.d.ts +66 -20
- package/dist/commonjs/lib/react-query/maps.js +113 -11
- package/dist/commonjs/lib/react-query/mutation-result.d.ts +8 -0
- package/dist/commonjs/lib/react-query/mutation-result.js +22 -0
- package/dist/esm/contexts/ClientApi.d.ts +5 -5
- package/dist/esm/contexts/ClientApi.js +6 -5
- package/dist/esm/contexts/ComapeoCore.d.ts +8 -0
- package/dist/esm/contexts/ComapeoCore.js +6 -0
- package/dist/esm/contexts/MapServer.d.ts +69 -0
- package/dist/esm/contexts/MapServer.js +86 -0
- package/dist/esm/contexts/MapShares.d.ts +52 -0
- package/dist/esm/contexts/MapShares.js +65 -0
- package/dist/esm/hooks/maps.d.ts +460 -3
- package/dist/esm/hooks/maps.js +252 -6
- package/dist/esm/index.d.ts +5 -2
- package/dist/esm/index.js +4 -2
- package/dist/esm/lib/http.d.ts +45 -0
- package/dist/esm/lib/http.js +98 -0
- package/dist/esm/lib/map-shares-stores.d.ts +80 -0
- package/dist/esm/lib/map-shares-stores.js +291 -0
- package/dist/esm/lib/react-query/maps.d.ts +66 -20
- package/dist/esm/lib/react-query/maps.js +109 -12
- package/dist/esm/lib/react-query/mutation-result.d.ts +8 -0
- package/dist/esm/lib/react-query/mutation-result.js +19 -0
- package/docs/API.md +567 -60
- package/package.json +15 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "React wrapper for working with @comapeo/core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
|
-
"docs:generate": "tsdoc --src=src/contexts/*,src/hooks
|
|
50
|
+
"docs:generate": "tsdoc --src=src/contexts/*,src/hooks/* --dest=docs/API.md --noemoji --types",
|
|
51
51
|
"lint:eslint": "eslint --cache .",
|
|
52
52
|
"lint:format": "prettier --cache --check .",
|
|
53
53
|
"lint": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output lint:*",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"types": "tsc"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@comapeo/core": "^5.
|
|
60
|
+
"@comapeo/core": "^5.5.0",
|
|
61
61
|
"@comapeo/ipc": "^6.0.2",
|
|
62
62
|
"@comapeo/schema": "*",
|
|
63
63
|
"@tanstack/react-query": "^5",
|
|
64
64
|
"react": "^18 || ^19"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@comapeo/core": "5.
|
|
67
|
+
"@comapeo/core": "5.5.0",
|
|
68
68
|
"@comapeo/ipc": "6.0.2",
|
|
69
69
|
"@comapeo/schema": "2.2.0",
|
|
70
70
|
"@eslint/compat": "2.0.0",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"@tanstack/react-query": "5.90.12",
|
|
78
78
|
"@testing-library/dom": "10.4.1",
|
|
79
79
|
"@testing-library/react": "16.3.1",
|
|
80
|
+
"@types/jsdom": "27.0.0",
|
|
80
81
|
"@types/node": "22.19.3",
|
|
81
82
|
"@types/react": "19.2.7",
|
|
82
83
|
"@types/react-dom": "19.2.3",
|
|
@@ -88,16 +89,26 @@
|
|
|
88
89
|
"globals": "16.5.0",
|
|
89
90
|
"happy-dom": "20.0.11",
|
|
90
91
|
"husky": "9.1.7",
|
|
92
|
+
"jsdom": "28.0.0",
|
|
93
|
+
"ky": "1.14.3",
|
|
91
94
|
"lint-staged": "16.2.7",
|
|
92
95
|
"npm-run-all2": "8.0.4",
|
|
93
96
|
"prettier": "3.7.4",
|
|
94
97
|
"random-access-memory": "6.2.1",
|
|
95
98
|
"react": "19.2.3",
|
|
96
99
|
"react-dom": "19.2.3",
|
|
100
|
+
"secret-stream-http": "1.0.1",
|
|
97
101
|
"tsdoc-markdown": "1.4.1",
|
|
98
102
|
"tshy": "3.1.0",
|
|
99
103
|
"typescript": "5.9.3",
|
|
100
104
|
"typescript-eslint": "8.49.0",
|
|
105
|
+
"uint8array-extras": "1.5.0",
|
|
101
106
|
"vitest": "4.0.15"
|
|
107
|
+
},
|
|
108
|
+
"dependencies": {
|
|
109
|
+
"@comapeo/map-server": "1.0.0",
|
|
110
|
+
"ensure-error": "5.0.0",
|
|
111
|
+
"eventsource-client": "1.2.0",
|
|
112
|
+
"type-fest": "5.4.4"
|
|
102
113
|
}
|
|
103
114
|
}
|