@seedprotocol/react 0.7.13-next.1544.g0602f59 → 0.7.13-next.1564.gb56e6c2
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/index.js +521 -520
- package/dist/index.js.map +1 -1
- package/dist/services.d.ts +5 -2
- package/dist/services.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/services.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActorRef } from 'xstate';
|
|
2
|
-
import { ClientManagerState } from '@seedprotocol/sdk';
|
|
2
|
+
import { ClientManagerState, ClientStopReason } from '@seedprotocol/sdk';
|
|
3
3
|
export declare const getServiceName: (service: ActorRef<any, any>) => string;
|
|
4
4
|
export declare const getServiceValue: (service: ActorRef<any, any>) => string | undefined;
|
|
5
5
|
export declare const getServiceUniqueKey: (service: ActorRef<any, any>) => any;
|
|
@@ -33,10 +33,13 @@ export declare const useServices: () => {
|
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* The client manager's state. `'stopped'` after `client.stop()` until the next init starts: a stopped
|
|
36
|
-
* actor keeps its last state (`'idle'`), which would read as ready.
|
|
36
|
+
* actor keeps its last state (`'idle'`), which would read as ready. `stopReason` says why while
|
|
37
|
+
* stopped: `'reset'` when `client.resetLocalData()`, in this tab or another, stopped the client,
|
|
38
|
+
* else `'stop'`. It is undefined while the client isn't stopped.
|
|
37
39
|
*/
|
|
38
40
|
export declare const useGlobalServiceStatus: () => {
|
|
39
41
|
status: ClientManagerState | "stopped";
|
|
40
42
|
internalStatus: ClientManagerState | "ready" | "stopped";
|
|
43
|
+
stopReason: ClientStopReason | undefined;
|
|
41
44
|
};
|
|
42
45
|
//# sourceMappingURL=services.d.ts.map
|
package/dist/services.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../src/services.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,E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6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedprotocol/react",
|
|
3
|
-
"version": "0.7.13-next.
|
|
3
|
+
"version": "0.7.13-next.1564.gb56e6c2",
|
|
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.13-next.
|
|
43
|
+
"@seedprotocol/sdk": "0.7.13-next.1564.gb56e6c2",
|
|
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.13-next.
|
|
57
|
+
"@seedprotocol/sdk": "0.7.13-next.1564.gb56e6c2",
|
|
58
58
|
"vite-plugin-dts": "^4.5.4",
|
|
59
59
|
"@tanstack/react-query": "^5.104.1",
|
|
60
60
|
"@testing-library/react": "^16.3.1",
|