@brett_lamy/ui 5.13.0 → 5.15.1

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 (118) hide show
  1. package/dist/components/call-stack.d.ts +26 -0
  2. package/dist/components/call-stack.d.ts.map +1 -0
  3. package/dist/components/call-stack.js +236 -0
  4. package/dist/components/code-editor-window.d.ts +191 -0
  5. package/dist/components/code-editor-window.d.ts.map +1 -0
  6. package/dist/components/code-editor-window.js +1474 -0
  7. package/dist/components/code-editor.d.ts +213 -0
  8. package/dist/components/code-editor.d.ts.map +1 -0
  9. package/dist/components/code-editor.js +484 -0
  10. package/dist/components/file-upload.d.ts +1 -1
  11. package/dist/components/file-upload.d.ts.map +1 -1
  12. package/dist/components/file-upload.js +1 -1
  13. package/dist/components/filter-input.d.ts +1 -1
  14. package/dist/components/filter-input.d.ts.map +1 -1
  15. package/dist/components/filter-input.js +1 -1
  16. package/dist/components/filter.d.ts +1 -1
  17. package/dist/components/filter.d.ts.map +1 -1
  18. package/dist/components/filter.js +1 -1
  19. package/dist/components/log-list.d.ts +95 -0
  20. package/dist/components/log-list.d.ts.map +1 -0
  21. package/dist/components/log-list.js +549 -0
  22. package/dist/components/object-tree.d.ts +30 -0
  23. package/dist/components/object-tree.d.ts.map +1 -0
  24. package/dist/components/object-tree.js +415 -0
  25. package/dist/components/object-value.d.ts +13 -0
  26. package/dist/components/object-value.d.ts.map +1 -0
  27. package/dist/components/object-value.js +69 -0
  28. package/dist/components/request-table.d.ts +78 -0
  29. package/dist/components/request-table.d.ts.map +1 -0
  30. package/dist/components/request-table.js +697 -0
  31. package/dist/components/spreadsheet.d.ts +1 -1
  32. package/dist/components/spreadsheet.d.ts.map +1 -1
  33. package/dist/components/spreadsheet.js +1 -1
  34. package/dist/components/syntax-highlighting.d.ts +45 -77
  35. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  36. package/dist/components/syntax-highlighting.js +36 -275
  37. package/dist/components/terminal.d.ts +62 -0
  38. package/dist/components/terminal.d.ts.map +1 -0
  39. package/dist/components/terminal.js +172 -0
  40. package/dist/components/trace-timeline.d.ts +97 -0
  41. package/dist/components/trace-timeline.d.ts.map +1 -0
  42. package/dist/components/trace-timeline.js +850 -0
  43. package/dist/components/tree.d.ts.map +1 -1
  44. package/dist/components/tree.js +99 -91
  45. package/dist/components/video-preview.d.ts +1 -1
  46. package/dist/components/video-preview.d.ts.map +1 -1
  47. package/dist/components/video-preview.js +1 -1
  48. package/dist/components/video-timeline.d.ts +1 -1
  49. package/dist/components/video-timeline.d.ts.map +1 -1
  50. package/dist/components/video-timeline.js +1 -1
  51. package/dist/components/workspace.d.ts.map +1 -1
  52. package/dist/components/workspace.js +1 -1
  53. package/dist/index.css +1 -1
  54. package/dist/index.d.ts +45 -11
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +119 -100
  57. package/dist/lib/call-stack-model.d.ts +75 -0
  58. package/dist/lib/call-stack-model.d.ts.map +1 -0
  59. package/dist/lib/call-stack-model.js +114 -0
  60. package/dist/lib/code-document.d.ts +229 -0
  61. package/dist/lib/code-document.d.ts.map +1 -0
  62. package/dist/lib/code-document.js +727 -0
  63. package/dist/lib/code-editor-gpu.d.ts +9 -0
  64. package/dist/lib/code-editor-gpu.d.ts.map +1 -0
  65. package/dist/lib/code-editor-gpu.js +23 -0
  66. package/dist/lib/code-editor-model.d.ts +371 -0
  67. package/dist/lib/code-editor-model.d.ts.map +1 -0
  68. package/dist/lib/code-editor-model.js +1105 -0
  69. package/dist/lib/{file-upload.d.ts → file-upload-model.d.ts} +1 -1
  70. package/dist/lib/file-upload-model.d.ts.map +1 -0
  71. package/dist/lib/{file-upload.js → file-upload-model.js} +1 -1
  72. package/dist/lib/{filter.d.ts → filter-model.d.ts} +1 -1
  73. package/dist/lib/filter-model.d.ts.map +1 -0
  74. package/dist/lib/{filter.js → filter-model.js} +1 -1
  75. package/dist/lib/filter-query.d.ts +1 -1
  76. package/dist/lib/filter-query.d.ts.map +1 -1
  77. package/dist/lib/filter-query.js +1 -1
  78. package/dist/lib/log-list-model.d.ts +132 -0
  79. package/dist/lib/log-list-model.d.ts.map +1 -0
  80. package/dist/lib/log-list-model.js +214 -0
  81. package/dist/lib/log-list-window.d.ts +121 -0
  82. package/dist/lib/log-list-window.d.ts.map +1 -0
  83. package/dist/lib/log-list-window.js +245 -0
  84. package/dist/lib/object-tree-model.d.ts +162 -0
  85. package/dist/lib/object-tree-model.d.ts.map +1 -0
  86. package/dist/lib/object-tree-model.js +347 -0
  87. package/dist/lib/object-tree-value.d.ts +139 -0
  88. package/dist/lib/object-tree-value.d.ts.map +1 -0
  89. package/dist/lib/object-tree-value.js +410 -0
  90. package/dist/lib/request-table-model.d.ts +85 -0
  91. package/dist/lib/request-table-model.d.ts.map +1 -0
  92. package/dist/lib/request-table-model.js +105 -0
  93. package/dist/lib/{spreadsheet.d.ts → spreadsheet-model.d.ts} +1 -1
  94. package/dist/lib/spreadsheet-model.d.ts.map +1 -0
  95. package/dist/lib/{spreadsheet.js → spreadsheet-model.js} +1 -1
  96. package/dist/lib/syntax.d.ts +19 -7
  97. package/dist/lib/syntax.d.ts.map +1 -1
  98. package/dist/lib/syntax.js +54 -50
  99. package/dist/lib/terminal-line.d.ts +155 -0
  100. package/dist/lib/terminal-line.d.ts.map +1 -0
  101. package/dist/lib/terminal-line.js +463 -0
  102. package/dist/lib/trace-timeline-draw.d.ts +109 -0
  103. package/dist/lib/trace-timeline-draw.d.ts.map +1 -0
  104. package/dist/lib/trace-timeline-draw.js +252 -0
  105. package/dist/lib/trace-timeline-model.d.ts +324 -0
  106. package/dist/lib/trace-timeline-model.d.ts.map +1 -0
  107. package/dist/lib/trace-timeline-model.js +510 -0
  108. package/dist/lib/video-render.d.ts +1 -1
  109. package/dist/lib/video-render.d.ts.map +1 -1
  110. package/dist/lib/video-render.js +1 -1
  111. package/dist/lib/{video-timeline.d.ts → video-timeline-model.d.ts} +1 -1
  112. package/dist/lib/video-timeline-model.d.ts.map +1 -0
  113. package/dist/lib/{video-timeline.js → video-timeline-model.js} +1 -1
  114. package/package.json +7 -1
  115. package/dist/lib/file-upload.d.ts.map +0 -1
  116. package/dist/lib/filter.d.ts.map +0 -1
  117. package/dist/lib/spreadsheet.d.ts.map +0 -1
  118. package/dist/lib/video-timeline.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-tree.d.ts","sourceRoot":"","sources":["../../src/components/object-tree.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0F,KAAK,cAAc,EAAsB,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAWxL,OAAO,EAGL,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EACtE,MAAM,yBAAyB,CAAC;AAWjC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC5H,YAAY,EAAE,MAAM,CAAC;IACrB;iIAC6H;IAC7H,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACxB;6DACyD;IACzD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACjH,qFAAqF;IACrF,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAC7G,oHAAoH;IACpH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,wHAAwH;IACxH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAClE,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAID,0GAA0G;AAC1G,eAAO,MAAM,qBAAqB;;;8EAkBjC,CAAC;AA6PF,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,EACtC,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAc,EAAE,YAAgC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EACpL,EAAE,eAAe,CAAC,CAAC,CAAC,2CA6KpB"}
