@buoy-gg/events 7.0.30 → 7.0.32
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 +29 -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 +119 -160
- package/lib/commonjs/hooks/useUnifiedEvents.js.map +1 -1
- package/lib/commonjs/index.js +44 -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/eventVisibility.js +76 -0
- package/lib/commonjs/utils/eventVisibility.js.map +1 -0
- 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 +32 -9
- 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 +122 -163
- package/lib/module/hooks/useUnifiedEvents.js.map +1 -1
- package/lib/module/index.js +11 -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/eventVisibility.js +70 -0
- package/lib/module/utils/eventVisibility.js.map +1 -0
- 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 +2 -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/eventVisibility.d.ts +34 -0
- package/lib/typescript/utils/eventVisibility.d.ts.map +1 -0
- package/lib/typescript/utils/testIDs.d.ts +45 -0
- package/lib/typescript/utils/testIDs.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -16,6 +16,7 @@ export type { OptionalDetailComponents } from "./components/UnifiedEventDetail";
|
|
|
16
16
|
export { eventsSyncAdapter } from "./sync/eventsSyncAdapter";
|
|
17
17
|
export { useUnifiedEvents } from "./hooks/useUnifiedEvents";
|
|
18
18
|
export type { UseUnifiedEventsResult } from "./hooks/useUnifiedEvents";
|
|
19
|
+
export { isBuoyInternalEvent, isNetworkEventIgnored, isEventHiddenFromTool, } from "./utils/eventVisibility";
|
|
19
20
|
export type { UnifiedEvent, EventSource, EventStatus, EventFilter, SourceInfo, UnifiedEventListener, EventsCopySettings, CopyPresetName, } from "./types";
|
|
20
21
|
export { DEFAULT_COPY_SETTINGS, COPY_PRESETS, PRESET_METADATA, detectActivePreset, } from "./types/copySettings";
|
|
21
22
|
export { UnifiedEventItem } from "./components/UnifiedEventItem";
|
|
@@ -24,6 +25,7 @@ export { UnifiedEventFilters } from "./components/UnifiedEventFilters";
|
|
|
24
25
|
export { UnifiedEventDetail } from "./components/UnifiedEventDetail";
|
|
25
26
|
export { ReactQueryEventDetail } from "./components/ReactQueryEventDetail";
|
|
26
27
|
export { EventsCopySettingsView } from "./components/EventsCopySettingsView";
|
|
28
|
+
export { EVENTS_TEST_ID, eventRowTestID, eventFilterTestID, eventIdentity, } from "./utils/testIDs";
|
|
27
29
|
export { findRelatedEvents, hasRelatedEvents, getRelatedEventsCount, buildCorrelationCountMap, getCorrelationGroup, getCorrelationLabel, getCorrelationColor, } from "./utils/correlationUtils";
|
|
28
30
|
export { generateExport, generateMarkdownExport, generateJsonExport, generatePlaintextExport, generateMermaidExport, estimateExportSize, getExportSummary, filterEvents, } from "./utils/eventExportFormatter";
|
|
29
31
|
export type { ExportSummary } from "./utils/eventExportFormatter";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAKhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAKhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAKjC,YAAY,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,MAAM,SAAS,CAAC;AAKjB,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAK7E,OAAO,EACL,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,aAAa,GACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAKlE,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AAOrC;6EAC6E;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -16,6 +16,8 @@ declare class UnifiedEventStore {
|
|
|
16
16
|
private remoteAvailableSources;
|
|
17
17
|
private sourceUnsubscribers;
|
|
18
18
|
private remoteDiscoveryIds;
|
|
19
|
+
private localDiscoveryIds;
|
|
20
|
+
private localSyncChain;
|
|
19
21
|
private networkEventIdMap;
|
|
20
22
|
/**
|
|
21
23
|
* Get all discovered event sources
|
|
@@ -160,6 +162,16 @@ declare class UnifiedEventStore {
|
|
|
160
162
|
* Unsubscribe from all sources
|
|
161
163
|
*/
|
|
162
164
|
unsubscribeAll(): void;
|
|
165
|
+
/**
|
|
166
|
+
* On-device consumer channel: useUnifiedEvents declares which event sources
|
|
167
|
+
* it wants captured (its enabled sources while capture is on, [] while it is
|
|
168
|
+
* off). Diffed against the local ledger so repeated declarations are
|
|
169
|
+
* idempotent — remounting the tool or enabling two sources that share a
|
|
170
|
+
* discovery source (react-query-query + react-query-mutation) never stacks
|
|
171
|
+
* refs the power toggle can't release. Ref-counting in the store still keeps
|
|
172
|
+
* a watching dashboard's subscriptions alive independently.
|
|
173
|
+
*/
|
|
174
|
+
setLocalEnabledSources(sources: EventSource[]): Promise<void>;
|
|
163
175
|
/**
|
|
164
176
|
* Remote-consumer channel: the dashboard sync adapter declares which event
|
|
165
177
|
* sources it wants the device to capture. Diffed against the previous remote
|
|
@@ -221,6 +233,7 @@ export declare const getEventCount: () => number;
|
|
|
221
233
|
export declare const isSourceSubscribed: (source: EventSource) => boolean;
|
|
222
234
|
export declare const getSubscriptionStatus: () => Record<EventSource, boolean>;
|
|
223
235
|
export declare const unsubscribeAll: () => void;
|
|
236
|
+
export declare const setLocalEnabledSources: (sources: EventSource[]) => Promise<void>;
|
|
224
237
|
export declare const getDiscoveredSources: () => DiscoveredEventSource[];
|
|
225
238
|
export declare const getAvailableEventSources: () => Set<EventSource>;
|
|
226
239
|
export declare const subscribeToAll: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unifiedEventStore.d.ts","sourceRoot":"","sources":["../../../src/stores/unifiedEventStore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAChC,MA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wBAAwB,IAAI,eAAe,CAyB1D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAgBA;AAKD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAKpD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAMD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,0BAA0B,CAwD1E"}
|
|
@@ -27,4 +27,13 @@ export declare function saveCapturingState(isCapturing: boolean): Promise<void>;
|
|
|
27
27
|
* Returns null if no saved state exists (defaults to true on first load)
|
|
28
28
|
*/
|
|
29
29
|
export declare function loadCapturingState(): Promise<boolean | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Persist the moment capture was switched off (ms epoch), or clear it on
|
|
32
|
+
* resume. Kept beside the capturing flag so a remount or relaunch while paused
|
|
33
|
+
* hides events captured into the shared store since the ORIGINAL pause press,
|
|
34
|
+
* not merely since the tool was reopened.
|
|
35
|
+
*/
|
|
36
|
+
export declare function savePausedAt(pausedAt: number | null): Promise<void>;
|
|
37
|
+
/** The persisted pause moment, or null when capture is not paused. */
|
|
38
|
+
export declare function loadPausedAt(): Promise<number | null>;
|
|
30
39
|
//# sourceMappingURL=badgeSelectionStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badgeSelectionStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/badgeSelectionStorage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAO9E;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,CAYxE;AAED;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAOzD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAYlE"}
|
|
1
|
+
{"version":3,"file":"badgeSelectionStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/badgeSelectionStorage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAO9E;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,CAYxE;AAED;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAOzD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAYlE;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAWzE;AAED,sEAAsE;AACtE,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAY3D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which unified events the Events tool refuses to show, as PURE predicates.
|
|
3
|
+
*
|
|
4
|
+
* These used to live inside `useUnifiedEvents`, which meant the only way to
|
|
5
|
+
* learn "would the tool display this event?" was to render the tool. The
|
|
6
|
+
* desktop Workbench sidebar needs exactly that answer without rendering
|
|
7
|
+
* anything — its per-tool status badge counts events straight off the synced
|
|
8
|
+
* snapshot — and counting the raw snapshot made the badge advertise events
|
|
9
|
+
* that no panel would ever list (an ignored host still ticking up a red ✕).
|
|
10
|
+
*
|
|
11
|
+
* So the rules live here, and both the tool and the sidebar read them.
|
|
12
|
+
*/
|
|
13
|
+
import { type IgnoredPattern } from "@buoy-gg/shared-ui";
|
|
14
|
+
import type { UnifiedEvent } from "../types";
|
|
15
|
+
/**
|
|
16
|
+
* Check if an event is generated by Buoy's own dev tools (internal housekeeping).
|
|
17
|
+
* These are filtered out by default so users only see their app's events.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isBuoyInternalEvent(event: UnifiedEvent): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Check whether a network event should be hidden because its URL matches one of
|
|
22
|
+
* the user's shared ignored-domain/URL patterns (the same store the Network tool
|
|
23
|
+
* writes to). Non-network events are never affected.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isNetworkEventIgnored(event: UnifiedEvent, ignoredPatterns: readonly IgnoredPattern[]): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Everything the Events tool declines to report on, in one predicate: Buoy's
|
|
28
|
+
* own housekeeping plus the shared ignored-URL patterns. This is hiding the
|
|
29
|
+
* user has no affordance to undo — unlike the source badges and the search box
|
|
30
|
+
* — so anything counting events for display (a header stat, a sidebar badge)
|
|
31
|
+
* must exclude these or it advertises rows that cannot be reached.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isEventHiddenFromTool(event: UnifiedEvent, ignoredPatterns: readonly IgnoredPattern[]): boolean;
|
|
34
|
+
//# sourceMappingURL=eventVisibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventVisibility.d.ts","sourceRoot":"","sources":["../../../src/utils/eventVisibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAsC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK7C;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAwBhE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,SAAS,cAAc,EAAE,GACzC,OAAO,CAIT;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,SAAS,cAAc,EAAE,GACzC,OAAO,CAET"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Events tool test handles.
|
|
3
|
+
*
|
|
4
|
+
* Every tappable and every value the e2e suites read back is addressed
|
|
5
|
+
* `buoy-events-<thing>`. Two rules make this file necessary rather than a
|
|
6
|
+
* convention:
|
|
7
|
+
*
|
|
8
|
+
* 1. **Rows are built by other packages.** A storage row is `StorageEventCard`,
|
|
9
|
+
* a network row is `NetworkEventItemCompact`, and so on — the events tool
|
|
10
|
+
* only wraps them. So the row's handle has to be attached by the wrapper,
|
|
11
|
+
* from the event, which is what `eventRowTestID` is for.
|
|
12
|
+
* 2. **A row's handle must survive the row updating.** A network event is
|
|
13
|
+
* re-emitted when the request completes and REPLACES its row in place, and
|
|
14
|
+
* both its subtitle (status · duration) and its relative timestamp move on
|
|
15
|
+
* their own. Anything derived from what the row renders would therefore
|
|
16
|
+
* change under the test; the identity below is read from `originalEvent`,
|
|
17
|
+
* which is the request itself.
|
|
18
|
+
*
|
|
19
|
+
* The e2e suite mirrors these rules in CommonJS
|
|
20
|
+
* (`example-dev-build/utils/eventsBench.js`) and asserts the two agree.
|
|
21
|
+
*/
|
|
22
|
+
import type { EventSource, UnifiedEvent } from "../types";
|
|
23
|
+
/** Prefix every handle in this tool shares. */
|
|
24
|
+
export declare const EVENTS_TEST_ID = "buoy-events";
|
|
25
|
+
/** `Set Item` → `set-item`. Shared with every other Buoy tool's slug rule. */
|
|
26
|
+
export declare function slugForTestID(value: unknown): string;
|
|
27
|
+
/**
|
|
28
|
+
* What a row is ABOUT, per source — the part a person would use to name it.
|
|
29
|
+
*
|
|
30
|
+
* The title alone is not enough for two sources: every AsyncStorage write is
|
|
31
|
+
* titled "Set Item" (the key is the subtitle), and a React Query entry emits a
|
|
32
|
+
* start and a settle event under one key. Both get their discriminator here.
|
|
33
|
+
*/
|
|
34
|
+
export declare function eventIdentity(event: UnifiedEvent): string;
|
|
35
|
+
/**
|
|
36
|
+
* Handle for one row of the timeline: `buoy-events-row-network-get-pokemon-1`.
|
|
37
|
+
*
|
|
38
|
+
* Deliberately NOT positional. Rows arrive at the head of the list, so an index
|
|
39
|
+
* names a different event the moment anything else in the app emits — including
|
|
40
|
+
* between the read and the tap.
|
|
41
|
+
*/
|
|
42
|
+
export declare function eventRowTestID(event: UnifiedEvent): string;
|
|
43
|
+
/** Handle for a source filter chip: `buoy-events-filter-storage-async`. */
|
|
44
|
+
export declare function eventFilterTestID(source: EventSource): string;
|
|
45
|
+
//# sourceMappingURL=testIDs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIDs.d.ts","sourceRoot":"","sources":["../../../src/utils/testIDs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1D,+CAA+C;AAC/C,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAOpD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAiCzD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAI1D;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAE7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/events",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.32",
|
|
4
4
|
"description": "One timeline across every Buoy devtool, with LLM-ready export presets. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/
|
|
30
|
-
"@buoy-gg/
|
|
29
|
+
"@buoy-gg/floating-tools-core": "^7.0.32",
|
|
30
|
+
"@buoy-gg/shared-ui": "^7.0.32"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "*",
|