@seedprotocol/react 0.7.13 → 0.7.14-next.1622.g2d39289
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/dist/SeedClientGate.d.ts +5 -1
- package/dist/SeedClientGate.d.ts.map +1 -1
- package/dist/SeedProvider.d.ts +5 -1
- package/dist/SeedProvider.d.ts.map +1 -1
- package/dist/index.js +324 -297
- package/dist/index.js.map +1 -1
- package/dist/useAddressesProp.d.ts +10 -0
- package/dist/useAddressesProp.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { SeedConstructorOptions } from '@seedprotocol/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Applies a component's `addresses` prop after mount. The init the component starts on mount
|
|
5
|
+
* applies the first value (a repeat init leaves the stored addresses alone), so this calls
|
|
6
|
+
* `client.setAddresses` only when the prop later holds different addresses, after `initRef`'s
|
|
7
|
+
* init settles. Changes apply in order. Leaving the prop out (`undefined`) changes nothing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useAddressesProp(addresses: SeedConstructorOptions['addresses'], initRef: MutableRefObject<Promise<void> | undefined>, label: string): void;
|
|
10
|
+
//# sourceMappingURL=useAddressesProp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddressesProp.d.ts","sourceRoot":"","sources":["../src/useAddressesProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE/D;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,sBAAsB,CAAC,WAAW,CAAC,EAC9C,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,EACpD,KAAK,EAAE,MAAM,GACZ,IAAI,CA2BN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedprotocol/react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14-next.1622.g2d39289",
|
|
4
4
|
"description": "React hooks and components for Seed Protocol: live schemas, models, items and properties from @seedprotocol/sdk, backed by TanStack Query",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"seed-protocol",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test:browser": "cd ../.. && vitest --config vite.config.js --project=browser"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@seedprotocol/sdk": "0.7.
|
|
43
|
+
"@seedprotocol/sdk": "0.7.14-next.1622.g2d39289",
|
|
44
44
|
"react": "^18 || ^19",
|
|
45
45
|
"react-dom": "^18 || ^19",
|
|
46
46
|
"@tanstack/react-query": "^5"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"xstate": "^5.28.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@seedprotocol/sdk": "0.7.
|
|
57
|
+
"@seedprotocol/sdk": "0.7.14-next.1622.g2d39289",
|
|
58
58
|
"vite-plugin-dts": "^4.5.4",
|
|
59
59
|
"@tanstack/react-query": "^5.104.1",
|
|
60
60
|
"@testing-library/react": "^16.3.1",
|