@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.
- package/lib/commonjs/components/EventsCopySettingsView.js +15 -1
- package/lib/commonjs/components/EventsCopySettingsView.js.map +1 -1
- package/lib/commonjs/components/EventsModal.js +28 -7
- package/lib/commonjs/components/EventsModal.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventDetail.js +23 -3
- package/lib/commonjs/components/UnifiedEventDetail.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventFilters.js +15 -0
- package/lib/commonjs/components/UnifiedEventFilters.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventItem.js +23 -6
- package/lib/commonjs/components/UnifiedEventItem.js.map +1 -1
- package/lib/commonjs/components/UnifiedEventList.js +13 -1
- package/lib/commonjs/components/UnifiedEventList.js.map +1 -1
- package/lib/commonjs/hooks/useUnifiedEvents.js +118 -117
- package/lib/commonjs/hooks/useUnifiedEvents.js.map +1 -1
- package/lib/commonjs/index.js +25 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stores/unifiedEventStore.js +57 -3
- package/lib/commonjs/stores/unifiedEventStore.js.map +1 -1
- package/lib/commonjs/utils/autoDiscoverEventSources.js +54 -0
- package/lib/commonjs/utils/autoDiscoverEventSources.js.map +1 -1
- package/lib/commonjs/utils/badgeSelectionStorage.js +36 -0
- package/lib/commonjs/utils/badgeSelectionStorage.js.map +1 -1
- package/lib/commonjs/utils/testIDs.js +91 -0
- package/lib/commonjs/utils/testIDs.js.map +1 -0
- package/lib/module/components/EventsCopySettingsView.js +15 -1
- package/lib/module/components/EventsCopySettingsView.js.map +1 -1
- package/lib/module/components/EventsModal.js +30 -8
- package/lib/module/components/EventsModal.js.map +1 -1
- package/lib/module/components/UnifiedEventDetail.js +23 -3
- package/lib/module/components/UnifiedEventDetail.js.map +1 -1
- package/lib/module/components/UnifiedEventFilters.js +15 -0
- package/lib/module/components/UnifiedEventFilters.js.map +1 -1
- package/lib/module/components/UnifiedEventItem.js +23 -6
- package/lib/module/components/UnifiedEventItem.js.map +1 -1
- package/lib/module/components/UnifiedEventList.js +13 -1
- package/lib/module/components/UnifiedEventList.js.map +1 -1
- package/lib/module/hooks/useUnifiedEvents.js +120 -119
- package/lib/module/hooks/useUnifiedEvents.js.map +1 -1
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stores/unifiedEventStore.js +54 -1
- package/lib/module/stores/unifiedEventStore.js.map +1 -1
- package/lib/module/utils/autoDiscoverEventSources.js +54 -0
- package/lib/module/utils/autoDiscoverEventSources.js.map +1 -1
- package/lib/module/utils/badgeSelectionStorage.js +34 -0
- package/lib/module/utils/badgeSelectionStorage.js.map +1 -1
- package/lib/module/utils/testIDs.js +83 -0
- package/lib/module/utils/testIDs.js.map +1 -0
- package/lib/typescript/components/EventsCopySettingsView.d.ts.map +1 -1
- package/lib/typescript/components/EventsModal.d.ts.map +1 -1
- package/lib/typescript/components/UnifiedEventDetail.d.ts.map +1 -1
- package/lib/typescript/components/UnifiedEventFilters.d.ts.map +1 -1
- package/lib/typescript/components/UnifiedEventItem.d.ts.map +1 -1
- package/lib/typescript/components/UnifiedEventList.d.ts.map +1 -1
- package/lib/typescript/hooks/useUnifiedEvents.d.ts +10 -1
- package/lib/typescript/hooks/useUnifiedEvents.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/stores/unifiedEventStore.d.ts +13 -0
- package/lib/typescript/stores/unifiedEventStore.d.ts.map +1 -1
- package/lib/typescript/utils/autoDiscoverEventSources.d.ts.map +1 -1
- package/lib/typescript/utils/badgeSelectionStorage.d.ts +9 -0
- package/lib/typescript/utils/badgeSelectionStorage.d.ts.map +1 -1
- package/lib/typescript/utils/testIDs.d.ts +45 -0
- package/lib/typescript/utils/testIDs.d.ts.map +1 -0
- 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/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
|
-
}
|
package/src/sources/sourceIds.ts
DELETED
|
@@ -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
|
-
};
|