@overdoser/react-toolkit 0.21.0 → 0.22.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.
- package/AGENTS.md +1 -0
- package/CHANGELOG.md +27 -0
- package/components/Accordion/Accordion.js +48 -48
- package/components/ActionButton/ActionButton.js +23 -23
- package/components/ActionButton/CopyButton.js +5 -5
- package/components/Alert/Alert.js +13 -13
- package/components/Avatar/Avatar.js +12 -12
- package/components/Badge/Badge.js +6 -6
- package/components/Breadcrumbs/Breadcrumbs.js +15 -15
- package/components/Button/Button.js +14 -14
- package/components/Card/Card.js +26 -26
- package/components/Chart/AreaChart.js +103 -103
- package/components/Chart/Axis.js +7 -7
- package/components/Chart/BarChart.js +62 -62
- package/components/Chart/ChartContainer.js +11 -11
- package/components/Chart/ChartLegend.js +7 -7
- package/components/Chart/ChartTooltip.js +13 -13
- package/components/Chart/LineChart.js +88 -88
- package/components/Chart/PieChart.js +25 -25
- package/components/Chart/RadarChart.js +42 -42
- package/components/Chart/Sparkline.js +11 -11
- package/components/Chart/TradingChart.js +126 -126
- package/components/Chart/trading/period.js +3 -3
- package/components/Chip/Chip.js +24 -24
- package/components/CodeBlock/CodeBlock.js +31 -31
- package/components/CommandPalette/CommandPalette.js +166 -166
- package/components/ConfirmDialog/ConfirmDialog.js +60 -60
- package/components/Divider/Divider.js +10 -10
- package/components/Draggable/Draggable.js +29 -29
- package/components/Drawer/Drawer.js +53 -53
- package/components/Dropdown/Dropdown.js +66 -66
- package/components/Dropdown/DropdownItem.js +13 -13
- package/components/Dropdown/DropdownLabel.js +5 -5
- package/components/Dropdown/DropdownSeparator.js +5 -5
- package/components/Dropzone/Dropzone.js +15 -15
- package/components/EmptyState/EmptyState.js +11 -11
- package/components/Form/Form.js +17 -17
- package/components/Form/FormField.js +21 -21
- package/components/Form/FormRow.js +3 -3
- package/components/ImageViewer/ImageViewer.js +118 -118
- package/components/Kbd/Kbd.js +11 -11
- package/components/KeyValueList/KeyValueList.js +32 -32
- package/components/Link/Link.js +7 -7
- package/components/List/List.js +7 -7
- package/components/Loader/Loader.js +39 -39
- package/components/Modal/Modal.js +48 -48
- package/components/PageHeader/PageHeader.js +18 -18
- package/components/Pagination/Pagination.js +23 -23
- package/components/Popover/Popover.js +25 -25
- package/components/ProgressBar/ProgressBar.js +17 -17
- package/components/RelativeTime/RelativeTime.js +10 -10
- package/components/SegmentedControl/SegmentedControl.js +38 -38
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Spinner/Spinner.js +7 -7
- package/components/SplitButton/SplitButton.js +63 -63
- package/components/SplitPane/SplitPane.js +50 -50
- package/components/StatCard/StatCard.js +32 -32
- package/components/StatusDot/StatusDot.js +7 -7
- package/components/Table/Table.js +174 -174
- package/components/Tabs/Tabs.js +47 -47
- package/components/ThemeToggle/ThemeToggle.js +31 -31
- package/components/Timeline/GanttTimeline.js +213 -213
- package/components/Timeline/HistoryTimeline.js +306 -306
- package/components/Timeline/TimelineShared.js +103 -103
- package/components/Timeline/TraceEventDetails.js +103 -103
- package/components/Timeline/TraceTimeline.js +546 -546
- package/components/Timeline/historyLayout.js +2 -2
- package/components/Timer/Timer.js +39 -39
- package/components/Toast/Toast.js +59 -59
- package/components/ToggleIconButton/ToggleIconButton.js +9 -9
- package/components/Tooltip/Tooltip.js +16 -16
- package/components/Typography/Typography.js +5 -5
- package/components/inputs/Checkbox/Checkbox.js +11 -11
- package/components/inputs/Checkbox/CheckboxGroup.js +21 -21
- package/components/inputs/DatePicker/CalendarPanel.js +113 -113
- package/components/inputs/DatePicker/DatePicker.js +39 -39
- package/components/inputs/DateTimePicker/DateTimePicker.js +119 -119
- package/components/inputs/DateTimePicker/DateTimeSegments.js +40 -40
- package/components/inputs/DateTimePicker/TimeField.js +34 -34
- package/components/inputs/Input/Input.js +13 -13
- package/components/inputs/NumberInput/NumberInput.js +16 -16
- package/components/inputs/Radio/Radio.js +17 -17
- package/components/inputs/SearchInput/SearchInput.js +25 -25
- package/components/inputs/Select/Select.d.ts +55 -3
- package/components/inputs/Select/Select.js +485 -344
- package/components/inputs/Select/{Select.module.js → Select.module.scss.js} +15 -3
- package/components/inputs/Slider/Slider.js +21 -21
- package/components/inputs/Switch/Switch.js +4 -4
- package/components/inputs/Textarea/Textarea.js +8 -8
- package/hooks/usePortalPosition.d.ts +2 -1
- package/hooks/usePortalPosition.js +6 -3
- package/hooks/useResizable.js +1 -1
- package/hooks/useTheme.js +7 -7
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +25 -4
- package/manifest.json +33 -4
- package/package.json +1 -1
- /package/components/Accordion/{Accordion.module.js → Accordion.module.scss.js} +0 -0
- /package/components/ActionButton/{ActionButton.module.js → ActionButton.module.scss.js} +0 -0
- /package/components/Alert/{Alert.module.js → Alert.module.scss.js} +0 -0
- /package/components/Avatar/{Avatar.module.js → Avatar.module.scss.js} +0 -0
- /package/components/Badge/{Badge.module.js → Badge.module.scss.js} +0 -0
- /package/components/Breadcrumbs/{Breadcrumbs.module.js → Breadcrumbs.module.scss.js} +0 -0
- /package/components/Button/{Button.module.js → Button.module.scss.js} +0 -0
- /package/components/Card/{Card.module.js → Card.module.scss.js} +0 -0
- /package/components/Chart/{Chart.module.js → Chart.module.scss.js} +0 -0
- /package/components/Chip/{Chip.module.js → Chip.module.scss.js} +0 -0
- /package/components/CodeBlock/{CodeBlock.module.js → CodeBlock.module.scss.js} +0 -0
- /package/components/CommandPalette/{CommandPalette.module.js → CommandPalette.module.scss.js} +0 -0
- /package/components/ConfirmDialog/{ConfirmDialog.module.js → ConfirmDialog.module.scss.js} +0 -0
- /package/components/Divider/{Divider.module.js → Divider.module.scss.js} +0 -0
- /package/components/Draggable/{Draggable.module.js → Draggable.module.scss.js} +0 -0
- /package/components/Drawer/{Drawer.module.js → Drawer.module.scss.js} +0 -0
- /package/components/Dropdown/{Dropdown.module.js → Dropdown.module.scss.js} +0 -0
- /package/components/Dropzone/{Dropzone.module.js → Dropzone.module.scss.js} +0 -0
- /package/components/EmptyState/{EmptyState.module.js → EmptyState.module.scss.js} +0 -0
- /package/components/Form/{Form.module.js → Form.module.scss.js} +0 -0
- /package/components/ImageViewer/{ImageViewer.module.js → ImageViewer.module.scss.js} +0 -0
- /package/components/Kbd/{Kbd.module.js → Kbd.module.scss.js} +0 -0
- /package/components/KeyValueList/{KeyValueList.module.js → KeyValueList.module.scss.js} +0 -0
- /package/components/Link/{Link.module.js → Link.module.scss.js} +0 -0
- /package/components/List/{List.module.js → List.module.scss.js} +0 -0
- /package/components/Loader/{Loader.module.js → Loader.module.scss.js} +0 -0
- /package/components/Modal/{Modal.module.js → Modal.module.scss.js} +0 -0
- /package/components/PageHeader/{PageHeader.module.js → PageHeader.module.scss.js} +0 -0
- /package/components/Pagination/{Pagination.module.js → Pagination.module.scss.js} +0 -0
- /package/components/Popover/{Popover.module.js → Popover.module.scss.js} +0 -0
- /package/components/ProgressBar/{ProgressBar.module.js → ProgressBar.module.scss.js} +0 -0
- /package/components/RelativeTime/{RelativeTime.module.js → RelativeTime.module.scss.js} +0 -0
- /package/components/SegmentedControl/{SegmentedControl.module.js → SegmentedControl.module.scss.js} +0 -0
- /package/components/Skeleton/{Skeleton.module.js → Skeleton.module.scss.js} +0 -0
- /package/components/Spinner/{Spinner.module.js → Spinner.module.scss.js} +0 -0
- /package/components/SplitButton/{SplitButton.module.js → SplitButton.module.scss.js} +0 -0
- /package/components/SplitPane/{SplitPane.module.js → SplitPane.module.scss.js} +0 -0
- /package/components/StatCard/{StatCard.module.js → StatCard.module.scss.js} +0 -0
- /package/components/StatusDot/{StatusDot.module.js → StatusDot.module.scss.js} +0 -0
- /package/components/Table/{Table.module.js → Table.module.scss.js} +0 -0
- /package/components/Tabs/{Tabs.module.js → Tabs.module.scss.js} +0 -0
- /package/components/ThemeToggle/{ThemeToggle.module.js → ThemeToggle.module.scss.js} +0 -0
- /package/components/Timeline/{GanttTimeline.module.js → GanttTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{HistoryTimeline.module.js → HistoryTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{Timeline.module.js → Timeline.module.scss.js} +0 -0
- /package/components/Timeline/{TraceTimeline.module.js → TraceTimeline.module.scss.js} +0 -0
- /package/components/Timer/{Timer.module.js → Timer.module.scss.js} +0 -0
- /package/components/Toast/{Toast.module.js → Toast.module.scss.js} +0 -0
- /package/components/ToggleIconButton/{ToggleIconButton.module.js → ToggleIconButton.module.scss.js} +0 -0
- /package/components/Tooltip/{Tooltip.module.js → Tooltip.module.scss.js} +0 -0
- /package/components/Typography/{Typography.module.js → Typography.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{Checkbox.module.js → Checkbox.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{CheckboxGroup.module.js → CheckboxGroup.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{CalendarPanel.module.js → CalendarPanel.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{DatePicker.module.js → DatePicker.module.scss.js} +0 -0
- /package/components/inputs/DateTimePicker/{DateTimePicker.module.js → DateTimePicker.module.scss.js} +0 -0
- /package/components/inputs/Input/{Input.module.js → Input.module.scss.js} +0 -0
- /package/components/inputs/NumberInput/{NumberInput.module.js → NumberInput.module.scss.js} +0 -0
- /package/components/inputs/Radio/{Radio.module.js → Radio.module.scss.js} +0 -0
- /package/components/inputs/SearchInput/{SearchInput.module.js → SearchInput.module.scss.js} +0 -0
- /package/components/inputs/Slider/{Slider.module.js → Slider.module.scss.js} +0 -0
- /package/components/inputs/Textarea/{Textarea.module.js → Textarea.module.scss.js} +0 -0
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import m from "
|
|
1
|
+
import { forwardRef as e, isValidElement as t } from "react";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import r from "./Timeline.module.scss.js";
|
|
4
|
+
import i from "./TraceTimeline.module.scss.js";
|
|
5
|
+
import { fmtDur as a, fmtISO as o } from "./timelineCore.js";
|
|
6
|
+
import { HighlightText as s } from "./TimelineShared.js";
|
|
7
|
+
import { CopyButton as c } from "../ActionButton/CopyButton.js";
|
|
8
|
+
import { badgeOf as l, extraFieldsOf as u, isInline as d, isRequestEvent as f, routeOf as p, toText as m } from "./traceEvent.js";
|
|
9
9
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
10
|
// src/components/Timeline/TraceEventDetails.tsx
|
|
11
|
-
function v({ event: e, pending:
|
|
12
|
-
let
|
|
13
|
-
return
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
11
|
+
function v({ event: e, pending: t, small: r }) {
|
|
12
|
+
let a = l(e, t);
|
|
13
|
+
return a ? /* @__PURE__ */ g("span", {
|
|
14
|
+
className: n(i.statusBadge, r && i.badgeSm, a.tone === "pending" && i.statusPending, a.tone === "warn" && i.statusWarn, a.tone === "error" && i.statusError),
|
|
15
|
+
children: a.text
|
|
16
16
|
}) : null;
|
|
17
17
|
}
|
|
18
|
-
function y({ field:
|
|
19
|
-
let { label:
|
|
18
|
+
function y({ field: e, query: a, className: o }) {
|
|
19
|
+
let { label: l, value: u, mono: f = !0, copy: p } = e, h = d(u) || u == null || t(u), v = /* @__PURE__ */ g(c, {
|
|
20
20
|
size: "sm",
|
|
21
|
-
className:
|
|
22
|
-
value: () =>
|
|
23
|
-
"aria-label": `Copy ${
|
|
21
|
+
className: i.payloadCopy,
|
|
22
|
+
value: () => m(u),
|
|
23
|
+
"aria-label": `Copy ${l}`
|
|
24
24
|
});
|
|
25
25
|
return /* @__PURE__ */ _("div", {
|
|
26
|
-
className:
|
|
27
|
-
children: [
|
|
28
|
-
className:
|
|
26
|
+
className: n(i.field, !h && i.fieldBlock, o),
|
|
27
|
+
children: [p || !h ? /* @__PURE__ */ _("div", {
|
|
28
|
+
className: i.bodyHead,
|
|
29
29
|
children: [/* @__PURE__ */ g("span", {
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
30
|
+
className: i.fieldLabel,
|
|
31
|
+
children: l
|
|
32
32
|
}), v]
|
|
33
33
|
}) : /* @__PURE__ */ g("span", {
|
|
34
|
-
className:
|
|
35
|
-
children:
|
|
34
|
+
className: i.fieldLabel,
|
|
35
|
+
children: l
|
|
36
36
|
}), h ? /* @__PURE__ */ g("div", {
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
39
|
-
text: String(
|
|
40
|
-
query:
|
|
37
|
+
className: n(i.fieldValue, f && i.fieldMono),
|
|
38
|
+
children: t(u) ? u : u == null || u === "" ? "—" : /* @__PURE__ */ g(s, {
|
|
39
|
+
text: String(u),
|
|
40
|
+
query: a
|
|
41
41
|
})
|
|
42
42
|
}) : /* @__PURE__ */ g("pre", {
|
|
43
|
-
className:
|
|
44
|
-
children:
|
|
43
|
+
className: n(r.asideRaw, i.fieldPre),
|
|
44
|
+
children: m(u)
|
|
45
45
|
})]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function b({ label:
|
|
48
|
+
function b({ label: e, value: t, copyLabel: a, section: o }) {
|
|
49
49
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: i.bodyHead,
|
|
51
51
|
children: [/* @__PURE__ */ g("span", {
|
|
52
|
-
className:
|
|
53
|
-
children:
|
|
54
|
-
}),
|
|
52
|
+
className: n(o ? i.drawerSection : r.asideSection, i.bodyLabel),
|
|
53
|
+
children: e
|
|
54
|
+
}), t != null && /* @__PURE__ */ g(c, {
|
|
55
55
|
size: "sm",
|
|
56
|
-
className:
|
|
57
|
-
value: () =>
|
|
58
|
-
"aria-label":
|
|
56
|
+
className: i.payloadCopy,
|
|
57
|
+
value: () => m(t),
|
|
58
|
+
"aria-label": a
|
|
59
59
|
})]
|
|
60
60
|
}), /* @__PURE__ */ g("pre", {
|
|
61
|
-
className:
|
|
62
|
-
children:
|
|
61
|
+
className: r.asideRaw,
|
|
62
|
+
children: t == null ? "(empty)" : m(t)
|
|
63
63
|
})] });
|
|
64
64
|
}
|
|
65
65
|
var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
|
|
66
66
|
k: e,
|
|
67
67
|
v: String(t)
|
|
68
|
-
})), S =
|
|
69
|
-
let { event:
|
|
70
|
-
|
|
68
|
+
})), S = e(function(e, t) {
|
|
69
|
+
let { event: s, now: c = Date.now(), highlight: l, showExtraFields: d = !0, hiddenFields: m, onClose: S, classes: C, className: w, style: T } = e, E = (l || "").trim(), D = s.end == null, O = f(s), k = d ? u(s, m) : [], A = !!Object.keys(s.query || {}).length, j = !!Object.keys(s.reqHeaders || {}).length, M = !!Object.keys(s.resHeaders || {}).length, N = [], P = s.reqHeaders && s.reqHeaders["x-request-id"] || s.requestId;
|
|
70
|
+
s.op && N.push({
|
|
71
71
|
label: "Operation",
|
|
72
|
-
value:
|
|
73
|
-
}),
|
|
72
|
+
value: s.op
|
|
73
|
+
}), s.url ? N.push({
|
|
74
74
|
label: "URL",
|
|
75
|
-
value:
|
|
76
|
-
}) :
|
|
75
|
+
value: s.url
|
|
76
|
+
}) : s.label && N.push({
|
|
77
77
|
label: "Label",
|
|
78
|
-
value:
|
|
78
|
+
value: s.label
|
|
79
79
|
}), N.push({
|
|
80
80
|
label: "Event id",
|
|
81
|
-
value:
|
|
81
|
+
value: s.id
|
|
82
82
|
}), P && N.push({
|
|
83
83
|
label: "Request id",
|
|
84
84
|
value: P
|
|
85
85
|
}), N.push({
|
|
86
86
|
label: "Started",
|
|
87
|
-
value:
|
|
87
|
+
value: o(s.start, !0)
|
|
88
88
|
}), D ? N.push({
|
|
89
89
|
label: "Duration",
|
|
90
|
-
value:
|
|
91
|
-
}) :
|
|
90
|
+
value: a(c - s.start) + " so far"
|
|
91
|
+
}) : s.end === s.start ? N.push({
|
|
92
92
|
label: "Duration",
|
|
93
93
|
value: "instant"
|
|
94
94
|
}) : (N.push({
|
|
95
95
|
label: "Ended",
|
|
96
|
-
value:
|
|
96
|
+
value: o(s.end, !0)
|
|
97
97
|
}), N.push({
|
|
98
98
|
label: "Duration",
|
|
99
|
-
value:
|
|
99
|
+
value: a(s.end - s.start)
|
|
100
100
|
}));
|
|
101
|
-
let F = !O && !
|
|
102
|
-
className:
|
|
101
|
+
let F = !O && !s.message && !s.details?.length && s.payload == null && !k.length, I = (e) => /* @__PURE__ */ g("div", {
|
|
102
|
+
className: n(i.drawerSection, C?.section),
|
|
103
103
|
children: e
|
|
104
104
|
});
|
|
105
105
|
return /* @__PURE__ */ _("div", {
|
|
106
|
-
ref:
|
|
107
|
-
className:
|
|
106
|
+
ref: t,
|
|
107
|
+
className: n(C?.root, w),
|
|
108
108
|
style: T,
|
|
109
109
|
children: [/* @__PURE__ */ g("div", {
|
|
110
|
-
className:
|
|
110
|
+
className: n(i.drawerHead, C?.head),
|
|
111
111
|
children: /* @__PURE__ */ _("div", {
|
|
112
|
-
className:
|
|
112
|
+
className: i.drawerHeadRow,
|
|
113
113
|
children: [
|
|
114
|
-
|
|
115
|
-
className:
|
|
116
|
-
children:
|
|
114
|
+
s.method && /* @__PURE__ */ g("span", {
|
|
115
|
+
className: i.methodBadge,
|
|
116
|
+
children: s.method
|
|
117
117
|
}),
|
|
118
118
|
/* @__PURE__ */ g(v, {
|
|
119
|
-
event:
|
|
119
|
+
event: s,
|
|
120
120
|
pending: D
|
|
121
121
|
}),
|
|
122
122
|
/* @__PURE__ */ g("span", {
|
|
123
|
-
className:
|
|
124
|
-
children:
|
|
123
|
+
className: i.drawerRoute,
|
|
124
|
+
children: p(s)
|
|
125
125
|
}),
|
|
126
|
-
/* @__PURE__ */ g("div", { className:
|
|
126
|
+
/* @__PURE__ */ g("div", { className: i.drawerSpacer }),
|
|
127
127
|
S && /* @__PURE__ */ g("button", {
|
|
128
128
|
type: "button",
|
|
129
|
-
className:
|
|
129
|
+
className: r.asideClose,
|
|
130
130
|
"aria-label": "Close details",
|
|
131
131
|
onClick: S,
|
|
132
132
|
children: "✕"
|
|
@@ -134,103 +134,103 @@ var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
|
|
|
134
134
|
]
|
|
135
135
|
})
|
|
136
136
|
}), /* @__PURE__ */ _("div", {
|
|
137
|
-
className:
|
|
137
|
+
className: n(i.drawerBody, C?.body),
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ g("div", {
|
|
140
|
-
className:
|
|
140
|
+
className: n(i.fieldList, i.headFields),
|
|
141
141
|
children: N.map((e) => /* @__PURE__ */ g(y, {
|
|
142
142
|
field: e,
|
|
143
143
|
query: E,
|
|
144
144
|
className: C?.field
|
|
145
145
|
}, e.label))
|
|
146
146
|
}),
|
|
147
|
-
|
|
148
|
-
className:
|
|
147
|
+
s.message && /* @__PURE__ */ g("div", {
|
|
148
|
+
className: i.fieldList,
|
|
149
149
|
children: /* @__PURE__ */ g(y, {
|
|
150
150
|
field: {
|
|
151
151
|
label: "Message",
|
|
152
|
-
value:
|
|
152
|
+
value: s.message,
|
|
153
153
|
mono: !1
|
|
154
154
|
},
|
|
155
155
|
query: E,
|
|
156
156
|
className: C?.field
|
|
157
157
|
})
|
|
158
158
|
}),
|
|
159
|
-
!!
|
|
160
|
-
className:
|
|
161
|
-
children:
|
|
159
|
+
!!s.details?.length && /* @__PURE__ */ _(h, { children: [I("Details"), /* @__PURE__ */ g("div", {
|
|
160
|
+
className: i.fieldList,
|
|
161
|
+
children: s.details.map((e, t) => /* @__PURE__ */ g(y, {
|
|
162
162
|
field: e,
|
|
163
163
|
query: E,
|
|
164
164
|
className: C?.field
|
|
165
165
|
}, e.label + t))
|
|
166
166
|
})] }),
|
|
167
|
-
|
|
167
|
+
s.payload != null && /* @__PURE__ */ g(b, {
|
|
168
168
|
section: !0,
|
|
169
169
|
label: "Payload",
|
|
170
|
-
value:
|
|
170
|
+
value: s.payload,
|
|
171
171
|
copyLabel: "Copy payload"
|
|
172
172
|
}),
|
|
173
173
|
O && /* @__PURE__ */ _(h, { children: [
|
|
174
174
|
I("Request"),
|
|
175
175
|
A && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
|
|
176
|
-
className:
|
|
176
|
+
className: r.asideSection,
|
|
177
177
|
children: "Query parameters"
|
|
178
|
-
}), x(
|
|
179
|
-
className:
|
|
178
|
+
}), x(s.query).map((e) => /* @__PURE__ */ _("div", {
|
|
179
|
+
className: i.kvRow,
|
|
180
180
|
children: [/* @__PURE__ */ g("span", {
|
|
181
|
-
className:
|
|
181
|
+
className: n(i.kvKey, i.kvKeyQuery),
|
|
182
182
|
children: e.k
|
|
183
183
|
}), /* @__PURE__ */ g("span", {
|
|
184
|
-
className:
|
|
184
|
+
className: i.kvVal,
|
|
185
185
|
children: e.v
|
|
186
186
|
})]
|
|
187
187
|
}, e.k))] }),
|
|
188
188
|
j && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
|
|
189
|
-
className:
|
|
189
|
+
className: r.asideSection,
|
|
190
190
|
children: "Headers"
|
|
191
|
-
}), x(
|
|
192
|
-
className:
|
|
191
|
+
}), x(s.reqHeaders).map((e) => /* @__PURE__ */ _("div", {
|
|
192
|
+
className: i.kvRow,
|
|
193
193
|
children: [/* @__PURE__ */ g("span", {
|
|
194
|
-
className:
|
|
194
|
+
className: i.kvKey,
|
|
195
195
|
children: e.k
|
|
196
196
|
}), /* @__PURE__ */ g("span", {
|
|
197
|
-
className:
|
|
197
|
+
className: i.kvVal,
|
|
198
198
|
children: e.v
|
|
199
199
|
})]
|
|
200
200
|
}, e.k))] }),
|
|
201
|
-
|
|
201
|
+
s.reqBody != null && /* @__PURE__ */ g(b, {
|
|
202
202
|
label: "Body",
|
|
203
|
-
value:
|
|
203
|
+
value: s.reqBody,
|
|
204
204
|
copyLabel: "Copy request payload"
|
|
205
205
|
}),
|
|
206
|
-
!A && !j &&
|
|
207
|
-
className:
|
|
206
|
+
!A && !j && s.reqBody == null && /* @__PURE__ */ g("div", {
|
|
207
|
+
className: i.emptyNote,
|
|
208
208
|
children: "No request data captured."
|
|
209
209
|
}),
|
|
210
210
|
I("Response"),
|
|
211
211
|
D ? /* @__PURE__ */ _("div", {
|
|
212
|
-
className:
|
|
213
|
-
children: [/* @__PURE__ */ g("span", { className:
|
|
212
|
+
className: i.awaiting,
|
|
213
|
+
children: [/* @__PURE__ */ g("span", { className: n(r.pulseDot, i.awaitingDot) }), "Awaiting response…"]
|
|
214
214
|
}) : /* @__PURE__ */ _(h, { children: [M && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
|
|
215
|
-
className:
|
|
215
|
+
className: r.asideSection,
|
|
216
216
|
children: "Headers"
|
|
217
|
-
}), x(
|
|
218
|
-
className:
|
|
217
|
+
}), x(s.resHeaders).map((e) => /* @__PURE__ */ _("div", {
|
|
218
|
+
className: i.kvRow,
|
|
219
219
|
children: [/* @__PURE__ */ g("span", {
|
|
220
|
-
className:
|
|
220
|
+
className: i.kvKey,
|
|
221
221
|
children: e.k
|
|
222
222
|
}), /* @__PURE__ */ g("span", {
|
|
223
|
-
className:
|
|
223
|
+
className: i.kvVal,
|
|
224
224
|
children: e.v
|
|
225
225
|
})]
|
|
226
226
|
}, e.k))] }), /* @__PURE__ */ g(b, {
|
|
227
227
|
label: "Body",
|
|
228
|
-
value:
|
|
228
|
+
value: s.resBody,
|
|
229
229
|
copyLabel: "Copy response payload"
|
|
230
230
|
})] })
|
|
231
231
|
] }),
|
|
232
232
|
!!k.length && /* @__PURE__ */ _(h, { children: [I("Other fields"), /* @__PURE__ */ g("div", {
|
|
233
|
-
className:
|
|
233
|
+
className: i.fieldList,
|
|
234
234
|
children: k.map((e) => /* @__PURE__ */ g(y, {
|
|
235
235
|
field: e,
|
|
236
236
|
query: E,
|
|
@@ -238,7 +238,7 @@ var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
|
|
|
238
238
|
}, e.label))
|
|
239
239
|
})] }),
|
|
240
240
|
F && /* @__PURE__ */ g("div", {
|
|
241
|
-
className:
|
|
241
|
+
className: i.emptyNote,
|
|
242
242
|
children: "No further details for this event."
|
|
243
243
|
})
|
|
244
244
|
]
|