@comapeo/core-react 7.2.0 → 9.0.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/README.md +38 -0
- package/dist/commonjs/contexts/ClientApi.d.ts +8 -6
- package/dist/commonjs/contexts/ClientApi.js +15 -0
- 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/client.d.ts +3 -1
- package/dist/commonjs/hooks/documents.d.ts +3 -1
- package/dist/commonjs/hooks/invites.d.ts +0 -16
- package/dist/commonjs/hooks/invites.js +0 -32
- package/dist/commonjs/hooks/maps.d.ts +460 -3
- package/dist/commonjs/hooks/maps.js +261 -4
- package/dist/commonjs/hooks/projects.d.ts +17 -3
- package/dist/commonjs/index.d.ts +6 -3
- package/dist/commonjs/index.js +20 -6
- 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/presets.d.ts +3 -1
- package/dist/commonjs/lib/react-query/client.d.ts +6 -2
- package/dist/commonjs/lib/react-query/documents.d.ts +7 -3
- package/dist/commonjs/lib/react-query/invites.d.ts +6 -2
- package/dist/commonjs/lib/react-query/maps.d.ts +67 -19
- 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/commonjs/lib/react-query/projects.d.ts +5 -1
- package/dist/commonjs/lib/react-query/projects.js +1 -6
- package/dist/commonjs/lib/sync.d.ts +3 -1
- package/dist/commonjs/lib/types.d.ts +3 -1
- package/dist/esm/contexts/ClientApi.d.ts +8 -6
- package/dist/esm/contexts/ClientApi.js +16 -1
- 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/client.d.ts +3 -1
- package/dist/esm/hooks/documents.d.ts +3 -1
- package/dist/esm/hooks/invites.d.ts +0 -16
- package/dist/esm/hooks/invites.js +1 -32
- package/dist/esm/hooks/maps.d.ts +460 -3
- package/dist/esm/hooks/maps.js +252 -6
- package/dist/esm/hooks/projects.d.ts +17 -3
- package/dist/esm/index.d.ts +6 -3
- package/dist/esm/index.js +5 -3
- 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/presets.d.ts +3 -1
- package/dist/esm/lib/react-query/client.d.ts +6 -2
- package/dist/esm/lib/react-query/documents.d.ts +7 -3
- package/dist/esm/lib/react-query/invites.d.ts +6 -2
- package/dist/esm/lib/react-query/maps.d.ts +67 -19
- 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/dist/esm/lib/react-query/projects.d.ts +5 -1
- package/dist/esm/lib/react-query/projects.js +1 -6
- package/dist/esm/lib/sync.d.ts +3 -1
- package/dist/esm/lib/types.d.ts +3 -1
- package/docs/API.md +567 -60
- package/package.json +40 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
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,47 +57,58 @@
|
|
|
57
57
|
"types": "tsc"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@comapeo/core": "^5.
|
|
61
|
-
"@comapeo/ipc": "^6.0.
|
|
60
|
+
"@comapeo/core": "^5.5.0",
|
|
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.
|
|
68
|
-
"@comapeo/ipc": "6.0.
|
|
67
|
+
"@comapeo/core": "5.5.0",
|
|
68
|
+
"@comapeo/ipc": "6.0.2",
|
|
69
69
|
"@comapeo/schema": "2.2.0",
|
|
70
|
-
"@eslint/compat": "
|
|
71
|
-
"@eslint/js": "9.
|
|
70
|
+
"@eslint/compat": "2.0.0",
|
|
71
|
+
"@eslint/js": "9.39.2",
|
|
72
72
|
"@ianvs/prettier-plugin-sort-imports": "4.7.0",
|
|
73
73
|
"@mapeo/crypto": "1.0.0-alpha.10",
|
|
74
74
|
"@mapeo/default-config": "6.0.0",
|
|
75
75
|
"@mapeo/mock-data": "5.0.0",
|
|
76
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
77
|
-
"@tanstack/react-query": "5.
|
|
76
|
+
"@tanstack/eslint-plugin-query": "5.91.2",
|
|
77
|
+
"@tanstack/react-query": "5.90.12",
|
|
78
78
|
"@testing-library/dom": "10.4.1",
|
|
79
|
-
"@testing-library/react": "16.3.
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/
|
|
82
|
-
"@types/react
|
|
83
|
-
"@
|
|
84
|
-
"eslint": "
|
|
85
|
-
"eslint
|
|
86
|
-
"eslint-plugin-
|
|
79
|
+
"@testing-library/react": "16.3.1",
|
|
80
|
+
"@types/jsdom": "27.0.0",
|
|
81
|
+
"@types/node": "22.19.3",
|
|
82
|
+
"@types/react": "19.2.7",
|
|
83
|
+
"@types/react-dom": "19.2.3",
|
|
84
|
+
"@vitest/eslint-plugin": "1.5.2",
|
|
85
|
+
"eslint": "9.39.2",
|
|
86
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
87
|
+
"eslint-plugin-testing-library": "7.14.0",
|
|
87
88
|
"fastify": "4.29.1",
|
|
88
|
-
"globals": "16.
|
|
89
|
-
"happy-dom": "
|
|
89
|
+
"globals": "16.5.0",
|
|
90
|
+
"happy-dom": "20.0.11",
|
|
90
91
|
"husky": "9.1.7",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
92
|
+
"jsdom": "28.0.0",
|
|
93
|
+
"ky": "1.14.3",
|
|
94
|
+
"lint-staged": "16.2.7",
|
|
95
|
+
"npm-run-all2": "8.0.4",
|
|
96
|
+
"prettier": "3.7.4",
|
|
94
97
|
"random-access-memory": "6.2.1",
|
|
95
|
-
"react": "19.
|
|
96
|
-
"react-dom": "19.
|
|
98
|
+
"react": "19.2.3",
|
|
99
|
+
"react-dom": "19.2.3",
|
|
100
|
+
"secret-stream-http": "1.0.1",
|
|
97
101
|
"tsdoc-markdown": "1.4.1",
|
|
98
|
-
"tshy": "3.0
|
|
99
|
-
"typescript": "5.9.
|
|
100
|
-
"typescript-eslint": "8.
|
|
101
|
-
"
|
|
102
|
+
"tshy": "3.1.0",
|
|
103
|
+
"typescript": "5.9.3",
|
|
104
|
+
"typescript-eslint": "8.49.0",
|
|
105
|
+
"uint8array-extras": "1.5.0",
|
|
106
|
+
"vitest": "4.0.15"
|
|
107
|
+
},
|
|
108
|
+
"dependencies": {
|
|
109
|
+
"@comapeo/map-server": "^1.0.0-pre.7",
|
|
110
|
+
"ensure-error": "5.0.0",
|
|
111
|
+
"eventsource-client": "1.2.0",
|
|
112
|
+
"type-fest": "5.4.4"
|
|
102
113
|
}
|
|
103
114
|
}
|