@buoy-gg/events 7.0.29 → 7.0.30
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/package.json +7 -8
- package/src/components/EventsCopySettingsView.tsx +0 -781
- package/src/components/EventsModal.tsx +0 -537
- package/src/components/ReactQueryEventDetail.tsx +0 -418
- package/src/components/UnifiedEventDetail.tsx +0 -596
- package/src/components/UnifiedEventFilters.tsx +0 -226
- package/src/components/UnifiedEventItem.tsx +0 -467
- package/src/components/UnifiedEventList.tsx +0 -216
- package/src/components/UnifiedEventViewer.tsx +0 -133
- package/src/hooks/useUnifiedEvents.ts +0 -573
- package/src/index.tsx +0 -128
- package/src/preset.tsx +0 -57
- package/src/sources/sourceIds.ts +0 -25
- package/src/stores/unifiedEventStore.ts +0 -686
- package/src/sync/__tests__/eventsSyncAdapter.test.ts +0 -471
- package/src/sync/eventsSyncAdapter.ts +0 -391
- package/src/types/copySettings.ts +0 -299
- package/src/types/index.ts +0 -101
- package/src/utils/autoDiscoverEventSources.ts +0 -1087
- package/src/utils/badgeSelectionStorage.ts +0 -81
- package/src/utils/copySettingsStorage.ts +0 -61
- package/src/utils/correlationUtils.ts +0 -146
- package/src/utils/eventExportFormatter.ts +0 -2066
- package/src/utils/eventTransformers.ts +0 -567
package/src/types/index.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unified Events - Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Note: Types are defined inline to avoid hard dependencies on tool packages.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Event source identifiers
|
|
9
|
-
*/
|
|
10
|
-
export type EventSource =
|
|
11
|
-
| "storage-async"
|
|
12
|
-
| "storage-mmkv"
|
|
13
|
-
| "redux"
|
|
14
|
-
| "network"
|
|
15
|
-
| "react-query"
|
|
16
|
-
| "react-query-query"
|
|
17
|
-
| "react-query-mutation"
|
|
18
|
-
| "route"
|
|
19
|
-
| "render"
|
|
20
|
-
| "zustand"
|
|
21
|
-
| "jotai";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Event status for visual indicators
|
|
25
|
-
*/
|
|
26
|
-
export type EventStatus = "success" | "error" | "pending" | "neutral";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Unified event structure for the timeline
|
|
30
|
-
*/
|
|
31
|
-
export interface UnifiedEvent {
|
|
32
|
-
/** Unique identifier (source-prefixed) */
|
|
33
|
-
id: string;
|
|
34
|
-
|
|
35
|
-
/** Which DevTool this event came from */
|
|
36
|
-
source: EventSource;
|
|
37
|
-
|
|
38
|
-
/** Unix timestamp in milliseconds */
|
|
39
|
-
timestamp: number;
|
|
40
|
-
|
|
41
|
-
/** Primary display text (e.g., "setItem", "user/login/fulfilled") */
|
|
42
|
-
title: string;
|
|
43
|
-
|
|
44
|
-
/** Secondary display text (e.g., "auth_token", "2.5ms") */
|
|
45
|
-
subtitle: string;
|
|
46
|
-
|
|
47
|
-
/** Status for color coding */
|
|
48
|
-
status: EventStatus;
|
|
49
|
-
|
|
50
|
-
/** Original event data for detail view */
|
|
51
|
-
originalEvent: unknown;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Correlation ID for linking related events together.
|
|
55
|
-
* - React Query: queryHash for queries, mutationId for mutations
|
|
56
|
-
* - Redux: requestId for async thunks
|
|
57
|
-
* - Network: request ID
|
|
58
|
-
*/
|
|
59
|
-
correlationId?: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Sequence number within a correlation group (e.g., 1 for start, 2 for success/error)
|
|
63
|
-
*/
|
|
64
|
-
sequenceInGroup?: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Filter state for the event list
|
|
69
|
-
*/
|
|
70
|
-
export interface EventFilter {
|
|
71
|
-
/** Which sources to show */
|
|
72
|
-
enabledSources: Set<EventSource>;
|
|
73
|
-
|
|
74
|
-
/** Text search */
|
|
75
|
-
searchText: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Source metadata for filter badges
|
|
80
|
-
*/
|
|
81
|
-
export interface SourceInfo {
|
|
82
|
-
source: EventSource;
|
|
83
|
-
label: string;
|
|
84
|
-
color: string;
|
|
85
|
-
icon: string;
|
|
86
|
-
count: number;
|
|
87
|
-
/** Whether this source is currently enabled (listening and showing events) */
|
|
88
|
-
enabled?: boolean;
|
|
89
|
-
/** Number of subscribers to this source's event store (for debugging) */
|
|
90
|
-
subscriberCount?: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Event listener callback
|
|
95
|
-
*/
|
|
96
|
-
export type UnifiedEventListener = (events: UnifiedEvent[]) => void;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Copy settings exports
|
|
100
|
-
*/
|
|
101
|
-
export * from "./copySettings";
|