@har-analyzer/components 0.0.17 → 0.0.19
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/content-viewer.js +4 -4
- 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/utils/json.d.ts +1 -1
- 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/utils/common.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare function objectKeys<T extends object>(obj: T): Array<keyof T>;
|
|
2
2
|
export declare function objectEntries<T extends object>(obj: T): Array<[keyof T, T[keyof T]]>;
|
|
3
|
+
export declare function objectFromEntries<K extends PropertyKey, V>(entries: Iterable<readonly [K, V]>): {
|
|
4
|
+
[key in K]: V;
|
|
5
|
+
};
|
package/dist/utils/json.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function safeDeserialize<T>(jsonString: string): readonly [
|
|
1
|
+
export declare function safeDeserialize<T>(jsonString: string): readonly [undefined, T] | readonly [unknown, undefined];
|
package/dist/view-har-entry.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@cloudscape-design/components/tabs";
|
|
3
3
|
import "react";
|
|
4
|
-
import { V as
|
|
4
|
+
import { D, V as E } from "./chunks/index2.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
D as DEFAULT_SELECTED_TAB_ID,
|
|
7
|
+
E as default
|
|
7
8
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@har-analyzer/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"description": "Reusable React components for HAR Analyzer",
|
|
6
6
|
"author": "Allan Joshua",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"prepublishOnly": "pnpm validate"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@cloudscape-design/board-components": "^3.0.150",
|
|
53
52
|
"@cloudscape-design/code-view": "^3.0.66",
|
|
54
53
|
"@cloudscape-design/collection-hooks": "^1.0.73",
|
|
55
54
|
"@cloudscape-design/components": "^3.0.1022",
|
|
@@ -63,6 +62,7 @@
|
|
|
63
62
|
"buffer": "^6.0.3",
|
|
64
63
|
"date-fns": "^4.1.0",
|
|
65
64
|
"date-fns-tz": "^3.2.0",
|
|
65
|
+
"fast-grid-layout": "^0.1.0",
|
|
66
66
|
"pretty-bytes": "^7.0.0",
|
|
67
67
|
"react-error-boundary": "^6.0.0"
|
|
68
68
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BoardProps } from '@cloudscape-design/board-components';
|
|
2
|
-
interface EnhancedBoardItemData {
|
|
3
|
-
componentKey: string;
|
|
4
|
-
instanceId: string;
|
|
5
|
-
}
|
|
6
|
-
export type EnhancedBoardDefinition = BoardProps.Item<EnhancedBoardItemData>;
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EnhancedBoardDefinition, EnhancedBoardDefinitions } from './constants/i18n';
|
|
2
|
-
interface ComponentDefinition {
|
|
3
|
-
content: React.ReactNode;
|
|
4
|
-
onRemove?: () => void;
|
|
5
|
-
}
|
|
6
|
-
export interface EnhancedBoardProps {
|
|
7
|
-
components: Record<string, ComponentDefinition | ((instanceId: EnhancedBoardDefinition['data']['instanceId']) => ComponentDefinition)>;
|
|
8
|
-
definitions: EnhancedBoardDefinitions;
|
|
9
|
-
onDefinitionsChange: (definitions: EnhancedBoardDefinitions) => void;
|
|
10
|
-
empty?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export default function EnhancedBoard(props: EnhancedBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|