@har-analyzer/components 0.0.3 → 0.0.5
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/README.md +6 -5
- package/dist/assets/content-type.css +1 -0
- package/dist/assets/har-analyzer.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/internal.css +1 -0
- package/dist/chunks/content-type.js +6630 -0
- package/dist/chunks/index.js +13565 -0
- package/dist/chunks/index2.js +2059 -0
- package/dist/chunks/index3.js +1149 -0
- package/dist/chunks/index4.js +82 -0
- package/dist/chunks/internal.js +996 -0
- package/dist/chunks/vertical-gap.js +35 -0
- package/dist/har-analyzer.d.ts +11 -0
- package/dist/har-analyzer.js +6017 -0
- package/dist/har-entries-viewer.d.ts +27 -0
- package/dist/har-entries-viewer.js +7 -0
- package/dist/har-entry-viewer.d.ts +23 -0
- package/dist/har-entry-viewer.js +5 -0
- package/dist/har-file-uploader.d.ts +13 -0
- package/dist/har-file-uploader.js +8 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +10 -0
- package/package.json +13 -3
- package/dist/components.js +0 -30283
- package/dist/index.css +0 -1
- package/dist/lib/components/har-analyzer/index.d.ts +0 -6
- package/dist/lib/components/har-analyzer/index.d.ts.map +0 -1
- package/dist/lib/components/har-entries-viewer/content-type-filter.d.ts +0 -8
- package/dist/lib/components/har-entries-viewer/content-type-filter.d.ts.map +0 -1
- package/dist/lib/components/har-entries-viewer/errors-filter.d.ts +0 -7
- package/dist/lib/components/har-entries-viewer/errors-filter.d.ts.map +0 -1
- package/dist/lib/components/har-entries-viewer/index.d.ts +0 -8
- package/dist/lib/components/har-entries-viewer/index.d.ts.map +0 -1
- package/dist/lib/components/har-entries-viewer/list-har-entries.d.ts +0 -10
- package/dist/lib/components/har-entries-viewer/list-har-entries.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/content-viewer.d.ts +0 -8
- package/dist/lib/components/har-entry-viewer/content-viewer.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/headers-viewer.d.ts +0 -7
- package/dist/lib/components/har-entry-viewer/headers-viewer.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/index.d.ts +0 -6
- package/dist/lib/components/har-entry-viewer/index.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/list-items.d.ts +0 -10
- package/dist/lib/components/har-entry-viewer/list-items.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/payload-viewer.d.ts +0 -7
- package/dist/lib/components/har-entry-viewer/payload-viewer.d.ts.map +0 -1
- package/dist/lib/components/har-entry-viewer/response-viewer.d.ts +0 -7
- package/dist/lib/components/har-entry-viewer/response-viewer.d.ts.map +0 -1
- package/dist/lib/components/har-file-uploader/file-upload-error.d.ts +0 -6
- package/dist/lib/components/har-file-uploader/file-upload-error.d.ts.map +0 -1
- package/dist/lib/components/har-file-uploader/index.d.ts +0 -6
- package/dist/lib/components/har-file-uploader/index.d.ts.map +0 -1
- package/dist/lib/components/shared/collapsible-section.d.ts +0 -6
- package/dist/lib/components/shared/collapsible-section.d.ts.map +0 -1
- package/dist/lib/components/shared/enhanced-table.d.ts +0 -47
- package/dist/lib/components/shared/enhanced-table.d.ts.map +0 -1
- package/dist/lib/components/shared/enhanced-top-navigation.d.ts +0 -8
- package/dist/lib/components/shared/enhanced-top-navigation.d.ts.map +0 -1
- package/dist/lib/components/shared/horizontal-gap.d.ts +0 -7
- package/dist/lib/components/shared/horizontal-gap.d.ts.map +0 -1
- package/dist/lib/components/shared/simple-app-layout.d.ts +0 -11
- package/dist/lib/components/shared/simple-app-layout.d.ts.map +0 -1
- package/dist/lib/components/shared/simple-app-preferences/content-width-switcher.d.ts +0 -2
- package/dist/lib/components/shared/simple-app-preferences/content-width-switcher.d.ts.map +0 -1
- package/dist/lib/components/shared/simple-app-preferences/index.d.ts +0 -2
- package/dist/lib/components/shared/simple-app-preferences/index.d.ts.map +0 -1
- package/dist/lib/components/shared/simple-app-preferences/theme-switcher.d.ts +0 -2
- package/dist/lib/components/shared/simple-app-preferences/theme-switcher.d.ts.map +0 -1
- package/dist/lib/components/shared/vertical-gap.d.ts +0 -7
- package/dist/lib/components/shared/vertical-gap.d.ts.map +0 -1
- package/dist/lib/hooks/app-content-width.d.ts +0 -2
- package/dist/lib/hooks/app-content-width.d.ts.map +0 -1
- package/dist/lib/hooks/local-storage.d.ts +0 -2
- package/dist/lib/hooks/local-storage.d.ts.map +0 -1
- package/dist/lib/hooks/split-panel-preferences.d.ts +0 -4
- package/dist/lib/hooks/split-panel-preferences.d.ts.map +0 -1
- package/dist/lib/hooks/table-preferences.d.ts +0 -10
- package/dist/lib/hooks/table-preferences.d.ts.map +0 -1
- package/dist/lib/hooks/theme.d.ts +0 -2
- package/dist/lib/hooks/theme.d.ts.map +0 -1
- package/dist/lib/index.d.ts +0 -5
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/utils/common.d.ts +0 -3
- package/dist/lib/utils/common.d.ts.map +0 -1
- package/dist/lib/utils/content-type.d.ts +0 -5
- package/dist/lib/utils/content-type.d.ts.map +0 -1
- package/dist/lib/utils/date.d.ts +0 -3
- package/dist/lib/utils/date.d.ts.map +0 -1
- package/dist/lib/utils/file-upload.d.ts +0 -4
- package/dist/lib/utils/file-upload.d.ts.map +0 -1
- package/dist/lib/utils/har.d.ts +0 -18
- package/dist/lib/utils/har.d.ts.map +0 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { c as s, g as c, i as u, w as d } from "./content-type.js";
|
|
3
|
+
import '../assets/index.css';const f = {
|
|
4
|
+
maxContentWidth: "--awsui-max-content-width-kcc2gu",
|
|
5
|
+
minContentWidth: "--awsui-min-content-width-kcc2gu",
|
|
6
|
+
drawerSize: "--awsui-drawer-size-kcc2gu",
|
|
7
|
+
footerHeight: "--awsui-footer-height-kcc2gu",
|
|
8
|
+
headerHeight: "--awsui-header-height-kcc2gu",
|
|
9
|
+
layoutWidth: "--awsui-layout-width-kcc2gu",
|
|
10
|
+
mainOffsetLeft: "--awsui-main-offset-left-kcc2gu",
|
|
11
|
+
mobileBarHeight: "--awsui-mobile-bar-height-kcc2gu",
|
|
12
|
+
notificationsHeight: "--awsui-notifications-height-kcc2gu",
|
|
13
|
+
overlapHeight: "--awsui-overlap-height-kcc2gu",
|
|
14
|
+
navigationWidth: "--awsui-navigation-width-kcc2gu",
|
|
15
|
+
splitPanelReportedHeaderSize: "--awsui-split-panel-reported-header-size-kcc2gu",
|
|
16
|
+
splitPanelReportedSize: "--awsui-split-panel-reported-size-kcc2gu",
|
|
17
|
+
splitPanelHeight: "--awsui-split-panel-height-kcc2gu",
|
|
18
|
+
splitPanelMinWidth: "--awsui-split-panel-min-width-kcc2gu",
|
|
19
|
+
splitPanelMaxWidth: "--awsui-split-panel-max-width-kcc2gu",
|
|
20
|
+
toolsWidth: "--awsui-tools-width-kcc2gu",
|
|
21
|
+
toolsAnimationStartingOpacity: "--awsui-tools-animation-starting-opacity-kcc2gu",
|
|
22
|
+
flashbarStackDepth: "--awsui-flashbar-stack-depth-kcc2gu",
|
|
23
|
+
flashbarStackIndex: "--awsui-flashbar-stack-index-kcc2gu",
|
|
24
|
+
dropdownDefaultMaxWidth: "--awsui-dropdown-default-max-width-kcc2gu"
|
|
25
|
+
}, l = {
|
|
26
|
+
root: "awsui_root_xttbq_1rjuy_145"
|
|
27
|
+
};
|
|
28
|
+
function w(e) {
|
|
29
|
+
return o.createElement("span", Object.assign({}, e, { className: s(l.root, e.className) }));
|
|
30
|
+
}
|
|
31
|
+
function m(...e) {
|
|
32
|
+
return e.filter(Boolean).join(" ") || void 0;
|
|
33
|
+
}
|
|
34
|
+
function k(e) {
|
|
35
|
+
if (typeof e != "string")
|
|
36
|
+
throw new Error("File contents are invalid. Expected contents to be a stringified JSON.");
|
|
37
|
+
try {
|
|
38
|
+
return JSON.parse(e);
|
|
39
|
+
} catch (t) {
|
|
40
|
+
const n = "Failed to JSON parse file content";
|
|
41
|
+
throw console.error(n, t), new Error(n);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function y(e) {
|
|
45
|
+
return e?.log.entries || [];
|
|
46
|
+
}
|
|
47
|
+
function S(e, t) {
|
|
48
|
+
return t.length ? e.filter((i) => {
|
|
49
|
+
const a = i.response.content.mimeType, r = c(a);
|
|
50
|
+
return t.includes(r);
|
|
51
|
+
}) : e;
|
|
52
|
+
}
|
|
53
|
+
function h(e) {
|
|
54
|
+
const t = e.response.status;
|
|
55
|
+
return t < 200 || t >= 400;
|
|
56
|
+
}
|
|
57
|
+
function b(e) {
|
|
58
|
+
return e.filter((t) => h(t));
|
|
59
|
+
}
|
|
60
|
+
function x(e, t) {
|
|
61
|
+
const n = /* @__PURE__ */ new Set();
|
|
62
|
+
return e.forEach((i) => {
|
|
63
|
+
(i[t].headers || []).forEach((r) => {
|
|
64
|
+
n.add(r.name);
|
|
65
|
+
});
|
|
66
|
+
}), Array.from(n);
|
|
67
|
+
}
|
|
68
|
+
function E(e, t, n, i, a) {
|
|
69
|
+
n !== void 0 && a === void 0 && u && d(e, `You provided \`${t}\` prop without an \`${i}\` handler. This will render a read-only component. If the component should be mutable, set an \`${i}\` handler.`);
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
w as S,
|
|
73
|
+
f as a,
|
|
74
|
+
y as b,
|
|
75
|
+
E as c,
|
|
76
|
+
x as d,
|
|
77
|
+
b as e,
|
|
78
|
+
S as f,
|
|
79
|
+
k as g,
|
|
80
|
+
h as i,
|
|
81
|
+
m as j
|
|
82
|
+
};
|