@overdoser/react-toolkit 0.9.0 → 0.11.0

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.
@@ -54,9 +54,13 @@ export interface TraceTimelineClasses {
54
54
  summary: string;
55
55
  search: string;
56
56
  drawer: string;
57
+ log: string;
58
+ rail: string;
57
59
  tooltip: string;
58
60
  footnote: string;
59
61
  }
62
+ /** Which right-side drawer is docked open (`null` = none). */
63
+ export type TraceTimelineDock = 'details' | 'log' | null;
60
64
  /** Context handed to the TraceTimeline render-prop slots. */
61
65
  export interface TraceTimelineItemContext {
62
66
  /** Resolved service color. */
@@ -114,24 +118,46 @@ export interface TraceTimelineProps {
114
118
  /** Colored dot + name legend for the services present. @default true */
115
119
  showLegend?: boolean;
116
120
  /**
117
- * Dense one-line-per-event summary panel beside the timeline: all events
118
- * numbered chronologically from `01`, a highlight band over the events
119
- * currently visible in the viewport (auto-follows drag-panning), and
120
- * click-to-navigate — the timeline smooth-scrolls (~1s, decelerating) to
121
- * center the picked event. The panel scrolls independently.
122
- * @default false
121
+ * Dense one-line-per-event summary panel: all events numbered
122
+ * chronologically from `01`, a highlight band over the events currently
123
+ * visible in the viewport (auto-follows drag-panning), and
124
+ * click-to-navigate — picking a row selects the event and smooth-scrolls
125
+ * the timeline (~1s, decelerating) to center it (and scrolls the full-log
126
+ * drawer to its entry when that is open). The panel scrolls independently.
127
+ * @default true
123
128
  */
124
129
  showSummary?: boolean;
125
130
  /**
126
- * Where the summary panel sits: docked `'left'`/`'right'` of the timeline,
131
+ * Where the summary panel sits: `'bubble'` — a collapsed pill anchored
132
+ * bottom-left of the timeline that expands in place into a draggable panel
133
+ * (collapsing snaps it back to its corner) — docked `'left'`/`'right'`,
127
134
  * full-width `'top'`/`'bottom'`, or `'floating'` — a draggable palette over
128
- * the timeline, grabbed by its header. @default 'left'
135
+ * the timeline, grabbed by its header. @default 'bubble'
129
136
  */
130
137
  summaryPlacement?: TimelineSummaryPlacement;
131
138
  /** Floating summary: initial offset from the component's top-left corner. */
132
139
  summaryDefaultPosition?: DraggablePosition;
140
+ /**
141
+ * Sticky icon rail on the far right with two toggles docking a drawer
142
+ * beside the timeline: *Event details* (the request/response panel, with an
143
+ * empty state until an event is picked) and *Full log* (every event
144
+ * vertically with payloads and copy buttons). One drawer at a time; nothing
145
+ * is docked initially, but clicking an event opens the details drawer.
146
+ * With `false`, the rail and full log disappear and the details panel
147
+ * simply opens/closes with the selection. @default true
148
+ */
149
+ showDock?: boolean;
150
+ /** Drawer docked open initially (uncontrolled). @default null */
151
+ defaultDock?: TraceTimelineDock;
133
152
  /** Max height of the scrollable canvas. @default '80vh' */
134
153
  maxHeight?: number | string;
154
+ /**
155
+ * Minimum height of the event band, px (the sticky axis adds its 68px on
156
+ * top). Sparse traces stretch to it with the bar band kept vertically
157
+ * centered; dense traces still grow past it when their chip rows need
158
+ * more room. @default 420
159
+ */
160
+ minHeight?: number;
135
161
  /** Controlled id of the event open in the detail panel (`null` = closed). */
136
162
  selectedEventId?: string | null;
137
163
  /** Initially open event (uncontrolled). */
@@ -165,7 +191,12 @@ export interface TraceTimelineProps {
165
191
  * axis with cursor timestamp chip, day-change date labels and a sticky
166
192
  * current-date marker; wheel-zoom, drag-pan, fit-to-width; keyword
167
193
  * highlighting; in-flight events render dashed with a "now" line and grow
168
- * live; clicking opens a request/response detail side panel.
194
+ * live. A right-side icon rail docks one drawer at a time: *Event details*
195
+ * (the request/response panel, opened by clicking an event) or *Full log*
196
+ * (every event vertically with copy-to-clipboard payloads, kept in sync with
197
+ * timeline clicks both ways). An events-summary bubble sits bottom-left,
198
+ * expanding into a draggable panel that bands the events currently in view
199
+ * and navigates on click.
169
200
  *
170
201
  * @example
171
202
  * ```tsx