@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
package/src/preset.tsx DELETED
@@ -1,57 +0,0 @@
1
- /**
2
- * Pre-configured Events tool for FloatingDevTools
3
- *
4
- * This preset provides a unified event timeline showing events
5
- * from all DevTools sources (Storage, Redux, Network, etc.)
6
- *
7
- * @example
8
- * ```tsx
9
- * import { eventsToolPreset } from '@buoy-gg/events';
10
- *
11
- * const installedApps = [
12
- * eventsToolPreset, // That's it!
13
- * // ...other tools
14
- * ];
15
- * ```
16
- */
17
-
18
- import { EventsIcon, EVENTS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
19
- import { EventsModal } from "./components/EventsModal";
20
-
21
- /**
22
- * Pre-configured Events tool for FloatingDevTools.
23
- * Shows a unified timeline of events from all sources:
24
- * - AsyncStorage operations
25
- * - MMKV operations (coming soon)
26
- * - Redux actions (coming soon)
27
- * - Network requests (coming soon)
28
- * - React Query events (coming soon)
29
- */
30
- export const eventsToolPreset = {
31
- id: "events",
32
- name: "EVENTS",
33
- description: "Unified event timeline",
34
- slot: "both" as const,
35
- icon: ({ size, color }: { size: number; color?: string }) => (
36
- <EventsIcon size={size} color={color || EVENTS_ICON_COLOR} />
37
- ),
38
- component: EventsModal,
39
- props: {
40
- enableSharedModalDimensions: false,
41
- },
42
- };
43
-
44
- /**
45
- * Create a custom Events tool configuration.
46
- * Use this if you want to override default settings.
47
- */
48
- export function createEventsTool(options: {
49
- name?: string;
50
- description?: string;
51
- } = {}) {
52
- return {
53
- ...eventsToolPreset,
54
- name: options.name ?? eventsToolPreset.name,
55
- description: options.description ?? eventsToolPreset.description,
56
- };
57
- }
@@ -1,25 +0,0 @@
1
- import type { EventSource } from "../types";
2
-
3
- /**
4
- * Map an event source (the granular UI badge identity) to its parent discovery
5
- * ID (the key used by unifiedEventStore's source subscriptions). Several event
6
- * sources can share one discovery source — e.g. storage-async + storage-mmkv
7
- * both come from the "storage" discovery source, and the react-query family all
8
- * map to "react-query".
9
- *
10
- * Shared by useUnifiedEvents (the on-device consumer) and unifiedEventStore's
11
- * remote-consumer channel so the mapping lives in exactly one place.
12
- */
13
- export const EVENT_SOURCE_TO_DISCOVERY_ID: Record<EventSource, string> = {
14
- "storage-async": "storage",
15
- "storage-mmkv": "storage",
16
- redux: "redux",
17
- network: "network",
18
- "react-query": "react-query",
19
- "react-query-query": "react-query",
20
- "react-query-mutation": "react-query",
21
- route: "route-events",
22
- zustand: "zustand",
23
- jotai: "jotai",
24
- render: "render",
25
- };