@har-analyzer/components 0.0.19 → 0.0.21
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/dist/chunks/collapsible-key-value-list.js +41 -10
- package/dist/chunks/collapsible-section.js +1 -1
- package/dist/chunks/common.js +10 -0
- package/dist/chunks/content-type.js +15 -21
- package/dist/chunks/har-entry-response-status.js +14 -0
- package/dist/chunks/har.js +47 -20
- package/dist/chunks/horizontal-padding.js +8 -0
- package/dist/chunks/index.js +589 -891
- package/dist/chunks/index2.js +271 -49
- package/dist/chunks/list-har-entries.js +30 -0
- package/dist/chunks/request-headers.js +34 -0
- package/dist/chunks/request-payload.js +25 -0
- package/dist/chunks/response-headers.js +19 -0
- package/dist/chunks/response-payload.js +10 -0
- package/dist/components/collapsible-key-value-list.d.ts +7 -2
- package/dist/components/collapsible-section.d.ts +2 -1
- package/dist/components/enhanced-board/i18n.d.ts +26 -0
- package/dist/components/enhanced-board/index.d.ts +15 -0
- package/dist/components/{enhanced-table.d.ts → enhanced-table/index.d.ts} +9 -15
- package/dist/components/enhanced-table/preferences.d.ts +13 -0
- package/dist/components/har-entry-response-status.d.ts +4 -0
- package/dist/components/space-between.d.ts +2 -0
- package/dist/features/har-analyzer/components/app-layout.d.ts +3 -2
- package/dist/features/har-analyzer/components/top-navigation.d.ts +3 -2
- package/dist/features/har-analyzer/index.d.ts +2 -1
- package/dist/features/har-entries-viewer/components/har-entries-viewer-action-stripe/har-entry-header-picker.d.ts +6 -0
- package/dist/features/har-entries-viewer/components/har-entries-viewer-action-stripe/index.d.ts +8 -0
- package/dist/features/har-entries-viewer/components/har-entries-viewer-provider.d.ts +2 -0
- package/dist/features/har-entries-viewer/components/view-har-entry-header.d.ts +7 -0
- package/dist/features/har-entries-viewer/context/preferences.d.ts +2 -0
- package/dist/features/har-entries-viewer/index.d.ts +1 -1
- package/dist/features/list-har-entries/components/list-har-entries-provider.d.ts +2 -0
- package/dist/features/list-har-entries/components/list-har-entries-table-header/index.d.ts +6 -0
- package/dist/features/list-har-entries/components/list-har-entries-table.d.ts +8 -0
- package/dist/features/list-har-entries/components/list-har-entries.d.ts +5 -0
- package/dist/features/list-har-entries/context/preferences.d.ts +1 -3
- package/dist/features/list-har-entries/hooks/filter-har-entries.d.ts +2 -0
- package/dist/features/list-har-entries/index.d.ts +8 -4
- package/dist/features/view-har-entry/components/request-headers.d.ts +4 -0
- package/dist/features/view-har-entry/components/request-payload.d.ts +6 -0
- package/dist/features/view-har-entry/components/response-headers.d.ts +4 -0
- package/dist/features/view-har-entry/components/response-payload.d.ts +6 -0
- package/dist/features/view-har-entry/index.d.ts +1 -1
- package/dist/har-analyzer.js +16 -15
- package/dist/har-entries-viewer.js +271 -630
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -17
- package/dist/list-har-entries.js +6 -3
- package/dist/utils/array.d.ts +7 -0
- package/dist/utils/har.d.ts +12 -1
- package/dist/view-har-entry.js +58 -6
- package/package.json +2 -2
- package/dist/assets/har-entries-viewer.css +0 -1
- package/dist/chunks/headers-viewer.js +0 -32
- package/dist/chunks/payload-viewer.js +0 -15
- package/dist/chunks/response-viewer.js +0 -10
- package/dist/components/r2-layout/fgl.d.ts +0 -10
- package/dist/components/r2-layout/index.d.ts +0 -22
- package/dist/features/list-har-entries/components/har-entries-table.d.ts +0 -8
- package/dist/features/view-har-entry/components/headers-viewer.d.ts +0 -6
- package/dist/features/view-har-entry/components/payload-viewer.d.ts +0 -6
- package/dist/features/view-har-entry/components/response-viewer.d.ts +0 -6
- /package/dist/features/{list-har-entries/components → har-entries-viewer/components/har-entries-viewer-action-stripe}/compare-mode-switcher.d.ts +0 -0
- /package/dist/features/list-har-entries/components/{content-type-filter.d.ts → list-har-entries-table-header/content-type-filter.d.ts} +0 -0
- /package/dist/features/list-har-entries/components/{errors-filter.d.ts → list-har-entries-table-header/errors-filter.d.ts} +0 -0
package/dist/chunks/index2.js
CHANGED
|
@@ -1,60 +1,282 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(g, { children: n }) });
|
|
15
|
-
}
|
|
16
|
-
const s = "headers";
|
|
17
|
-
function D(n) {
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { useCollection as V } from "@cloudscape-design/collection-hooks";
|
|
3
|
+
import $ from "@cloudscape-design/components/collection-preferences";
|
|
4
|
+
import K from "@cloudscape-design/components/property-filter";
|
|
5
|
+
import M from "@cloudscape-design/components/table";
|
|
6
|
+
import { use as U, useState as T, useCallback as x, useEffect as q, useMemo as u, createContext as G } from "react";
|
|
7
|
+
import { a as _ } from "./common.js";
|
|
8
|
+
import Q from "@cloudscape-design/components/spinner";
|
|
9
|
+
import { U as X } from "./context.js";
|
|
10
|
+
function Y() {
|
|
11
|
+
return U(X);
|
|
12
|
+
}
|
|
13
|
+
function Z(t) {
|
|
18
14
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
context: r,
|
|
16
|
+
preferenceKey: e,
|
|
17
|
+
defaultPreferenceValue: o,
|
|
18
|
+
children: n
|
|
19
|
+
} = t, [a, m] = T(!1), [s, c] = T(o), p = Y(), C = x(async () => {
|
|
20
|
+
if (p) {
|
|
21
|
+
m(!0);
|
|
22
|
+
try {
|
|
23
|
+
const l = await p.getPreference(e);
|
|
24
|
+
if (!l)
|
|
25
|
+
return;
|
|
26
|
+
const P = JSON.parse(l);
|
|
27
|
+
c(P);
|
|
28
|
+
} catch (l) {
|
|
29
|
+
console.error("Failed to load theme preference:", l);
|
|
30
|
+
} finally {
|
|
31
|
+
m(!1);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, [p, e]);
|
|
35
|
+
q(() => {
|
|
36
|
+
C();
|
|
37
|
+
}, [C]);
|
|
38
|
+
const b = x(async (l) => {
|
|
39
|
+
if (p)
|
|
40
|
+
try {
|
|
41
|
+
await p.setPreference(e, JSON.stringify(l));
|
|
42
|
+
} catch (P) {
|
|
43
|
+
console.error("Failed to save theme preference:", P);
|
|
44
|
+
}
|
|
45
|
+
}, [p, e]), h = x((l) => {
|
|
46
|
+
c(l), b(l);
|
|
47
|
+
}, [b]), d = u(() => [s, h], [s, h]);
|
|
48
|
+
return a ? /* @__PURE__ */ y(Q, { size: "large" }) : /* @__PURE__ */ y(r, { value: d, children: n });
|
|
49
|
+
}
|
|
50
|
+
function R(t, r) {
|
|
51
|
+
const e = G([r, () => {
|
|
52
|
+
}]);
|
|
53
|
+
return { useUserPreferences: () => U(e), Provider: ({ children: a }) => /* @__PURE__ */ y(
|
|
54
|
+
Z,
|
|
25
55
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
56
|
+
context: e,
|
|
57
|
+
preferenceKey: t,
|
|
58
|
+
defaultPreferenceValue: r,
|
|
59
|
+
children: a
|
|
60
|
+
}
|
|
61
|
+
) };
|
|
62
|
+
}
|
|
63
|
+
const k = {
|
|
64
|
+
collectionPreferences: void 0,
|
|
65
|
+
preferredColumnWidths: []
|
|
66
|
+
};
|
|
67
|
+
function Pe(t) {
|
|
68
|
+
return R(
|
|
69
|
+
t,
|
|
70
|
+
k
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function ee(t, r) {
|
|
74
|
+
return t.map((e) => ({
|
|
75
|
+
..._(r).reduce(
|
|
76
|
+
(n, [a, { cell: m }]) => {
|
|
77
|
+
const { value: s } = m(e);
|
|
78
|
+
return n[a] = s, n;
|
|
30
79
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
80
|
+
{}
|
|
81
|
+
),
|
|
82
|
+
__originalItem__: e
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
function re(t) {
|
|
86
|
+
return _(t).map(([r, { header: e, type: o }]) => {
|
|
87
|
+
const n = {
|
|
88
|
+
key: r,
|
|
89
|
+
groupValuesLabel: `${e} values`,
|
|
90
|
+
propertyLabel: e,
|
|
91
|
+
operators: ["=", "!=", ":", "!:", "^", "!^"]
|
|
92
|
+
};
|
|
93
|
+
return o === "number" ? {
|
|
94
|
+
...n,
|
|
95
|
+
operators: ["=", "!=", ">", ">=", "<", "<="]
|
|
96
|
+
} : o === "date" ? {
|
|
97
|
+
...n,
|
|
98
|
+
operators: [
|
|
99
|
+
{ operator: "=", match: "datetime" },
|
|
100
|
+
{ operator: "!=", match: "datetime" },
|
|
101
|
+
{ operator: ">", match: "datetime" },
|
|
102
|
+
{ operator: ">=", match: "datetime" },
|
|
103
|
+
{ operator: "<", match: "datetime" },
|
|
104
|
+
{ operator: "<=", match: "datetime" }
|
|
105
|
+
]
|
|
106
|
+
} : o === "list" ? {
|
|
107
|
+
...n,
|
|
108
|
+
operators: ["=", "!=", ":", "!:"]
|
|
109
|
+
} : n;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function te(t) {
|
|
113
|
+
return _(t).map(([r, {
|
|
114
|
+
header: e,
|
|
115
|
+
width: o,
|
|
116
|
+
isSortable: n = !0,
|
|
117
|
+
cell: a
|
|
118
|
+
}]) => ({
|
|
119
|
+
id: r,
|
|
120
|
+
header: e,
|
|
121
|
+
width: o,
|
|
122
|
+
sortingField: n ? r : void 0,
|
|
123
|
+
cell: (m) => {
|
|
124
|
+
const { value: s, content: c } = a(m.__originalItem__);
|
|
125
|
+
return c || (s instanceof Date ? s.getTime() : Array.isArray(s) ? s.join(", ") : s);
|
|
126
|
+
}
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
function ne(t) {
|
|
130
|
+
return _(t).map(([r, { header: e, isVisibleByDefault: o = !0 }]) => ({
|
|
131
|
+
id: r,
|
|
132
|
+
label: e,
|
|
133
|
+
visible: o
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
function oe(t, r) {
|
|
137
|
+
return t.map((e) => {
|
|
138
|
+
const o = r.find((n) => n.id === e.id)?.width;
|
|
139
|
+
return {
|
|
140
|
+
...e,
|
|
141
|
+
width: o ?? e.width
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function se(t, r) {
|
|
146
|
+
if (!t.contentDisplay)
|
|
147
|
+
return t;
|
|
148
|
+
const e = r.map(({ id: n }) => n), o = t.contentDisplay.filter(({ id: n }) => e.includes(n));
|
|
149
|
+
return {
|
|
150
|
+
...t,
|
|
151
|
+
contentDisplay: o
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function he({
|
|
155
|
+
items: t,
|
|
156
|
+
getRowId: r,
|
|
157
|
+
columnsDefinition: e,
|
|
158
|
+
// eslint-disable-next-line react/no-unnecessary-use-prefix
|
|
159
|
+
useTablePreferences: o = () => [k, () => {
|
|
160
|
+
}],
|
|
161
|
+
empty: n,
|
|
162
|
+
selectionType: a,
|
|
163
|
+
isEntireRowSelectable: m = !1,
|
|
164
|
+
selectedItems: s = [],
|
|
165
|
+
onSelectionChange: c,
|
|
166
|
+
contentDensity: p = "comfortable",
|
|
167
|
+
header: C,
|
|
168
|
+
variant: b = "borderless"
|
|
169
|
+
}) {
|
|
170
|
+
const h = u(
|
|
171
|
+
() => ee(t, e),
|
|
172
|
+
[t, e]
|
|
173
|
+
), d = u(() => te(e), [e]), l = u(
|
|
174
|
+
() => {
|
|
175
|
+
const i = new Set(s.map((f) => r(f)));
|
|
176
|
+
return h.filter(
|
|
177
|
+
(f) => i.has(r(f.__originalItem__))
|
|
178
|
+
);
|
|
179
|
+
},
|
|
180
|
+
[s, h, r]
|
|
181
|
+
), P = u(
|
|
182
|
+
() => ne(e),
|
|
183
|
+
[e]
|
|
184
|
+
), A = u(() => ({
|
|
185
|
+
contentDisplay: P,
|
|
186
|
+
wrapLines: !1
|
|
187
|
+
}), [P]), [{ collectionPreferences: S = A, preferredColumnWidths: v }, D] = o(), E = u(
|
|
188
|
+
() => se(S, d),
|
|
189
|
+
[S, d]
|
|
190
|
+
), I = u(
|
|
191
|
+
() => oe(d, v),
|
|
192
|
+
[d, v]
|
|
193
|
+
), N = (i) => {
|
|
194
|
+
D({
|
|
195
|
+
collectionPreferences: i,
|
|
196
|
+
preferredColumnWidths: v
|
|
197
|
+
});
|
|
198
|
+
}, O = (i) => {
|
|
199
|
+
D({
|
|
200
|
+
collectionPreferences: S,
|
|
201
|
+
preferredColumnWidths: i
|
|
202
|
+
});
|
|
203
|
+
}, j = ({ detail: { item: i } }) => {
|
|
204
|
+
if (!c || !a)
|
|
205
|
+
return;
|
|
206
|
+
const f = i.__originalItem__;
|
|
207
|
+
if (a === "single") {
|
|
208
|
+
c([f]);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
const g = r(f), W = s.some((F) => r(F) === g);
|
|
212
|
+
c(W ? s.filter((F) => r(F) !== g) : [...s, f]);
|
|
213
|
+
}, w = (i) => r(i.__originalItem__), z = u(
|
|
214
|
+
() => re(e),
|
|
215
|
+
[e]
|
|
216
|
+
), {
|
|
217
|
+
items: B,
|
|
218
|
+
collectionProps: H,
|
|
219
|
+
propertyFilterProps: J,
|
|
220
|
+
filteredItemsCount: L
|
|
221
|
+
} = V(h, {
|
|
222
|
+
propertyFiltering: {
|
|
223
|
+
filteringProperties: z
|
|
224
|
+
},
|
|
225
|
+
sorting: {},
|
|
226
|
+
selection: { keepSelection: !0, trackBy: w }
|
|
227
|
+
});
|
|
228
|
+
return /* @__PURE__ */ y(
|
|
229
|
+
M,
|
|
230
|
+
{
|
|
231
|
+
...H,
|
|
232
|
+
header: C,
|
|
233
|
+
variant: b,
|
|
234
|
+
contentDensity: p,
|
|
235
|
+
resizableColumns: !0,
|
|
236
|
+
stripedRows: !0,
|
|
237
|
+
stickyHeader: !0,
|
|
238
|
+
wrapLines: E.wrapLines,
|
|
239
|
+
columnDefinitions: I,
|
|
240
|
+
columnDisplay: E.contentDisplay,
|
|
241
|
+
onColumnWidthsChange: ({ detail: i }) => {
|
|
242
|
+
const f = d.map(({ id: g }, W) => ({
|
|
243
|
+
id: g,
|
|
244
|
+
width: i.widths[W]
|
|
245
|
+
}));
|
|
246
|
+
O(f);
|
|
247
|
+
},
|
|
248
|
+
items: B,
|
|
249
|
+
trackBy: w,
|
|
250
|
+
empty: n,
|
|
251
|
+
selectionType: a,
|
|
252
|
+
onRowClick: m ? j : void 0,
|
|
253
|
+
selectedItems: l,
|
|
254
|
+
onSelectionChange: (i) => {
|
|
255
|
+
c && c(i.detail.selectedItems.map((f) => f.__originalItem__));
|
|
256
|
+
},
|
|
257
|
+
filter: /* @__PURE__ */ y(
|
|
258
|
+
K,
|
|
42
259
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
260
|
+
countText: L ? `${L} matches` : void 0,
|
|
261
|
+
...J
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
preferences: /* @__PURE__ */ y(
|
|
265
|
+
$,
|
|
47
266
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
267
|
+
wrapLinesPreference: {},
|
|
268
|
+
contentDisplayPreference: { options: P, enableColumnFiltering: !0 },
|
|
269
|
+
preferences: E,
|
|
270
|
+
onConfirm: ({ detail: i }) => {
|
|
271
|
+
N(i);
|
|
272
|
+
}
|
|
51
273
|
}
|
|
52
|
-
|
|
274
|
+
)
|
|
53
275
|
}
|
|
54
276
|
);
|
|
55
277
|
}
|
|
56
278
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
279
|
+
he as E,
|
|
280
|
+
Pe as a,
|
|
281
|
+
R as c
|
|
60
282
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { L as o, b as l, a as E } from "./index.js";
|
|
3
|
+
function c(s) {
|
|
4
|
+
const {
|
|
5
|
+
harEntries: e,
|
|
6
|
+
title: r,
|
|
7
|
+
selectedHAREntries: i,
|
|
8
|
+
onSelectionChange: n
|
|
9
|
+
} = s;
|
|
10
|
+
return /* @__PURE__ */ a(o, { children: [
|
|
11
|
+
/* @__PURE__ */ t(
|
|
12
|
+
l,
|
|
13
|
+
{
|
|
14
|
+
harEntries: e,
|
|
15
|
+
title: r
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ t(
|
|
19
|
+
E,
|
|
20
|
+
{
|
|
21
|
+
harEntries: e,
|
|
22
|
+
selectedHAREntries: i,
|
|
23
|
+
onSelectionChange: n
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] });
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
c as L
|
|
30
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as a } from "react";
|
|
3
|
+
import { C as m } from "./collapsible-key-value-list.js";
|
|
4
|
+
import { H as l } from "./har-entry-response-status.js";
|
|
5
|
+
function H({ harEntry: e }) {
|
|
6
|
+
const t = a(() => [...[
|
|
7
|
+
{
|
|
8
|
+
name: "URL",
|
|
9
|
+
value: e.request.url
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "Method",
|
|
13
|
+
value: e.request.method
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "Status",
|
|
17
|
+
value: `${e.response.status}`,
|
|
18
|
+
content: /* @__PURE__ */ s(l, { harEntry: e })
|
|
19
|
+
}
|
|
20
|
+
], ...e.request.headers].map((o, u) => ({
|
|
21
|
+
...o,
|
|
22
|
+
id: `${u}`
|
|
23
|
+
})), [e]);
|
|
24
|
+
return /* @__PURE__ */ s(
|
|
25
|
+
m,
|
|
26
|
+
{
|
|
27
|
+
items: t,
|
|
28
|
+
sectionTitle: "Headers"
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
H as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as l } from "react";
|
|
3
|
+
import { C as p } from "./collapsible-key-value-list.js";
|
|
4
|
+
import { C as n } from "./collapsible-section.js";
|
|
5
|
+
import { V as u } from "./vertical-gap.js";
|
|
6
|
+
import c from "./content-viewer.js";
|
|
7
|
+
function V({ harEntry: e }) {
|
|
8
|
+
const o = e.request.postData?.text ?? "", i = e.request.postData?.mimeType, r = l(() => e.request.queryString.map((s, m) => ({
|
|
9
|
+
...s,
|
|
10
|
+
id: `${m}`
|
|
11
|
+
})), [e.request.queryString]);
|
|
12
|
+
return /* @__PURE__ */ a(u, { children: [
|
|
13
|
+
/* @__PURE__ */ t(
|
|
14
|
+
p,
|
|
15
|
+
{
|
|
16
|
+
sectionTitle: "Query Parameters",
|
|
17
|
+
items: r
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ t(n, { title: "Payload", children: /* @__PURE__ */ t(c, { content: o, mimeType: i }) })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
V as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as i } from "react";
|
|
3
|
+
import { C as a } from "./collapsible-key-value-list.js";
|
|
4
|
+
function d({ harEntry: e }) {
|
|
5
|
+
const s = i(() => e.response.headers.map((o, r) => ({
|
|
6
|
+
...o,
|
|
7
|
+
id: `${r}`
|
|
8
|
+
})), [e.response.headers]);
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
|
+
a,
|
|
11
|
+
{
|
|
12
|
+
items: s,
|
|
13
|
+
sectionTitle: "Headers"
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { C as i } from "./collapsible-section.js";
|
|
3
|
+
import c from "./content-viewer.js";
|
|
4
|
+
function l({ harEntry: e }) {
|
|
5
|
+
const n = e.response.content.text ?? "", t = e.response.content.encoding, s = e.response.content.mimeType;
|
|
6
|
+
return /* @__PURE__ */ o(i, { title: "Payload", children: /* @__PURE__ */ o(c, { content: n, encoding: t, mimeType: s }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
l as default
|
|
10
|
+
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
interface CollapsibleKeyValueListProps {
|
|
2
|
-
title: string;
|
|
3
3
|
items: {
|
|
4
|
+
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
value: string;
|
|
7
|
+
content?: ReactNode;
|
|
6
8
|
}[];
|
|
9
|
+
sectionTitle: string;
|
|
10
|
+
keyTitle?: string;
|
|
11
|
+
valueTitle?: string;
|
|
7
12
|
}
|
|
8
|
-
export default function CollapsibleKeyValueList(
|
|
13
|
+
export default function CollapsibleKeyValueList(props: CollapsibleKeyValueListProps): import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ExpandableSectionProps } from '@cloudscape-design/components/expandable-section';
|
|
1
2
|
type CollapsibleSectionProps = React.PropsWithChildren<{
|
|
2
3
|
title: string;
|
|
3
|
-
variant?: '
|
|
4
|
+
variant?: ExpandableSectionProps['variant'];
|
|
4
5
|
}>;
|
|
5
6
|
export default function CollapsibleSection({ title, children, variant, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BoardProps } from '@cloudscape-design/board-components';
|
|
2
|
+
interface EnhancedBoardItemData {
|
|
3
|
+
componentType: string;
|
|
4
|
+
instanceId: string;
|
|
5
|
+
}
|
|
6
|
+
export type EnhancedBoardDefinition = Omit<BoardProps.Item<EnhancedBoardItemData>, 'id'>;
|
|
7
|
+
export type EnhancedBoardDefinitions = ReadonlyArray<EnhancedBoardDefinition>;
|
|
8
|
+
export declare const boardItemI18nStrings: {
|
|
9
|
+
dragHandleAriaLabel: string;
|
|
10
|
+
dragHandleAriaDescription: string;
|
|
11
|
+
resizeHandleAriaLabel: string;
|
|
12
|
+
resizeHandleAriaDescription: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const boardI18nStrings: {
|
|
15
|
+
liveAnnouncementDndStarted: (operationType: BoardProps.DndOperationType) => "Resizing" | "Dragging";
|
|
16
|
+
liveAnnouncementDndItemReordered: (operation: BoardProps.DndReorderState<EnhancedBoardItemData>) => string;
|
|
17
|
+
liveAnnouncementDndItemResized: (operation: BoardProps.DndResizeState<EnhancedBoardItemData>) => string;
|
|
18
|
+
liveAnnouncementDndItemInserted: (operation: BoardProps.DndInsertState<EnhancedBoardItemData>) => string;
|
|
19
|
+
liveAnnouncementDndCommitted: (operationType: BoardProps.DndOperationType) => string;
|
|
20
|
+
liveAnnouncementDndDiscarded: (operationType: BoardProps.DndOperationType) => string;
|
|
21
|
+
liveAnnouncementItemRemoved: (op: BoardProps.ItemRemovedState<EnhancedBoardItemData>) => string;
|
|
22
|
+
navigationAriaLabel: string;
|
|
23
|
+
navigationAriaDescription: string;
|
|
24
|
+
navigationItemAriaLabel: (item: BoardProps.Item<EnhancedBoardItemData> | null) => string;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EnhancedBoardDefinition, EnhancedBoardDefinitions } from './i18n';
|
|
3
|
+
interface ComponentDefinition {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
header?: ReactNode;
|
|
6
|
+
onRemove?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface EnhancedBoardProps {
|
|
9
|
+
components: Record<string, ComponentDefinition | ((instanceId: EnhancedBoardDefinition['data']['instanceId']) => ComponentDefinition)>;
|
|
10
|
+
definitions: EnhancedBoardDefinitions;
|
|
11
|
+
onDefinitionsChange: (definitions: EnhancedBoardDefinitions) => void;
|
|
12
|
+
empty?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export default function EnhancedBoard(props: EnhancedBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CollectionPreferencesProps } from '@cloudscape-design/components/collection-preferences';
|
|
2
1
|
import { TableProps } from '@cloudscape-design/components/table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { EnhancedTablePreferences } from './preferences';
|
|
3
4
|
interface BaseColumnDefinition {
|
|
4
5
|
header: string;
|
|
5
6
|
width?: number;
|
|
@@ -10,51 +11,44 @@ interface DefaultColumnDefinition<TItem> {
|
|
|
10
11
|
type?: 'string';
|
|
11
12
|
cell: (item: TItem) => {
|
|
12
13
|
value: string;
|
|
13
|
-
content?:
|
|
14
|
+
content?: ReactNode;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
interface NumericColumnDefinition<TItem> {
|
|
17
18
|
type: 'number';
|
|
18
19
|
cell: (item: TItem) => {
|
|
19
20
|
value: number;
|
|
20
|
-
content?:
|
|
21
|
+
content?: ReactNode;
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
interface DateColumnDefinition<TItem> {
|
|
24
25
|
type: 'date';
|
|
25
26
|
cell: (item: TItem) => {
|
|
26
27
|
value: Date;
|
|
27
|
-
content?:
|
|
28
|
+
content?: ReactNode;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
interface ListColumnDefinition<TItem> {
|
|
31
32
|
type: 'list';
|
|
32
33
|
cell: (item: TItem) => {
|
|
33
34
|
value: string[];
|
|
34
|
-
content?:
|
|
35
|
+
content?: ReactNode;
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
type EnhancedColumnDefinition<TItem> = BaseColumnDefinition & (DefaultColumnDefinition<TItem> | NumericColumnDefinition<TItem> | DateColumnDefinition<TItem> | ListColumnDefinition<TItem>);
|
|
38
39
|
export type EnhancedTableColumnsDefinition<TItem> = Record<string, EnhancedColumnDefinition<TItem>>;
|
|
39
|
-
export interface EnhancedTablePreferences {
|
|
40
|
-
collectionPreferences: CollectionPreferencesProps.Preferences | undefined;
|
|
41
|
-
preferredColumnWidths: {
|
|
42
|
-
id: string;
|
|
43
|
-
width?: number;
|
|
44
|
-
}[];
|
|
45
|
-
}
|
|
46
40
|
interface EnhancedTableProps<TItem> {
|
|
47
41
|
items: TItem[];
|
|
48
42
|
getRowId: (item: TItem) => string;
|
|
49
43
|
columnsDefinition: EnhancedTableColumnsDefinition<TItem>;
|
|
50
|
-
useTablePreferences
|
|
51
|
-
empty?:
|
|
44
|
+
useTablePreferences?: () => [EnhancedTablePreferences, (preferences: EnhancedTablePreferences) => void];
|
|
45
|
+
empty?: ReactNode;
|
|
52
46
|
selectionType?: 'single' | 'multi';
|
|
53
47
|
isEntireRowSelectable?: boolean;
|
|
54
48
|
selectedItems?: TItem[];
|
|
55
49
|
onSelectionChange?: (selectedItems: TItem[]) => void;
|
|
56
50
|
contentDensity?: 'compact' | 'comfortable';
|
|
57
|
-
header?:
|
|
51
|
+
header?: ReactNode;
|
|
58
52
|
variant?: TableProps['variant'];
|
|
59
53
|
}
|
|
60
54
|
export default function EnhancedTable<TItem>({ items: originalItems, getRowId, columnsDefinition: enhancedColumnDefinitions, useTablePreferences, empty, selectionType, isEntireRowSelectable, selectedItems, onSelectionChange, contentDensity, header, variant, }: EnhancedTableProps<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CollectionPreferencesProps } from '@cloudscape-design/components/collection-preferences';
|
|
2
|
+
export interface EnhancedTablePreferences {
|
|
3
|
+
collectionPreferences: CollectionPreferencesProps.Preferences | undefined;
|
|
4
|
+
preferredColumnWidths: {
|
|
5
|
+
id: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_ENHANCED_TABLE_PREFERENCES: EnhancedTablePreferences;
|
|
10
|
+
export declare function createTablePreferencesContext(key: string): {
|
|
11
|
+
useUserPreferences: () => import('../../context/user-preferences/provider').UserPreferencesContextValue<EnhancedTablePreferences>;
|
|
12
|
+
Provider: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
interface AppLayoutProps {
|
|
2
|
-
logo?:
|
|
3
|
+
logo?: ReactNode;
|
|
3
4
|
appName: string;
|
|
4
|
-
content:
|
|
5
|
+
content: ReactNode;
|
|
5
6
|
}
|
|
6
7
|
export default function AppLayout({ logo, appName, content, }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export declare const TOP_NAVIGATION_ID = "top-navigation";
|
|
2
3
|
interface TopNavigationProps {
|
|
3
|
-
logo?:
|
|
4
|
+
logo?: ReactNode;
|
|
4
5
|
appName: string;
|
|
5
|
-
utilities?:
|
|
6
|
+
utilities?: ReactNode;
|
|
6
7
|
}
|
|
7
8
|
export default function TopNavigation({ logo, appName, utilities, }: TopNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
package/dist/features/har-entries-viewer/components/har-entries-viewer-action-stripe/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { HAREntry } from '../../../../utils/har';
|
|
3
|
+
interface HAREntriesViewerActionStripeProps {
|
|
4
|
+
harEntries: HAREntry[];
|
|
5
|
+
additionalActions?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function HAREntriesViewerActionStripe(props: HAREntriesViewerActionStripeProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|