@yoltra/devtools-ui 0.5.0 → 0.6.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.es.md +75 -73
- package/dist/devtools-ui.cjs +1 -17
- package/dist/devtools-ui.cjs.map +1 -1
- package/dist/devtools-ui.mjs +2 -20
- package/dist/devtools-ui.mjs.map +1 -1
- package/dist/types/context/HubProvider.d.ts +13 -7
- package/dist/types/hooks/useStoreMetrics.d.ts +2 -3
- package/dist/types/hooks/useStoreSubscriptions.d.ts +2 -3
- package/dist/types/index.d.ts +3 -1
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import { StoreMetrics } from '@yoltra/devtools-protocol';
|
|
|
4
4
|
*
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
type MetricsData = StoreMetrics["metrics"];
|
|
7
|
+
export type MetricsData = StoreMetrics["metrics"];
|
|
8
8
|
/**
|
|
9
9
|
* Options for the {@link useStoreMetrics} hook.
|
|
10
10
|
*
|
|
@@ -43,7 +43,7 @@ export interface UseStoreMetricsOptions {
|
|
|
43
43
|
*
|
|
44
44
|
* @param storeId - The store ID to query, or `null` to disable.
|
|
45
45
|
* @param options - Optional configuration (see {@link UseStoreMetricsOptions}).
|
|
46
|
-
* @returns An object with `metrics` (
|
|
46
|
+
* @returns An object with `metrics` (`MetricsData` or `null`),
|
|
47
47
|
* `loading`, and `refresh`.
|
|
48
48
|
*
|
|
49
49
|
* @public
|
|
@@ -53,4 +53,3 @@ export declare function useStoreMetrics(storeId: string | null, options?: UseSto
|
|
|
53
53
|
loading: boolean;
|
|
54
54
|
refresh: () => void;
|
|
55
55
|
};
|
|
56
|
-
export {};
|
|
@@ -4,7 +4,7 @@ import { StoreSubscriptions } from '@yoltra/devtools-protocol';
|
|
|
4
4
|
*
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
type SubscriptionData = Omit<StoreSubscriptions, "type" | "timestamp" | "sourceId" | "sourceRole" | "storeId">;
|
|
7
|
+
export type SubscriptionData = Omit<StoreSubscriptions, "type" | "timestamp" | "sourceId" | "sourceRole" | "storeId">;
|
|
8
8
|
/**
|
|
9
9
|
* Fetches and caches subscription/consumer info for a store.
|
|
10
10
|
*
|
|
@@ -32,7 +32,7 @@ type SubscriptionData = Omit<StoreSubscriptions, "type" | "timestamp" | "sourceI
|
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
34
|
* @param storeId - The store ID to query, or `null` to disable.
|
|
35
|
-
* @returns An object with `data` (
|
|
35
|
+
* @returns An object with `data` (`SubscriptionData` or `null`),
|
|
36
36
|
* `loading`, and `refresh`.
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
@@ -42,4 +42,3 @@ export declare function useStoreSubscriptions(storeId: string | null): {
|
|
|
42
42
|
loading: boolean;
|
|
43
43
|
refresh: () => void;
|
|
44
44
|
};
|
|
45
|
-
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { HubContext } from './context/HubContext.js';
|
|
9
9
|
export { HubProvider } from './context/HubProvider.js';
|
|
10
|
+
export type { HubProviderProps } from './context/HubProvider.js';
|
|
10
11
|
export { useEventEmitter } from './hooks/useEventEmitter.js';
|
|
11
12
|
export { useEventLog } from './hooks/useEventLog.js';
|
|
12
13
|
export { useEventReplay } from './hooks/useEventReplay.js';
|
|
@@ -21,4 +22,5 @@ export { createLoopbackHub } from './transport/loopback.js';
|
|
|
21
22
|
export type { LoopbackHub } from './transport/loopback.js';
|
|
22
23
|
export type { EventLogEntry, HubConnectionConfig, HubConnectionStatus, HubContextValue, RegisteredStore, } from './types.js';
|
|
23
24
|
export type { UseEventLogOptions } from './hooks/useEventLog.js';
|
|
24
|
-
export type { UseStoreMetricsOptions } from './hooks/useStoreMetrics.js';
|
|
25
|
+
export type { UseStoreMetricsOptions, MetricsData } from './hooks/useStoreMetrics.js';
|
|
26
|
+
export type { SubscriptionData } from './hooks/useStoreSubscriptions.js';
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoltra/devtools-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Shared React hooks and business logic for Yoltra DevTools UIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Manu Ramirez <@pixerael>",
|
|
8
|
-
"email": "
|
|
8
|
+
"email": "opensource@yoltra.dev"
|
|
9
9
|
},
|
|
10
10
|
"maintainers": [],
|
|
11
11
|
"homepage": "https://yoltra.dev",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"react": "^18 || ^19"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@yoltra/devtools-protocol": "0.
|
|
44
|
+
"@yoltra/devtools-protocol": "0.6.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "^19.1.8",
|
|
48
|
-
"@vitest/coverage-v8": "3.2.
|
|
48
|
+
"@vitest/coverage-v8": "3.2.7",
|
|
49
49
|
"react": "19.1.1",
|
|
50
50
|
"typedoc": "^0.28.13",
|
|
51
51
|
"typedoc-plugin-localization": "3.0.6",
|
|
52
52
|
"typedoc-plugin-markdown": "4.9.0",
|
|
53
53
|
"typescript": "5.9.3",
|
|
54
|
-
"vite": "^7.
|
|
54
|
+
"vite": "^7.3.6",
|
|
55
55
|
"vite-plugin-banner": "0.8.1",
|
|
56
56
|
"vite-plugin-dts": "^4.5.4",
|
|
57
|
-
"vitest": "3.2.
|
|
57
|
+
"vitest": "3.2.7"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=18.18"
|