@buoy-gg/events 7.0.29 → 7.0.31

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.
Files changed (89) hide show
  1. package/lib/commonjs/components/EventsCopySettingsView.js +15 -1
  2. package/lib/commonjs/components/EventsCopySettingsView.js.map +1 -1
  3. package/lib/commonjs/components/EventsModal.js +28 -7
  4. package/lib/commonjs/components/EventsModal.js.map +1 -1
  5. package/lib/commonjs/components/UnifiedEventDetail.js +23 -3
  6. package/lib/commonjs/components/UnifiedEventDetail.js.map +1 -1
  7. package/lib/commonjs/components/UnifiedEventFilters.js +15 -0
  8. package/lib/commonjs/components/UnifiedEventFilters.js.map +1 -1
  9. package/lib/commonjs/components/UnifiedEventItem.js +23 -6
  10. package/lib/commonjs/components/UnifiedEventItem.js.map +1 -1
  11. package/lib/commonjs/components/UnifiedEventList.js +13 -1
  12. package/lib/commonjs/components/UnifiedEventList.js.map +1 -1
  13. package/lib/commonjs/hooks/useUnifiedEvents.js +118 -117
  14. package/lib/commonjs/hooks/useUnifiedEvents.js.map +1 -1
  15. package/lib/commonjs/index.js +25 -0
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/stores/unifiedEventStore.js +57 -3
  18. package/lib/commonjs/stores/unifiedEventStore.js.map +1 -1
  19. package/lib/commonjs/utils/autoDiscoverEventSources.js +54 -0
  20. package/lib/commonjs/utils/autoDiscoverEventSources.js.map +1 -1
  21. package/lib/commonjs/utils/badgeSelectionStorage.js +36 -0
  22. package/lib/commonjs/utils/badgeSelectionStorage.js.map +1 -1
  23. package/lib/commonjs/utils/testIDs.js +91 -0
  24. package/lib/commonjs/utils/testIDs.js.map +1 -0
  25. package/lib/module/components/EventsCopySettingsView.js +15 -1
  26. package/lib/module/components/EventsCopySettingsView.js.map +1 -1
  27. package/lib/module/components/EventsModal.js +30 -8
  28. package/lib/module/components/EventsModal.js.map +1 -1
  29. package/lib/module/components/UnifiedEventDetail.js +23 -3
  30. package/lib/module/components/UnifiedEventDetail.js.map +1 -1
  31. package/lib/module/components/UnifiedEventFilters.js +15 -0
  32. package/lib/module/components/UnifiedEventFilters.js.map +1 -1
  33. package/lib/module/components/UnifiedEventItem.js +23 -6
  34. package/lib/module/components/UnifiedEventItem.js.map +1 -1
  35. package/lib/module/components/UnifiedEventList.js +13 -1
  36. package/lib/module/components/UnifiedEventList.js.map +1 -1
  37. package/lib/module/hooks/useUnifiedEvents.js +120 -119
  38. package/lib/module/hooks/useUnifiedEvents.js.map +1 -1
  39. package/lib/module/index.js +5 -0
  40. package/lib/module/index.js.map +1 -1
  41. package/lib/module/stores/unifiedEventStore.js +54 -1
  42. package/lib/module/stores/unifiedEventStore.js.map +1 -1
  43. package/lib/module/utils/autoDiscoverEventSources.js +54 -0
  44. package/lib/module/utils/autoDiscoverEventSources.js.map +1 -1
  45. package/lib/module/utils/badgeSelectionStorage.js +34 -0
  46. package/lib/module/utils/badgeSelectionStorage.js.map +1 -1
  47. package/lib/module/utils/testIDs.js +83 -0
  48. package/lib/module/utils/testIDs.js.map +1 -0
  49. package/lib/typescript/components/EventsCopySettingsView.d.ts.map +1 -1
  50. package/lib/typescript/components/EventsModal.d.ts.map +1 -1
  51. package/lib/typescript/components/UnifiedEventDetail.d.ts.map +1 -1
  52. package/lib/typescript/components/UnifiedEventFilters.d.ts.map +1 -1
  53. package/lib/typescript/components/UnifiedEventItem.d.ts.map +1 -1
  54. package/lib/typescript/components/UnifiedEventList.d.ts.map +1 -1
  55. package/lib/typescript/hooks/useUnifiedEvents.d.ts +10 -1
  56. package/lib/typescript/hooks/useUnifiedEvents.d.ts.map +1 -1
  57. package/lib/typescript/index.d.ts +1 -0
  58. package/lib/typescript/index.d.ts.map +1 -1
  59. package/lib/typescript/stores/unifiedEventStore.d.ts +13 -0
  60. package/lib/typescript/stores/unifiedEventStore.d.ts.map +1 -1
  61. package/lib/typescript/utils/autoDiscoverEventSources.d.ts.map +1 -1
  62. package/lib/typescript/utils/badgeSelectionStorage.d.ts +9 -0
  63. package/lib/typescript/utils/badgeSelectionStorage.d.ts.map +1 -1
  64. package/lib/typescript/utils/testIDs.d.ts +45 -0
  65. package/lib/typescript/utils/testIDs.d.ts.map +1 -0
  66. package/package.json +7 -8
  67. package/src/components/EventsCopySettingsView.tsx +0 -781
  68. package/src/components/EventsModal.tsx +0 -537
  69. package/src/components/ReactQueryEventDetail.tsx +0 -418
  70. package/src/components/UnifiedEventDetail.tsx +0 -596
  71. package/src/components/UnifiedEventFilters.tsx +0 -226
  72. package/src/components/UnifiedEventItem.tsx +0 -467
  73. package/src/components/UnifiedEventList.tsx +0 -216
  74. package/src/components/UnifiedEventViewer.tsx +0 -133
  75. package/src/hooks/useUnifiedEvents.ts +0 -573
  76. package/src/index.tsx +0 -128
  77. package/src/preset.tsx +0 -57
  78. package/src/sources/sourceIds.ts +0 -25
  79. package/src/stores/unifiedEventStore.ts +0 -686
  80. package/src/sync/__tests__/eventsSyncAdapter.test.ts +0 -471
  81. package/src/sync/eventsSyncAdapter.ts +0 -391
  82. package/src/types/copySettings.ts +0 -299
  83. package/src/types/index.ts +0 -101
  84. package/src/utils/autoDiscoverEventSources.ts +0 -1087
  85. package/src/utils/badgeSelectionStorage.ts +0 -81
  86. package/src/utils/copySettingsStorage.ts +0 -61
  87. package/src/utils/correlationUtils.ts +0 -146
  88. package/src/utils/eventExportFormatter.ts +0 -2066
  89. package/src/utils/eventTransformers.ts +0 -567
@@ -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";