@@ -0,0 +1,415 @@
1
+ "use client";
2
+ import { cn as e } from "../lib/utils.js";
3
+ import { Icon as t } from "../lib/icon.js";
4
+ import { Popover as n } from "./popover.js";
5
+ import { Spinner as r } from "./spinner.js";
6
+ import { Button as i } from "./button.js";
7
+ import { PlainButton as a } from "./plain-button.js";
8
+ import { previewText as o } from "../lib/object-tree-value.js";
9
+ import { ObjectValue as s } from "./object-value.js";
10
+ import { applyExpanded as c, buildRows as l, childrenOfValue as u, copyTextOfNode as d, createTreeState as f, errorText as p, invokeGetterOfValue as ee, isValueNode as m, rebaseTreeState as te, retryLoad as ne, rowText as h, setRowOpen as re, settleGetter as g, settleLoad as _, startGetter as ie, startLoad as ae } from "../lib/object-tree-model.js";
11
+ import { createContext as v, use as y, useCallback as oe, useEffect as b, useLayoutEffect as se, useMemo as x, useRef as S, useState as C } from "react";
12
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
13
+ import { Collection as D, Dialog as O, ListLayout as ce, Tree as le, TreeItem as k, TreeItemContent as A, Virtualizer as ue } from "react-aria-components";
14
+ import { cva as j } from "class-variance-authority";
15
+ //#region src/components/object-tree.tsx
16
+ var M = j([
17
+ "group/row flex h-full w-full cursor-default items-center gap-1 pr-1 outline-none",
18
+ "pl-[min(calc((var(--tree-item-level)-1)*var(--object-tree-indent)),25%)]",
19
+ "text-caption leading-none text-foreground",
20
+ "data-selected:bg-accent data-focus-visible:[box-shadow:inset_0_0_0_2px_var(--ring)]"
21
+ ], { variants: {
22
+ kind: {
23
+ node: "font-mono data-hovered:bg-accent/50",
24
+ section: "font-sans font-semibold shadow-hairline-b data-hovered:bg-accent/50",
25
+ range: "font-mono text-muted-foreground data-hovered:bg-accent/50",
26
+ note: "font-sans text-muted-foreground"
27
+ },
28
+ stale: { true: "opacity-60" }
29
+ } }), N = v(null);
30
+ function P({ icon: n, label: r, onPress: i, active: o }) {
31
+ return /* @__PURE__ */ T(a, {
32
+ "aria-label": r,
33
+ title: r,
34
+ excludeFromTabOrder: !0,
35
+ onPress: (e) => i(e.target),
36
+ className: e("grid size-5 shrink-0 cursor-default place-items-center rounded-md border-0 bg-transparent p-0 text-muted-foreground outline-none", "data-hovered:bg-secondary-strong data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring", o && "text-success"),
37
+ children: /* @__PURE__ */ T(t, {
38
+ name: n,
39
+ size: 13
40
+ })
41
+ });
42
+ }
43
+ function F() {
44
+ return /* @__PURE__ */ T(a, {
45
+ slot: "chevron",
46
+ className: "grid h-full w-4 shrink-0 cursor-default place-items-center border-0 bg-transparent p-0 text-muted-foreground outline-none",
47
+ children: /* @__PURE__ */ T(t, {
48
+ name: "chevron-right",
49
+ size: 10,
50
+ sw: 3,
51
+ className: "transition-transform duration-100 group-data-expanded/row:rotate-90 motion-reduce:transition-none"
52
+ })
53
+ });
54
+ }
55
+ var I = /* @__PURE__ */ T("span", { className: "size-4 shrink-0" }), L = 24;
56
+ function R({ row: t }) {
57
+ let n = y(N), { node: i, getter: c } = t, l = i.value, u = t.expandable ? /* @__PURE__ */ T(F, {}) : I;
58
+ if (i.section) return /* @__PURE__ */ E(w, { children: [u, /* @__PURE__ */ T("span", {
59
+ className: "min-w-0 flex-1 truncate",
60
+ children: i.name
61
+ })] });
62
+ let d = l ? o(l, { maxString: 2e3 }) : "", f = l?.type === "accessor";
63
+ return /* @__PURE__ */ E(w, { children: [
64
+ u,
65
+ i.name ? /* @__PURE__ */ E("span", {
66
+ "data-slot": "object-tree-name",
67
+ className: e("flex max-w-[55%] min-w-0 shrink-0 leading-5", i.dim && "text-muted-foreground"),
68
+ title: i.name,
69
+ children: [/* @__PURE__ */ T("span", {
70
+ className: "min-w-0 truncate",
71
+ children: i.name
72
+ }), /* @__PURE__ */ T("span", {
73
+ className: "text-muted-foreground",
74
+ children: ":"
75
+ })]
76
+ }) : null,
77
+ f ? /* @__PURE__ */ E("span", {
78
+ className: "flex min-w-0 flex-1 items-center gap-1.5",
79
+ children: [c?.status === "invoking" ? /* @__PURE__ */ T(r, {
80
+ spin: !0,
81
+ size: 12,
82
+ label: "Calling the getter",
83
+ className: "text-muted-foreground"
84
+ }) : /* @__PURE__ */ T(a, {
85
+ "aria-label": `Call the getter ${i.name}`,
86
+ title: "Call the getter",
87
+ excludeFromTabOrder: !0,
88
+ isDisabled: !n.canInvokeGetter(t),
89
+ onPress: () => n.invokeGetter(t),
90
+ className: "shrink-0 cursor-default rounded-md border-0 bg-transparent px-1 py-0.5 font-mono text-caption text-muted-foreground outline-none data-hovered:bg-secondary-strong data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring",
91
+ children: "(...)"
92
+ }), c?.status === "failed" ? /* @__PURE__ */ T("span", {
93
+ className: "min-w-0 flex-1 truncate font-sans text-destructive",
94
+ title: c.error,
95
+ children: c.error
96
+ }) : null]
97
+ }) : l ? /* @__PURE__ */ T(s, {
98
+ value: l,
99
+ expandable: !1,
100
+ title: d,
101
+ className: "min-w-0 flex-1 truncate leading-5 whitespace-pre"
102
+ }) : /* @__PURE__ */ T("span", { className: "flex-1" }),
103
+ l && !f ? /* @__PURE__ */ E("span", {
104
+ className: "hidden shrink-0 items-center group-focus-within/row:flex group-data-focused/row:flex group-data-hovered/row:flex",
105
+ children: [d.length > L ? /* @__PURE__ */ T(P, {
106
+ icon: "ellipsis",
107
+ label: "Show the whole value",
108
+ onPress: (e) => n.showValue(t, e)
109
+ }) : null, /* @__PURE__ */ T(P, {
110
+ icon: n.copiedKey === t.key ? "check" : "copy",
111
+ label: n.copiedKey === t.key ? "Copied" : "Copy the value",
112
+ active: n.copiedKey === t.key,
113
+ onPress: () => n.copy(t)
114
+ })]
115
+ }) : null
116
+ ] });
117
+ }
118
+ function z({ row: e }) {
119
+ let n = y(N);
120
+ switch (e.kind) {
121
+ case "node": return /* @__PURE__ */ T(R, { row: e });
122
+ case "range": return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(F, {}), /* @__PURE__ */ T("span", {
123
+ className: "min-w-0 flex-1 truncate",
124
+ children: e.label
125
+ })] });
126
+ case "loading": return /* @__PURE__ */ E("span", {
127
+ className: "flex items-center gap-1.5 pl-5 transition-opacity delay-150 duration-150 starting:opacity-0 motion-reduce:transition-none",
128
+ children: [/* @__PURE__ */ T(r, {
129
+ spin: !0,
130
+ size: 12
131
+ }), "Loading…"]
132
+ });
133
+ case "failed": return /* @__PURE__ */ E("span", {
134
+ className: "flex min-w-0 flex-1 items-center gap-1.5 pl-5",
135
+ title: e.error,
136
+ children: [
137
+ /* @__PURE__ */ T(t, {
138
+ name: "warning",
139
+ size: 13,
140
+ className: "text-destructive"
141
+ }),
142
+ /* @__PURE__ */ T("span", {
143
+ className: "min-w-0 truncate text-destructive",
144
+ children: e.error
145
+ }),
146
+ /* @__PURE__ */ T(a, {
147
+ excludeFromTabOrder: !0,
148
+ onPress: () => n.retry(e.owner),
149
+ className: "shrink-0 cursor-default rounded-md border-0 bg-transparent px-1 py-0.5 text-caption font-medium text-primary outline-none data-hovered:bg-secondary-strong data-focus-visible:ring-2 data-focus-visible:ring-ring",
150
+ children: "Retry"
151
+ })
152
+ ]
153
+ });
154
+ case "empty": return /* @__PURE__ */ T("span", {
155
+ className: "pl-5",
156
+ children: "No properties"
157
+ });
158
+ }
159
+ }
160
+ var B = (e) => e.kind === "node" ? e.node.section ? "section" : "node" : e.kind === "range" ? "range" : "note", V = (e) => e.kind === "node" && !e.node.section;
161
+ function H(e) {
162
+ return e.kind === "range" || e.kind === "node" && e.expandable;
163
+ }
164
+ function U(e) {
165
+ let t = H(e), n = "children" in e && e.children ? e.children : t ? [{
166
+ kind: "empty",
167
+ key: `${e.key}\u001f\u0001closed`
168
+ }] : null;
169
+ return /* @__PURE__ */ E(k, {
170
+ id: e.key,
171
+ "data-slot": "object-tree-row",
172
+ "data-kind": B(e),
173
+ textValue: h(e),
174
+ hasChildItems: t,
175
+ isDisabled: !V(e),
176
+ className: M({
177
+ kind: B(e),
178
+ stale: "stale" in e && e.stale
179
+ }),
180
+ children: [/* @__PURE__ */ T(A, { children: /* @__PURE__ */ T(z, { row: e }) }), n ? /* @__PURE__ */ T(D, {
181
+ items: n,
182
+ children: U
183
+ }) : null]
184
+ });
185
+ }
186
+ function de({ row: e, anchor: t, onClose: r, onCopy: a, copied: o }) {
187
+ return /* @__PURE__ */ T(n, {
188
+ isOpen: !0,
189
+ onOpenChange: (e) => {
190
+ e || r();
191
+ },
192
+ triggerRef: t,
193
+ boundaryElement: t.current?.closest("[data-slot=\"bl-provider\"]") ?? void 0,
194
+ placement: "bottom end",
195
+ className: "flex w-[min(30rem,calc(100vw-1.5rem))] min-w-0 flex-col",
196
+ children: /* @__PURE__ */ E(O, {
197
+ "aria-label": e.node.name ? `The value of ${e.node.name}` : "The whole value",
198
+ "data-slot": "object-tree-value",
199
+ className: "flex max-h-[min(60dvh,24rem)] min-h-0 flex-col gap-2 p-3 outline-none",
200
+ children: [/* @__PURE__ */ E("div", {
201
+ className: "flex items-center gap-2",
202
+ children: [/* @__PURE__ */ T("span", {
203
+ className: "min-w-0 flex-1 truncate font-mono text-caption font-medium",
204
+ children: e.node.name
205
+ }), /* @__PURE__ */ T(i, {
206
+ size: "sm",
207
+ variant: "ghost",
208
+ className: "h-6 shrink-0 px-2 text-caption",
209
+ onPress: a,
210
+ children: o ? "Copied" : "Copy"
211
+ })]
212
+ }), /* @__PURE__ */ T("div", {
213
+ className: "bl-scroll min-h-0 overflow-auto",
214
+ children: /* @__PURE__ */ T(s, {
215
+ value: e.node.value,
216
+ maxLength: 4e3
217
+ })
218
+ })]
219
+ })
220
+ });
221
+ }
222
+ function fe(e, t) {
223
+ return t === e.state ? e : {
224
+ state: t,
225
+ groupSize: e.groupSize,
226
+ rows: l(t, { groupSize: e.groupSize }, e.rows)
227
+ };
228
+ }
229
+ function W(e, t, n) {
230
+ let r;
231
+ try {
232
+ r = e();
233
+ } catch (e) {
234
+ n(e);
235
+ return;
236
+ }
237
+ r && typeof r.then == "function" ? r.then(t, n) : t(r);
238
+ }
239
+ var G = 16;
240
+ function pe(e) {
241
+ let [t, n] = C({
242
+ value: e,
243
+ quiet: !0
244
+ }), r = S(e);
245
+ r.current = e;
246
+ let i = t;
247
+ return i.quiet && !Object.is(i.value, e) && (i = {
248
+ value: e,
249
+ quiet: !1
250
+ }, n(i)), b(() => {
251
+ if (i.quiet) return;
252
+ let e = setTimeout(() => {
253
+ n((e) => Object.is(e.value, r.current) ? {
254
+ value: e.value,
255
+ quiet: !0
256
+ } : {
257
+ value: r.current,
258
+ quiet: !1
259
+ });
260
+ }, G);
261
+ return () => clearTimeout(e);
262
+ }, [i]), i.value;
263
+ }
264
+ function K({ "aria-label": t, root: n, loadChildren: r, onInvokeGetter: i, onSelect: a, copyValue: o, groupSize: s, rowHeight: h = 24, emptyMessage: v = "Nothing to show", className: y, style: b, ...w }) {
265
+ let D = pe(n), [O, k] = C(() => {
266
+ let e = f(D);
267
+ return {
268
+ state: e,
269
+ groupSize: s,
270
+ rows: l(e, { groupSize: s })
271
+ };
272
+ }), A = O;
273
+ if (A.state.root !== D || A.groupSize !== s) {
274
+ let e = A.state.root === D ? A.state : te(A.state, D, A.rows.expandedKeys);
275
+ A = {
276
+ state: e,
277
+ groupSize: s,
278
+ rows: l(e, { groupSize: s }, A.groupSize === s ? A.rows : null)
279
+ }, k(A);
280
+ }
281
+ let { rows: j } = A, M = S({
282
+ loadChildren: r,
283
+ onInvokeGetter: i,
284
+ onSelect: a,
285
+ copyValue: o,
286
+ rows: j
287
+ });
288
+ M.current = {
289
+ loadChildren: r,
290
+ onInvokeGetter: i,
291
+ onSelect: a,
292
+ copyValue: o,
293
+ rows: j
294
+ };
295
+ let P = oe((e) => {
296
+ k((t) => fe(t, e(t.state)));
297
+ }, []), F = S(0), I = S(/* @__PURE__ */ new WeakSet());
298
+ se(() => {
299
+ if (I.current.has(j)) return;
300
+ I.current.add(j);
301
+ let e = j.needsLoad.map((e) => ({
302
+ ...e,
303
+ token: ++F.current
304
+ }));
305
+ if (e.length) {
306
+ P((t) => e.reduce((e, { key: t, token: n }) => ae(e, t, n), t));
307
+ for (let { key: t, node: n, token: r } of e) W(() => (M.current.loadChildren ?? u)(n), (e) => P((n) => _(n, t, r, { children: e })), (e) => P((n) => _(n, t, r, { error: p(e) })));
308
+ }
309
+ }, [j, P]);
310
+ let L = S(null), [R, z] = C(null), [B, V] = C(null), G = S(null), [K, q] = C(null), J = S(void 0), Y = x(() => ({
311
+ copiedKey: K,
312
+ canInvokeGetter: (e) => !e.stale && (!!M.current.onInvokeGetter || m(e.source)),
313
+ invokeGetter: (e) => {
314
+ if (e.getter?.status === "invoking" || e.stale || !(M.current.onInvokeGetter || m(e.source))) return;
315
+ let t = ++F.current;
316
+ P((n) => ie(n, e.key, t)), W(() => (M.current.onInvokeGetter ?? ee)(e.source), (n) => P((r) => g(r, e.key, t, { result: n })), (n) => P((r) => g(r, e.key, t, { error: p(n) })));
317
+ },
318
+ retry: (e) => P((t) => ne(t, e)),
319
+ copy: (e) => {
320
+ let t = e.node;
321
+ W(() => M.current.copyValue?.(t) ?? d(t), (t) => {
322
+ navigator.clipboard?.writeText(t).then(() => {
323
+ q(e.key), clearTimeout(J.current), J.current = setTimeout(() => q(null), 1200);
324
+ }, () => {});
325
+ }, () => {});
326
+ },
327
+ showValue: (e, t) => {
328
+ G.current = t, V(e.key);
329
+ }
330
+ }), [K, P]), X = (e) => {
331
+ z(e);
332
+ let t = e == null ? void 0 : M.current.rows.byKey.get(e);
333
+ M.current.onSelect?.(t?.kind === "node" ? t.node : null);
334
+ }, Z = S({
335
+ x: 0,
336
+ y: 0
337
+ }), Q = S(!1), me = (e) => {
338
+ let t = M.current.rows.byKey.get(String(e));
339
+ if (!t || Q.current && !window.getSelection()?.isCollapsed) return;
340
+ if (t.kind === "failed") return Y.retry(t.owner);
341
+ if (H(t)) {
342
+ let e = M.current.rows.expandedKeys.has(t.key);
343
+ return P((n) => re(n, t.key, !e));
344
+ }
345
+ if (t.kind !== "node" || !t.node.value) return;
346
+ if (M.current.onSelect && R !== t.key && X(t.key), t.node.value.type === "accessor") return Y.invokeGetter(t);
347
+ let n = L.current?.querySelector(`[data-key="${CSS.escape(t.key)}"] [data-slot="object-value"]`);
348
+ n && n.scrollWidth > n.clientWidth && Y.showValue(t, n);
349
+ }, he = (e) => {
350
+ if (Q.current = !1, !(e.metaKey || e.ctrlKey) || e.altKey || e.shiftKey || e.key.toLowerCase() !== "c" || !window.getSelection()?.isCollapsed) return;
351
+ let t = e.target.closest?.("[data-key]")?.getAttribute("data-key"), n = t == null ? void 0 : M.current.rows.byKey.get(t);
352
+ n?.kind !== "node" || !n.node.value || (e.preventDefault(), Y.copy(n));
353
+ }, $ = B == null ? void 0 : j.byKey.get(B), ge = x(() => ({ rowSize: h }), [h]);
354
+ return /* @__PURE__ */ E("div", {
355
+ "data-slot": "object-tree",
356
+ className: e("flex h-full max-h-dvh min-h-0 w-full min-w-0 flex-col [--object-tree-indent:14px]", y),
357
+ style: b,
358
+ onKeyDownCapture: he,
359
+ onPointerDownCapture: (e) => {
360
+ Z.current = {
361
+ x: e.clientX,
362
+ y: e.clientY
363
+ }, Q.current = !1;
364
+ },
365
+ onPointerUpCapture: (e) => {
366
+ Q.current = Math.hypot(e.clientX - Z.current.x, e.clientY - Z.current.y) > 4;
367
+ },
368
+ ...w,
369
+ children: [/* @__PURE__ */ T("span", {
370
+ role: "status",
371
+ className: "sr-only",
372
+ children: K == null ? "" : "Copied"
373
+ }), /* @__PURE__ */ E(N.Provider, {
374
+ value: Y,
375
+ children: [/* @__PURE__ */ T(ue, {
376
+ layout: ce,
377
+ layoutOptions: ge,
378
+ children: /* @__PURE__ */ T(le, {
379
+ ref: L,
380
+ "aria-label": t,
381
+ items: j.rows,
382
+ expandedKeys: j.expandedKeys,
383
+ onExpandedChange: (e) => {
384
+ let t = M.current.rows.expandedKeys;
385
+ P((n) => c(n, t, e));
386
+ },
387
+ selectionMode: a ? "single" : "none",
388
+ selectionBehavior: "replace",
389
+ disabledBehavior: "selection",
390
+ selectedKeys: R == null ? [] : [R],
391
+ onSelectionChange: (e) => {
392
+ if (e === "all") return;
393
+ let [t] = e;
394
+ X(t == null ? null : String(t));
395
+ },
396
+ onAction: me,
397
+ renderEmptyState: () => /* @__PURE__ */ T("div", {
398
+ className: "px-3 py-6 text-center text-footnote text-muted-foreground",
399
+ children: v
400
+ }),
401
+ className: "bl-scroll min-h-0 flex-1 overflow-auto outline-none",
402
+ children: U
403
+ })
404
+ }), $?.kind === "node" && $.node.value ? /* @__PURE__ */ T(de, {
405
+ row: $,
406
+ anchor: G,
407
+ onClose: () => V(null),
408
+ onCopy: () => Y.copy($),
409
+ copied: K === $.key
410
+ }) : null]
411
+ })]
412
+ });
413
+ }
414
+ //#endregion
415
+ export { K as ObjectTree, M as objectTreeRowVariants };
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { ValuePreview } from '../lib/object-tree-value';
3
+ export interface ObjectValueProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
4
+ value: ValuePreview;
5
+ /** Characters of a long string to show at first. Default 100. */
6
+ maxLength?: number;
7
+ /** Quote strings. `false` for the bare text a console shows for a top-level string. Default `true`. */
8
+ quote?: boolean;
9
+ /** Show more and Copy beside a long string or an error's stack. Off in a row of fixed height, as a tree's. Default `true`. */
10
+ expandable?: boolean;
11
+ }
12
+ export declare function ObjectValue({ value, maxLength, quote, expandable, className, style, ...props }: ObjectValueProps): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=object-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-value.d.ts","sourceRoot":"","sources":["../../src/components/object-value.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAgCjC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzF,KAAK,EAAE,YAAY,CAAC;IACpB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8HAA8H;IAC9H,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAiC,EAAE,KAAK,EAAE,UAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAwC/I"}
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { cn as e } from "../lib/utils.js";
3
+ import { selectableText as t } from "../lib/primitives.js";
4
+ import { PlainButton as n } from "./plain-button.js";
5
+ import { copyTextOf as r, formatLength as i, fullLength as a, hiddenLength as o, nextShownLength as s, previewTokens as c } from "../lib/object-tree-value.js";
6
+ import { useMemo as l, useRef as u, useState as d } from "react";
7
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
8
+ //#region src/components/object-value.tsx
9
+ var h = {
10
+ string: "bl-tok-string",
11
+ number: "bl-tok-number",
12
+ keyword: "bl-tok-keyword",
13
+ nullish: "text-muted-foreground",
14
+ function: "bl-tok-function",
15
+ functionMark: "bl-tok-keyword italic",
16
+ symbol: "bl-tok-constant",
17
+ regexp: "bl-tok-operator",
18
+ date: "bl-tok-type",
19
+ error: "text-destructive",
20
+ className: "bl-tok-type",
21
+ key: "text-muted-foreground",
22
+ punctuation: "text-muted-foreground",
23
+ muted: "text-muted-foreground",
24
+ plain: ""
25
+ }, g = "ml-1.5 cursor-default border-0 bg-transparent p-0 font-sans text-caption2 font-medium whitespace-nowrap text-primary outline-none data-hovered:underline data-focus-visible:underline";
26
+ function _({ value: _, maxLength: v = 100, quote: y, expandable: b = !0, className: x, style: S, ...C }) {
27
+ let [w, T] = d(v), [E, D] = d(!1), [O, k] = d(!1), A = u(void 0), j = l(() => ({
28
+ maxString: b ? w : v,
29
+ quote: y,
30
+ expanded: E
31
+ }), [
32
+ b,
33
+ w,
34
+ v,
35
+ y,
36
+ E
37
+ ]), M = l(() => c(_, j), [_, j]), N = b ? o(_, w, E) : 0, P = () => {
38
+ D(!0), T((e) => s(a(_), e));
39
+ }, F = () => {
40
+ navigator.clipboard?.writeText(r(_)).then(() => {
41
+ k(!0), clearTimeout(A.current), A.current = setTimeout(() => k(!1), 1200);
42
+ }, () => {});
43
+ };
44
+ return /* @__PURE__ */ m("span", {
45
+ "data-slot": "object-value",
46
+ "data-type": _.type,
47
+ className: e("font-mono text-caption break-words whitespace-pre-wrap", t, x),
48
+ style: S,
49
+ ...C,
50
+ children: [M.map((e, t) => /* @__PURE__ */ p("span", {
51
+ className: h[e.tint],
52
+ children: e.text
53
+ }, t)), N > 0 ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(n, {
54
+ className: g,
55
+ onPress: P,
56
+ children: [
57
+ "Show more (",
58
+ i(N),
59
+ ")"
60
+ ]
61
+ }), /* @__PURE__ */ p(n, {
62
+ className: g,
63
+ onPress: F,
64
+ children: O ? "Copied" : "Copy"
65
+ })] }) : null]
66
+ });
67
+ }
68
+ //#endregion
69
+ export { _ as ObjectValue };
@@ -0,0 +1,78 @@
1
+ import { ComponentProps, ReactNode, Ref } from 'react';
2
+ import { ButtonProps as AriaButtonProps } from 'react-aria-components';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { RowId } from '../lib/log-list-model';
5
+ import { RowAlign } from '../lib/log-list-window';
6
+ import { RequestColumnSize, RequestRow, RequestSort, RequestSortValue, RequestTimeRange } from '../lib/request-table-model';
7
+ export declare const requestTableVariants: (props?: ({
8
+ density?: "compact" | "comfortable" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ export type RequestColumnId = 'name' | 'url' | 'method' | 'status' | 'type' | 'size' | 'duration' | 'waterfall';
11
+ export interface RequestColumn<T extends RequestRow = RequestRow> extends RequestColumnSize {
12
+ /** The header's text. */
13
+ title?: ReactNode;
14
+ align?: 'start' | 'end';
15
+ /** Pressing the header sorts by this column (default true, if there's something to sort by). */
16
+ sortable?: boolean;
17
+ /** What it sorts by. Built-in columns have one; for others the default is the row's field of the same name. */
18
+ sortValue?: (row: T) => RequestSortValue;
19
+ /** The cell. Must be stable, as the row is only re-rendered when its props change. */
20
+ render?: (row: T) => ReactNode;
21
+ /** The column in plain words: what the sort menu of two-line rows calls it, and screen readers when `title` isn't a string. */
22
+ label?: string;
23
+ }
24
+ /** The built-in columns. `type` and `size` go first when the table is narrow. */
25
+ export declare const REQUEST_COLUMNS: Record<RequestColumnId, RequestColumn>;
26
+ export interface RequestLinkProps extends AriaButtonProps {
27
+ /** An Icon name after the text. Default `arrow-right`; null for none. */
28
+ icon?: 'arrow-right' | 'arrow-up-right' | null;
29
+ }
30
+ /** A link to the other end of a call, for `renderLink`: small enough for a row, and a press on it doesn't press the row. */
31
+ export declare function RequestLink({ icon, className, children, ...props }: RequestLinkProps): import("react/jsx-runtime").JSX.Element;
32
+ export interface RequestTableHandle {
33
+ /** Focuses the table. */
34
+ focus: () => void;
35
+ /** Scrolls to a row by id. `center` by default; `nearest` moves only if it's out of view. */
36
+ scrollToId: (id: RowId, align?: RowAlign) => void;
37
+ /** Moves the playhead with no React at all, for a clock's every tick. The `playhead` prop takes over when it next changes. */
38
+ setPlayhead: (time: number | null) => void;
39
+ }
40
+ export interface RequestTableProps<T extends RequestRow = RequestRow> extends Omit<ComponentProps<'div'>, 'children' | 'ref'>, VariantProps<typeof requestTableVariants> {
41
+ rows: readonly T[];
42
+ /** Which columns, in order: a built-in's id, or a column of your own (with a built-in's `id` to adjust that one). */
43
+ columns?: readonly (RequestColumnId | RequestColumn<T>)[];
44
+ /** The waterfall's range, in ms. Default: from the first request to the last answer. Give the recording's own range if
45
+ * rows come and go with a playhead, or every bar moves when they do. */
46
+ timeRange?: RequestTimeRange;
47
+ /** The playhead's time, in ms: a line on the waterfall, and the rows sent after it dimmed. */
48
+ playhead?: number | null;
49
+ /** The selected row, controlled; `null` for none. A new value that's out of view is scrolled to. */
50
+ selectedId?: RowId | null;
51
+ defaultSelectedId?: RowId | null;
52
+ onSelectionChange?: (id: RowId | null) => void;
53
+ /** A press on a row (or Enter or Space on the active one). Not called for presses on its links. */
54
+ onRowPress?: (row: T, index: number) => void;
55
+ /** Links to the other end of a call, usually `RequestLink`s, after the name (or the second line of a two-line row).
56
+ * Must be stable (`useCallback`). */
57
+ renderLink?: (row: T) => ReactNode;
58
+ /** The sort, controlled; `null` for the rows' own order. */
59
+ sort?: RequestSort | null;
60
+ defaultSort?: RequestSort | null;
61
+ onSortChange?: (sort: RequestSort | null) => void;
62
+ /** Widths dragged so far by column id, controlled. A column with none keeps its own size. */
63
+ columnWidths?: Readonly<Record<string, number>>;
64
+ defaultColumnWidths?: Readonly<Record<string, number>>;
65
+ onColumnWidthsChange?: (widths: Readonly<Record<string, number>>) => void;
66
+ /** `auto` (default) goes to two-line rows below `stackBelow`. `table` and `stacked` stay as they are. */
67
+ layout?: 'auto' | 'table' | 'stacked';
68
+ /** The table's own width, in px, below which `auto` stacks. Default 480. */
69
+ stackBelow?: number;
70
+ /** Shown when there are no rows. */
71
+ emptyState?: ReactNode;
72
+ /** Shown after the last row. */
73
+ footer?: ReactNode;
74
+ 'aria-label'?: string;
75
+ ref?: Ref<RequestTableHandle>;
76
+ }
77
+ export declare function RequestTable<T extends RequestRow = RequestRow>({ playhead, timeRange, onRowPress, onSelectionChange, onSortChange, onColumnWidthsChange, ref, ...props }: RequestTableProps<T>): import("react/jsx-runtime").JSX.Element;
78
+ //# sourceMappingURL=request-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-table.d.ts","sourceRoot":"","sources":["../../src/components/request-table.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EACoC,KAAK,SAAS,EAAE,KAAK,GAAG,EAChF,MAAM,OAAO,CAAC;AAEf,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAsB,MAAM,uBAAuB,CAAC;AACtH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAgB,KAAK,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAyC,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAGL,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EACxG,MAAM,2BAA2B,CAAC;AAsBnC,eAAO,MAAM,oBAAoB;;8EAUhC,CAAC;AASF,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;AAEhH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,iBAAiB;IACzF,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,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