@metrevals/inspect-scout-viewer 0.3.2-beta.1764377954 → 0.3.3-beta.1765542109
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/lib/app/appearance/icons.d.ts +5 -0
- package/lib/app/components/ColumnHeader.d.ts +6 -0
- package/lib/app/result/ScanResultHeader.d.ts +2 -0
- package/lib/app/result/metadata/MetadataPanel.d.ts +7 -0
- package/lib/app/result/{input/InputPanel.d.ts → result/ResultBody.d.ts} +2 -2
- package/lib/app/result/result/ResultSidebar.d.ts +7 -0
- package/lib/app/scanner/results/ScanDataframeClearFiltersButton.d.ts +2 -0
- package/lib/app/scanner/results/ScanDataframeColumnsPopover.d.ts +5 -0
- package/lib/app/scanner/results/ScanDataframeFilterColumnsButton.d.ts +1 -0
- package/lib/app/scanner/results/ScanDataframeWrapTextButton.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsGroup.d.ts +2 -1
- package/lib/app/scanner/results/types.d.ts +1 -0
- package/lib/app/types.d.ts +1 -0
- package/lib/app/utils/arrow.d.ts +1 -1
- package/lib/app/utils/refs.d.ts +1 -0
- package/lib/app/values/Explanation.d.ts +5 -0
- package/lib/app/values/ValidationResult.d.ts +6 -0
- package/lib/app/values/Value.d.ts +7 -0
- package/lib/components/CopyButton.d.ts +2 -1
- package/lib/components/DataframeView.d.ts +4 -0
- package/lib/components/MarkdownDivWithReferences.d.ts +3 -0
- package/lib/content/MetaDataGrid.d.ts +5 -2
- package/lib/content/RenderedText.d.ts +3 -0
- package/lib/content/types.d.ts +1 -0
- package/lib/index.js +1847 -1000
- package/lib/index.js.map +1 -1
- package/lib/state/store.d.ts +11 -3
- package/lib/styles/index.css +206 -62
- package/lib/types/index.d.ts +11 -10
- package/lib/utils/format.d.ts +1 -0
- package/package.json +6 -2
package/lib/state/store.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { GridState } from 'ag-grid-community';
|
|
|
2
2
|
import { ColumnTable } from 'arquero';
|
|
3
3
|
import { StateSnapshot } from 'react-virtuoso';
|
|
4
4
|
import { ScanApi } from '../api/api';
|
|
5
|
-
import { ErrorScope, ScannerCore, SortColumn } from '../app/types';
|
|
5
|
+
import { ErrorScope, ResultGroup, ScannerCore, SortColumn } from '../app/types';
|
|
6
6
|
import { Status } from '../types';
|
|
7
7
|
interface StoreState {
|
|
8
8
|
singleFileMode?: boolean;
|
|
@@ -17,6 +17,7 @@ interface StoreState {
|
|
|
17
17
|
selectedScanLocation?: string;
|
|
18
18
|
selectedScanStatus?: Status;
|
|
19
19
|
visibleScannerResults: ScannerCore[];
|
|
20
|
+
visibleScannerResultsCount: number;
|
|
20
21
|
selectedScanResult?: string;
|
|
21
22
|
properties: Record<string, Record<string, unknown> | undefined>;
|
|
22
23
|
scrollPositions: Record<string, number>;
|
|
@@ -33,11 +34,14 @@ interface StoreState {
|
|
|
33
34
|
selectedResultsView?: string;
|
|
34
35
|
selectedFilter?: string;
|
|
35
36
|
showingRefPopover?: string;
|
|
36
|
-
groupResultsBy?:
|
|
37
|
+
groupResultsBy?: ResultGroup;
|
|
37
38
|
sortResults?: SortColumn[];
|
|
38
39
|
scansSearchText?: string;
|
|
39
40
|
highlightLabeled?: boolean;
|
|
40
41
|
selectedResultRow?: number;
|
|
42
|
+
dataframeWrapText?: boolean;
|
|
43
|
+
dataframeShowFilterColumns?: boolean;
|
|
44
|
+
dataframeFilterColumns?: string[];
|
|
41
45
|
transcriptCollapsedEvents: Record<string, Record<string, boolean>>;
|
|
42
46
|
transcriptOutlineId?: string;
|
|
43
47
|
setSingleFileMode: (enabled: boolean) => void;
|
|
@@ -60,6 +64,7 @@ interface StoreState {
|
|
|
60
64
|
setSelectedScanResultPreviews: (scanner?: string, previews?: ScannerCore[]) => void;
|
|
61
65
|
getSelectedScanResultPreviews: (scanner?: string) => ScannerCore[] | undefined;
|
|
62
66
|
setVisibleScannerResults: (results: ScannerCore[]) => void;
|
|
67
|
+
setVisibleScannerResultsCount: (count: number) => void;
|
|
63
68
|
clearScanState: () => void;
|
|
64
69
|
clearScansState: () => void;
|
|
65
70
|
setPropertyValue: <T>(id: string, propertyName: string, value: T) => void;
|
|
@@ -93,11 +98,14 @@ interface StoreState {
|
|
|
93
98
|
setSelectedFilter: (filter: string) => void;
|
|
94
99
|
setShowingRefPopover: (popoverKey: string) => void;
|
|
95
100
|
clearShowingRefPopover: () => void;
|
|
96
|
-
setGroupResultsBy: (groupBy:
|
|
101
|
+
setGroupResultsBy: (groupBy: ResultGroup) => void;
|
|
97
102
|
setSortResults: (sortColumns?: SortColumn[]) => void;
|
|
98
103
|
setScansSearchText: (text: string) => void;
|
|
99
104
|
setHighlightLabeled: (highlight: boolean) => void;
|
|
100
105
|
setSelectedResultRow: (row: number) => void;
|
|
106
|
+
setDataframeWrapText: (wrap: boolean) => void;
|
|
107
|
+
setDataframeFilterColumns: (columns: string[]) => void;
|
|
108
|
+
setDataframeShowFilterColumns: (show: boolean) => void;
|
|
101
109
|
}
|
|
102
110
|
export declare const createStore: (api: ScanApi) => import('zustand').UseBoundStore<Omit<Omit<Omit<import('zustand').StoreApi<StoreState>, "setState" | "devtools"> & {
|
|
103
111
|
setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
|
package/lib/styles/index.css
CHANGED
|
@@ -882,6 +882,9 @@ a._citationLink_1ggvf_9:hover {
|
|
|
882
882
|
._container_76qrl_7 {
|
|
883
883
|
padding: 0.5rem;
|
|
884
884
|
}
|
|
885
|
+
._container_5gpfz_1 {
|
|
886
|
+
padding: 1rem;
|
|
887
|
+
}
|
|
885
888
|
._progressContainer_1cjjr_1 {
|
|
886
889
|
width: 100%;
|
|
887
890
|
display: flex;
|
|
@@ -3946,13 +3949,49 @@ span.ap-marker-container:hover span.ap-marker {
|
|
|
3946
3949
|
border-top-left-radius: 0;
|
|
3947
3950
|
border-top-right-radius: 0;
|
|
3948
3951
|
}
|
|
3949
|
-
.
|
|
3950
|
-
|
|
3952
|
+
._header_189zi_1 {
|
|
3953
|
+
background-color: var(--bs-light-bg-subtle);
|
|
3954
|
+
border-bottom: solid 1px var(--bs-border-color);
|
|
3955
|
+
width: 100%;
|
|
3956
|
+
padding-left: 0.5rem;
|
|
3957
|
+
}
|
|
3958
|
+
._container_1fgdb_1 {
|
|
3951
3959
|
height: 100%;
|
|
3960
|
+
overflow-y: hidden;
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
._scrollable_1fgdb_6 {
|
|
3964
|
+
padding: 0.5rem;
|
|
3952
3965
|
overflow-y: auto;
|
|
3966
|
+
height: 100%;
|
|
3967
|
+
}
|
|
3968
|
+
._container_u4d55_1 {
|
|
3969
|
+
display: grid;
|
|
3970
|
+
grid-template-columns: 1fr 2fr;
|
|
3971
|
+
overflow-y: hidden;
|
|
3972
|
+
height: 100%;
|
|
3953
3973
|
}
|
|
3954
|
-
.
|
|
3955
|
-
|
|
3974
|
+
._result_f18wg_1 {
|
|
3975
|
+
display: inline-flex;
|
|
3976
|
+
justify-content: center;
|
|
3977
|
+
align-items: center;
|
|
3978
|
+
border-radius: 5px;
|
|
3979
|
+
padding: 8px;
|
|
3980
|
+
width: 2rem;
|
|
3981
|
+
height: 1rem;
|
|
3982
|
+
font-size: 0.7rem;
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
._true_f18wg_12 {
|
|
3986
|
+
border: solid var(--bs-success) 1px;
|
|
3987
|
+
color: var(--bs-success);
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
._false_f18wg_17 {
|
|
3991
|
+
border: solid var(--bs-danger) 1px;
|
|
3992
|
+
color: var(--bs-danger);
|
|
3993
|
+
}
|
|
3994
|
+
._boolean_1uivt_1 {
|
|
3956
3995
|
display: inline-flex;
|
|
3957
3996
|
justify-content: center;
|
|
3958
3997
|
align-items: center;
|
|
@@ -3960,61 +3999,88 @@ span.ap-marker-container:hover span.ap-marker {
|
|
|
3960
3999
|
padding: 8px;
|
|
3961
4000
|
width: 2.5rem;
|
|
3962
4001
|
height: 1rem;
|
|
4002
|
+
font-size: 0.7rem;
|
|
3963
4003
|
}
|
|
3964
4004
|
|
|
3965
|
-
.
|
|
4005
|
+
._true_1uivt_12 {
|
|
3966
4006
|
background-color: var(--bs-success);
|
|
3967
|
-
border
|
|
4007
|
+
border: solid var(--bs-success) 1px;
|
|
3968
4008
|
color: var(--bs-body-bg);
|
|
3969
4009
|
}
|
|
3970
4010
|
|
|
3971
|
-
.
|
|
4011
|
+
._false_1uivt_18 {
|
|
3972
4012
|
background-color: var(--bs-danger);
|
|
3973
|
-
border
|
|
4013
|
+
border: solid var(--bs-danger) 1px;
|
|
3974
4014
|
color: var(--bs-body-bg);
|
|
3975
4015
|
}
|
|
3976
4016
|
|
|
3977
|
-
.
|
|
4017
|
+
._valueTable_1uivt_24 {
|
|
3978
4018
|
display: grid;
|
|
3979
|
-
grid-template-columns:
|
|
4019
|
+
grid-template-columns: max-content auto;
|
|
3980
4020
|
column-gap: 1rem;
|
|
3981
4021
|
row-gap: 0rem;
|
|
3982
4022
|
}
|
|
3983
4023
|
|
|
3984
|
-
.
|
|
4024
|
+
._inline_1uivt_31 ._valueValue_1uivt_31 {
|
|
3985
4025
|
white-space: nowrap;
|
|
3986
4026
|
overflow: hidden;
|
|
3987
4027
|
text-overflow: ellipsis;
|
|
3988
4028
|
}
|
|
3989
4029
|
|
|
3990
|
-
.
|
|
4030
|
+
._inline_1uivt_31 ._valueValue_1uivt_31 p {
|
|
3991
4031
|
white-space: nowrap;
|
|
3992
4032
|
overflow: hidden;
|
|
3993
4033
|
text-overflow: ellipsis;
|
|
3994
4034
|
}
|
|
3995
4035
|
|
|
3996
|
-
pre.
|
|
4036
|
+
pre._value_1uivt_24 {
|
|
3997
4037
|
margin: 0;
|
|
3998
4038
|
}
|
|
3999
|
-
.
|
|
4039
|
+
._sidebar_ruino_1 {
|
|
4040
|
+
border-right: solid 1px var(--bs-border-color);
|
|
4000
4041
|
padding: 1rem;
|
|
4042
|
+
overflow-y: auto;
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
._container_ruino_7 {
|
|
4046
|
+
display: inline-grid;
|
|
4047
|
+
grid-template-columns: 1fr 2fr;
|
|
4048
|
+
align-self: start;
|
|
4049
|
+
row-gap: 0.5rem;
|
|
4001
4050
|
}
|
|
4002
4051
|
|
|
4003
|
-
.
|
|
4052
|
+
._colspan_ruino_14 {
|
|
4004
4053
|
grid-column: span 2;
|
|
4005
4054
|
}
|
|
4006
4055
|
|
|
4007
|
-
.
|
|
4056
|
+
._explanation_ruino_18 {
|
|
4008
4057
|
display: grid;
|
|
4009
4058
|
grid-template-columns: max-content 1fr;
|
|
4010
4059
|
column-gap: 1rem;
|
|
4011
4060
|
row-gap: 0.75rem;
|
|
4012
4061
|
}
|
|
4013
4062
|
|
|
4014
|
-
.
|
|
4063
|
+
._scanValue_ruino_25 {
|
|
4015
4064
|
padding-right: 0.5rem;
|
|
4016
4065
|
}
|
|
4017
|
-
|
|
4066
|
+
|
|
4067
|
+
._values_ruino_29 {
|
|
4068
|
+
display: grid;
|
|
4069
|
+
grid-template-columns: max-content auto;
|
|
4070
|
+
column-gap: 0.5rem;
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
._validation_ruino_35 {
|
|
4074
|
+
margin-left: 1rem;
|
|
4075
|
+
display: grid;
|
|
4076
|
+
grid-template-columns: max-content max-content;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
._validationLabel_ruino_41 {
|
|
4080
|
+
padding-right: 0.5rem;
|
|
4081
|
+
margin-top: 2px;
|
|
4082
|
+
}
|
|
4083
|
+
._header_87o1i_1 {
|
|
4018
4084
|
padding-left: 1rem;
|
|
4019
4085
|
padding-right: 1rem;
|
|
4020
4086
|
display: grid;
|
|
@@ -4025,24 +4091,28 @@ pre._value_xgip4_24 {
|
|
|
4025
4091
|
grid-template-rows: max-content max-content;
|
|
4026
4092
|
}
|
|
4027
4093
|
|
|
4028
|
-
.
|
|
4094
|
+
._oneCol_87o1i_12 {
|
|
4029
4095
|
grid-template-columns: 2fr;
|
|
4030
4096
|
}
|
|
4031
4097
|
|
|
4032
|
-
.
|
|
4098
|
+
._twoCol_87o1i_16 {
|
|
4033
4099
|
grid-template-columns: 1fr 1fr;
|
|
4034
4100
|
}
|
|
4035
4101
|
|
|
4036
|
-
.
|
|
4102
|
+
._threeCol_87o1i_20 {
|
|
4037
4103
|
grid-template-columns: 2fr 1fr 1fr;
|
|
4038
4104
|
}
|
|
4039
4105
|
|
|
4040
|
-
.
|
|
4106
|
+
._fourCol_87o1i_24 {
|
|
4041
4107
|
grid-template-columns: 2fr 1fr 1fr 1fr;
|
|
4042
4108
|
}
|
|
4043
4109
|
|
|
4044
|
-
.
|
|
4045
|
-
grid-template-columns:
|
|
4110
|
+
._fiveCol_87o1i_28 {
|
|
4111
|
+
grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
._sixCol_87o1i_32 {
|
|
4115
|
+
grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
|
|
4046
4116
|
}
|
|
4047
4117
|
._resultNav_oszqi_1 {
|
|
4048
4118
|
display: grid;
|
|
@@ -4060,31 +4130,35 @@ pre._value_xgip4_24 {
|
|
|
4060
4130
|
opacity: 0.5;
|
|
4061
4131
|
pointer-events: none;
|
|
4062
4132
|
}
|
|
4063
|
-
.
|
|
4133
|
+
._root_1ewhq_1 {
|
|
4064
4134
|
height: 100vh;
|
|
4065
4135
|
display: grid;
|
|
4066
4136
|
grid-template-rows: max-content max-content max-content max-content 1fr;
|
|
4067
4137
|
}
|
|
4068
4138
|
|
|
4069
|
-
.
|
|
4139
|
+
._scroller_1ewhq_7 {
|
|
4070
4140
|
height: 100%;
|
|
4071
4141
|
width: 100%;
|
|
4072
4142
|
overflow-y: auto;
|
|
4073
4143
|
}
|
|
4074
4144
|
|
|
4075
|
-
.
|
|
4145
|
+
._tabSet_1ewhq_13 {
|
|
4076
4146
|
max-height: 100%;
|
|
4077
4147
|
border-top: solid 1px var(--bs-border-color);
|
|
4078
|
-
overflow-y:
|
|
4148
|
+
overflow-y: hidden;
|
|
4079
4149
|
}
|
|
4080
4150
|
|
|
4081
|
-
.
|
|
4151
|
+
._tabControl_1ewhq_19 {
|
|
4082
4152
|
margin: 0.2rem;
|
|
4083
4153
|
}
|
|
4084
4154
|
|
|
4085
|
-
.
|
|
4155
|
+
._tabs_1ewhq_23 {
|
|
4086
4156
|
margin-right: 1rem;
|
|
4087
4157
|
}
|
|
4158
|
+
|
|
4159
|
+
._fullHeight_1ewhq_27 {
|
|
4160
|
+
height: 100%;
|
|
4161
|
+
}
|
|
4088
4162
|
._container_g5onx_1 {
|
|
4089
4163
|
overflow-y: auto;
|
|
4090
4164
|
}
|
|
@@ -4249,6 +4323,29 @@ pre._value_xgip4_24 {
|
|
|
4249
4323
|
display: grid;
|
|
4250
4324
|
grid-template-rows: max-content max-content max-content max-content 1fr;
|
|
4251
4325
|
}
|
|
4326
|
+
._gridWrapper_bykj9_1 {
|
|
4327
|
+
height: 100%;
|
|
4328
|
+
width: 100%;
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
/* Hide sort index numbers in multi-column sort */
|
|
4332
|
+
._gridWrapper_bykj9_1 .ag-header-cell .ag-sort-order {
|
|
4333
|
+
display: none;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
/* Set line height for grid cells */
|
|
4337
|
+
._gridWrapper_bykj9_1 .ag-cell {
|
|
4338
|
+
line-height: 1.1em;
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
/* Row numbers cell styling */
|
|
4342
|
+
._gridWrapper_bykj9_1 .ag-cell.row-number-cell {
|
|
4343
|
+
cursor: pointer;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
._gridWrapper_bykj9_1 .ag-cell.row-number-cell:hover {
|
|
4347
|
+
text-decoration: underline;
|
|
4348
|
+
}
|
|
4252
4349
|
._rootControl_19z32_1 {
|
|
4253
4350
|
background-color: var(--bs-body-bg);
|
|
4254
4351
|
border-radius: var(--bs-border-radius);
|
|
@@ -4281,6 +4378,48 @@ button._segment_19z32_10 {
|
|
|
4281
4378
|
._container_1q66p_1 {
|
|
4282
4379
|
margin: 0.5em;
|
|
4283
4380
|
}
|
|
4381
|
+
._grid_hbkjn_1 {
|
|
4382
|
+
display: grid;
|
|
4383
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
4384
|
+
column-gap: 2em;
|
|
4385
|
+
row-gap: 0.15em;
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
._row_hbkjn_8 {
|
|
4389
|
+
display: flex;
|
|
4390
|
+
align-items: center;
|
|
4391
|
+
gap: 0.5em;
|
|
4392
|
+
cursor: pointer;
|
|
4393
|
+
border-radius: var(--bs-border-radius);
|
|
4394
|
+
padding: 0.1em 0.4em;
|
|
4395
|
+
margin: 0 -0.4em;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
._row_hbkjn_8:hover {
|
|
4399
|
+
background-color: var(--bs-secondary-bg);
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
._links_hbkjn_22 {
|
|
4403
|
+
display: flex;
|
|
4404
|
+
padding-bottom: 0.2em;
|
|
4405
|
+
margin-bottom: 0.4em;
|
|
4406
|
+
column-gap: 0.3em;
|
|
4407
|
+
border-bottom: solid 1px var(--bs-border-color);
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
._links_hbkjn_22 a {
|
|
4411
|
+
cursor: pointer;
|
|
4412
|
+
text-decoration: none;
|
|
4413
|
+
color: var(--bs-link-color);
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
._links_hbkjn_22 a:hover {
|
|
4417
|
+
color: var(--bs-link-hover-color);
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
._selected_hbkjn_40 {
|
|
4421
|
+
font-weight: 600;
|
|
4422
|
+
}
|
|
4284
4423
|
._flex_1kye9_1 {
|
|
4285
4424
|
display: flex;
|
|
4286
4425
|
}
|
|
@@ -4299,20 +4438,6 @@ button._segment_19z32_10 {
|
|
|
4299
4438
|
margin-right: 0.3em;
|
|
4300
4439
|
margin-left: 0.2em;
|
|
4301
4440
|
}
|
|
4302
|
-
._gridWrapper_yeano_1 {
|
|
4303
|
-
height: 100%;
|
|
4304
|
-
width: 100%;
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
/* Hide sort index numbers in multi-column sort */
|
|
4308
|
-
._gridWrapper_yeano_1 .ag-header-cell .ag-sort-order {
|
|
4309
|
-
display: none;
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
/* Set line height for grid cells */
|
|
4313
|
-
._gridWrapper_yeano_1 .ag-cell {
|
|
4314
|
-
line-height: 1.1em;
|
|
4315
|
-
}
|
|
4316
4441
|
._header_u9u40_1 {
|
|
4317
4442
|
border-bottom: solid var(--bs-light-border-subtle) 1px;
|
|
4318
4443
|
padding: 0.3rem 1rem;
|
|
@@ -4420,23 +4545,31 @@ button._segment_19z32_10 {
|
|
|
4420
4545
|
._scrollContainer_94id2_15 {
|
|
4421
4546
|
overflow-y: auto;
|
|
4422
4547
|
}
|
|
4423
|
-
.
|
|
4548
|
+
._container_1ov9x_1 {
|
|
4424
4549
|
border-right: solid 1px var(--bs-border-color);
|
|
4425
4550
|
}
|
|
4426
4551
|
|
|
4427
|
-
.
|
|
4552
|
+
._entry_1ov9x_5 {
|
|
4428
4553
|
padding: 0.5em;
|
|
4554
|
+
display: grid;
|
|
4555
|
+
grid-template-columns: auto 1fr;
|
|
4556
|
+
column-gap: 0.5rem;
|
|
4429
4557
|
}
|
|
4430
4558
|
|
|
4431
|
-
.
|
|
4559
|
+
._entry_1ov9x_5._selected_1ov9x_12 {
|
|
4432
4560
|
background-color: var(--bs-secondary-bg);
|
|
4433
4561
|
}
|
|
4434
4562
|
|
|
4435
|
-
.
|
|
4563
|
+
._titleBlock_1ov9x_16 {
|
|
4436
4564
|
margin-bottom: 0.1rem;
|
|
4565
|
+
grid-column: 1 / -1;
|
|
4437
4566
|
}
|
|
4438
4567
|
|
|
4439
|
-
.
|
|
4568
|
+
._validations_1ov9x_21 {
|
|
4569
|
+
grid-column: 1 / -1;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
._subTitle_1ov9x_25 {
|
|
4440
4573
|
margin-top: -0.2rem;
|
|
4441
4574
|
max-height: 2rem;
|
|
4442
4575
|
overflow: hidden;
|
|
@@ -4446,14 +4579,25 @@ button._segment_19z32_10 {
|
|
|
4446
4579
|
word-wrap: break-word;
|
|
4447
4580
|
}
|
|
4448
4581
|
|
|
4449
|
-
.
|
|
4582
|
+
._selected_1ov9x_12 ._title_1ov9x_16 {
|
|
4450
4583
|
font-weight: 600;
|
|
4451
4584
|
}
|
|
4452
4585
|
|
|
4453
|
-
.
|
|
4586
|
+
._entry_1ov9x_5:hover {
|
|
4454
4587
|
color: var(--bs-link-hover-color);
|
|
4455
4588
|
cursor: pointer;
|
|
4456
4589
|
}
|
|
4590
|
+
|
|
4591
|
+
._numericResultTable_1ov9x_44 {
|
|
4592
|
+
display: grid;
|
|
4593
|
+
grid-template-columns: auto auto;
|
|
4594
|
+
column-gap: 0.5rem;
|
|
4595
|
+
row-gap: 0;
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
._contents_1ov9x_51 {
|
|
4599
|
+
display: contents;
|
|
4600
|
+
}
|
|
4457
4601
|
._container_1db6h_1 {
|
|
4458
4602
|
display: grid;
|
|
4459
4603
|
grid-template-columns: 200px 1fr;
|
|
@@ -4521,7 +4665,7 @@ button._segment_19z32_10 {
|
|
|
4521
4665
|
._tabControl_10t9t_10 {
|
|
4522
4666
|
padding: 0.3em 1em !important;
|
|
4523
4667
|
}
|
|
4524
|
-
.
|
|
4668
|
+
._scanTitleView_1ayz3_1 {
|
|
4525
4669
|
display: grid;
|
|
4526
4670
|
grid-template-columns: max-content max-content;
|
|
4527
4671
|
justify-content: space-between;
|
|
@@ -4530,7 +4674,7 @@ button._segment_19z32_10 {
|
|
|
4530
4674
|
padding: 0.5em;
|
|
4531
4675
|
}
|
|
4532
4676
|
|
|
4533
|
-
.
|
|
4677
|
+
._leftColumn_1ayz3_10 {
|
|
4534
4678
|
display: grid;
|
|
4535
4679
|
grid-template-columns: max-content max-content 1fr;
|
|
4536
4680
|
align-items: baseline;
|
|
@@ -4538,38 +4682,38 @@ button._segment_19z32_10 {
|
|
|
4538
4682
|
column-gap: 0.3rem;
|
|
4539
4683
|
}
|
|
4540
4684
|
|
|
4541
|
-
.
|
|
4685
|
+
._rightColumn_1ayz3_18 {
|
|
4542
4686
|
}
|
|
4543
4687
|
|
|
4544
|
-
.
|
|
4688
|
+
._scanTitleView_1ayz3_1 h1 {
|
|
4545
4689
|
margin: 0;
|
|
4546
4690
|
font-weight: 600;
|
|
4547
4691
|
font-size: 1.3em;
|
|
4548
4692
|
}
|
|
4549
4693
|
|
|
4550
|
-
.
|
|
4694
|
+
._scanTitleView_1ayz3_1 h2 {
|
|
4551
4695
|
margin: 0;
|
|
4552
4696
|
font-weight: 500;
|
|
4553
4697
|
font-size: 1em;
|
|
4554
4698
|
color: var(--bs-secondary-text-color);
|
|
4555
4699
|
}
|
|
4556
4700
|
|
|
4557
|
-
.
|
|
4701
|
+
._scanTitleView_1ayz3_1 ._secondaryRow_1ayz3_34 {
|
|
4558
4702
|
display: grid;
|
|
4559
4703
|
grid-template-columns: max-content max-content;
|
|
4560
4704
|
column-gap: 0.2rem;
|
|
4561
4705
|
}
|
|
4562
4706
|
|
|
4563
|
-
.
|
|
4707
|
+
._subtitle_1ayz3_40 {
|
|
4708
|
+
grid-column: 1 / -1;
|
|
4709
|
+
display: grid;
|
|
4710
|
+
grid-template-columns: max-content max-content max-content max-content max-content;
|
|
4711
|
+
column-gap: 0.1rem;
|
|
4564
4712
|
margin: 0;
|
|
4565
4713
|
font-size: 0.8em;
|
|
4566
4714
|
font-weight: 400;
|
|
4567
4715
|
color: var(--bs-secondary-text-color);
|
|
4568
4716
|
}
|
|
4569
|
-
|
|
4570
|
-
._subtitle_1vka4_47 {
|
|
4571
|
-
grid-column: 1 / -1;
|
|
4572
|
-
}
|
|
4573
4717
|
/**
|
|
4574
4718
|
* prism.js default theme for JavaScript, CSS and HTML
|
|
4575
4719
|
* Based on dabblet (http://dabblet.com)
|
package/lib/types/index.d.ts
CHANGED
|
@@ -34,23 +34,23 @@ export interface Model {
|
|
|
34
34
|
}
|
|
35
35
|
export interface Transcript {
|
|
36
36
|
type: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
location?: string;
|
|
38
|
+
transcript_ids: Record<string, string | null>;
|
|
39
|
+
count?: number;
|
|
40
40
|
}
|
|
41
41
|
export interface ScanSpec {
|
|
42
|
-
scan_file
|
|
42
|
+
scan_file?: string;
|
|
43
43
|
scan_id: string;
|
|
44
44
|
scan_name: string;
|
|
45
|
-
scan_args
|
|
45
|
+
scan_args?: Record<string, unknown>;
|
|
46
46
|
timestamp: string;
|
|
47
47
|
model: Model;
|
|
48
|
-
metadata
|
|
49
|
-
options
|
|
50
|
-
packages
|
|
51
|
-
revision
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
options?: Record<string, unknown>;
|
|
50
|
+
packages?: Record<string, unknown>;
|
|
51
|
+
revision?: Record<string, unknown>;
|
|
52
52
|
scanners: Record<string, Scanner>;
|
|
53
|
-
transcripts
|
|
53
|
+
transcripts?: Transcript;
|
|
54
54
|
}
|
|
55
55
|
export interface Scanner {
|
|
56
56
|
name: string;
|
|
@@ -64,6 +64,7 @@ export interface ScannerSummary {
|
|
|
64
64
|
tokens: number;
|
|
65
65
|
model_usage: Record<string, ModelUsage>;
|
|
66
66
|
validations: Array<boolean | Record<string, boolean>>;
|
|
67
|
+
metrics: Record<string, Record<string, number>>;
|
|
67
68
|
}
|
|
68
69
|
export interface ModelUsage {
|
|
69
70
|
input_tokens: number;
|
package/lib/utils/format.d.ts
CHANGED
|
@@ -45,3 +45,4 @@ export declare function formatDuration(start: Date, end: Date): string;
|
|
|
45
45
|
* @returns The truncated string with ellipsis in the middle if needed
|
|
46
46
|
*/
|
|
47
47
|
export declare function centerTruncate(str: string, maxLength?: number): string;
|
|
48
|
+
export declare function formatPercent(value: number): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metrevals/inspect-scout-viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3-beta.1765542109",
|
|
4
4
|
"description": "Inspect Scout viewer for evaluation logs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"directory": "src/inspect_scout/_view/www"
|
|
19
19
|
},
|
|
20
20
|
"packageManager": "pnpm@10.20.0",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": "22.21.1",
|
|
23
|
+
"pnpm": ">=9.0.0"
|
|
24
|
+
},
|
|
21
25
|
"scripts": {
|
|
22
26
|
"build": "npm run build:app",
|
|
23
27
|
"build:lib": "vite build --mode library",
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
"watch": "vite build --watch",
|
|
26
30
|
"watch:dev": "NODE_ENV=development vite build --watch --mode development",
|
|
27
31
|
"dev": "vite",
|
|
28
|
-
"prepublishOnly": "
|
|
32
|
+
"prepublishOnly": "pnpm build:lib",
|
|
29
33
|
"preview": "vite preview",
|
|
30
34
|
"lint": "eslint . --max-warnings 0",
|
|
31
35
|
"lint:fix": "eslint . --fix --max-warnings 0",
|