@har-analyzer/components 0.0.18 → 0.0.20
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/assets/har-entries-viewer.css +1 -0
- package/dist/chunks/index.js +496 -477
- package/dist/chunks/index2.js +31 -20
- package/dist/components/close-overlay.d.ts +5 -0
- package/dist/components/complete-padding.d.ts +2 -0
- package/dist/components/enhanced-table.d.ts +3 -1
- package/dist/components/r2-layout/fgl.d.ts +10 -0
- package/dist/components/r2-layout/index.d.ts +22 -0
- package/dist/features/view-har-entry/index.d.ts +4 -1
- package/dist/har-entries-viewer.js +648 -146
- package/dist/utils/common.d.ts +3 -0
- package/dist/view-har-entry.js +3 -2
- package/package.json +2 -2
- package/dist/components/enhanced-board/constants/i18n.d.ts +0 -26
- package/dist/components/enhanced-board/index.d.ts +0 -13
package/dist/chunks/index2.js
CHANGED
|
@@ -1,49 +1,60 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Suspense as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */ e(
|
|
2
|
+
import b from "@cloudscape-design/components/tabs";
|
|
3
|
+
import { Suspense as T, lazy as i, useState as f, useMemo as h } from "react";
|
|
4
|
+
import y from "@cloudscape-design/components/box";
|
|
5
|
+
import u from "@cloudscape-design/components/spinner";
|
|
6
|
+
function g({ children: n }) {
|
|
7
|
+
return /* @__PURE__ */ e(y, { padding: { horizontal: "m" }, children: n });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
function I({ children: n }) {
|
|
10
|
+
return /* @__PURE__ */ e(T, { fallback: /* @__PURE__ */ e(u, { size: "large" }), children: n });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const A = i(() => import("./headers-viewer.js")), E = i(() => import("./payload-viewer.js")), C = i(() => import("./response-viewer.js")), H = i(() => import("./content-viewer.js"));
|
|
13
13
|
function o({ children: n }) {
|
|
14
|
-
return /* @__PURE__ */ e(
|
|
14
|
+
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(g, { children: n }) });
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const s = "headers";
|
|
17
|
+
function D(n) {
|
|
18
|
+
const {
|
|
19
|
+
harEntry: t,
|
|
20
|
+
initialSelectedTabId: c = s,
|
|
21
|
+
onSelectedTabIdChange: r
|
|
22
|
+
} = n, [d, l] = f(c), m = h(() => JSON.stringify(t), [t]);
|
|
18
23
|
return /* @__PURE__ */ e(
|
|
19
|
-
|
|
24
|
+
b,
|
|
20
25
|
{
|
|
26
|
+
activeTabId: d,
|
|
27
|
+
onChange: ({ detail: p }) => {
|
|
28
|
+
const { activeTabId: a } = p;
|
|
29
|
+
l(a), r && r(a);
|
|
30
|
+
},
|
|
21
31
|
tabs: [
|
|
22
32
|
{
|
|
23
33
|
label: "Headers",
|
|
24
|
-
id:
|
|
25
|
-
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
34
|
+
id: s,
|
|
35
|
+
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(A, { harEntry: t }) })
|
|
26
36
|
},
|
|
27
37
|
{
|
|
28
38
|
label: "Payload",
|
|
29
39
|
id: "payload",
|
|
30
|
-
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
40
|
+
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(E, { harEntry: t }) })
|
|
31
41
|
},
|
|
32
42
|
{
|
|
33
43
|
label: "Response",
|
|
34
44
|
id: "response",
|
|
35
|
-
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
45
|
+
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(C, { harEntry: t }) })
|
|
36
46
|
},
|
|
37
47
|
{
|
|
38
48
|
label: "HAR Entry",
|
|
39
49
|
id: "har-entry",
|
|
40
|
-
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
50
|
+
content: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(H, { content: m, mimeType: "json" }) })
|
|
41
51
|
}
|
|
42
52
|
]
|
|
43
53
|
}
|
|
44
54
|
);
|
|
45
55
|
}
|
|
46
56
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
s as D,
|
|
58
|
+
g as H,
|
|
59
|
+
D as V
|
|
49
60
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CollectionPreferencesProps } from '@cloudscape-design/components/collection-preferences';
|
|
2
|
+
import { TableProps } from '@cloudscape-design/components/table';
|
|
2
3
|
interface BaseColumnDefinition {
|
|
3
4
|
header: string;
|
|
4
5
|
width?: number;
|
|
@@ -54,6 +55,7 @@ interface EnhancedTableProps<TItem> {
|
|
|
54
55
|
onSelectionChange?: (selectedItems: TItem[]) => void;
|
|
55
56
|
contentDensity?: 'compact' | 'comfortable';
|
|
56
57
|
header?: React.ReactNode;
|
|
58
|
+
variant?: TableProps['variant'];
|
|
57
59
|
}
|
|
58
|
-
export default function EnhancedTable<TItem>({ items: originalItems, getRowId, columnsDefinition: enhancedColumnDefinitions, useTablePreferences, empty, selectionType, isEntireRowSelectable, selectedItems, onSelectionChange, contentDensity, header, }: EnhancedTableProps<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
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;
|
|
59
61
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridLayoutItem } from 'fast-grid-layout';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type FGLProps = PropsWithChildren<{
|
|
4
|
+
layout: GridLayoutItem[];
|
|
5
|
+
onChange: (newLayout: GridLayoutItem[]) => void;
|
|
6
|
+
totalColumns?: number;
|
|
7
|
+
gap?: number;
|
|
8
|
+
rowHeight?: number;
|
|
9
|
+
}>;
|
|
10
|
+
export default function FGL(props: FGLProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
interface CellDefinition<T> {
|
|
3
|
+
id: string;
|
|
4
|
+
w: number;
|
|
5
|
+
h: number;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
props: T;
|
|
9
|
+
}
|
|
10
|
+
export interface R2LayoutProps<T> {
|
|
11
|
+
layoutDefinitions: CellDefinition<T>[];
|
|
12
|
+
onRender: (id: string, props: T) => ReactNode;
|
|
13
|
+
onChange: (newLayoutDefinitions: CellDefinition<T>[]) => void;
|
|
14
|
+
layoutItemStyle?: CSSProperties;
|
|
15
|
+
totalColumns?: number;
|
|
16
|
+
gap?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Provides a re-arrangeable & re-sizeable layout
|
|
20
|
+
*/
|
|
21
|
+
export default function R2Layout<T>(props: R2LayoutProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { HAREntry } from '../../utils/har';
|
|
2
|
+
export declare const DEFAULT_SELECTED_TAB_ID = "headers";
|
|
2
3
|
export interface ViewHAREntryProps {
|
|
3
4
|
harEntry: HAREntry;
|
|
5
|
+
initialSelectedTabId?: string;
|
|
6
|
+
onSelectedTabIdChange?: (tabId: string) => void;
|
|
4
7
|
}
|
|
5
|
-
export default function ViewHAREntry(
|
|
8
|
+
export default function ViewHAREntry(props: ViewHAREntryProps): import("react/jsx-runtime").JSX.Element;
|