@meridianlabs/log-viewer 0.3.196 → 0.3.197
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogListGrid.d.ts","sourceRoot":"","sources":["../../../../src/app/log-list/grid/LogListGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogListGrid.d.ts","sourceRoot":"","sources":["../../../../src/app/log-list/grid/LogListGrid.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EACL,EAAE,EAEF,SAAS,EAMV,MAAM,OAAO,CAAC;AAMf,OAAO,qBAAqB,CAAC;AAI7B,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,UAAU,gBAAgB;IACxB,KAAK,EAAE,KAAK,CAAC,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC,CAAC;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAkY5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleList.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/list/SampleList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleList.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/list/SampleList.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EACL,EAAE,EAEF,SAAS,EAKV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAS3D,OAAO,qBAAqB,CAAC;AAQ7B,UAAU,eAAe;IACvB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;CAC3D;AAKD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6SzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SamplesGrid.d.ts","sourceRoot":"","sources":["../../../../src/app/samples-panel/samples-grid/SamplesGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SamplesGrid.d.ts","sourceRoot":"","sources":["../../../../src/app/samples-panel/samples-grid/SamplesGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EAMP,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,SAAS,EAA2C,MAAM,OAAO,CAAC;AAK/E,OAAO,qBAAqB,CAAC;AAI7B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,UAAU,gBAAgB;IACxB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;CAC9B;AAGD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAyQ5C,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -106611,7 +106611,7 @@ const ViewerOptionsPopover = ({
|
|
|
106611
106611
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.fullWidth, styles$1d.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1d.logDir, children: logDir2 }) }),
|
|
106612
106612
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
106613
106613
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
106614
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
106614
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.197-0-g6e17b3bc6" }),
|
|
106615
106615
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
106616
106616
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
106617
106617
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
@@ -164629,6 +164629,16 @@ const LogListGrid = ({
|
|
|
164629
164629
|
gridElement.removeEventListener("keydown", handleKeyDown);
|
|
164630
164630
|
};
|
|
164631
164631
|
}, [handleKeyDown]);
|
|
164632
|
+
const handleCellMouseDown = useCallback(
|
|
164633
|
+
(e) => {
|
|
164634
|
+
const mouseEvent = e.event;
|
|
164635
|
+
if (mouseEvent?.button === 1 && e.data?.url) {
|
|
164636
|
+
mouseEvent.preventDefault();
|
|
164637
|
+
window.open(`#${e.data.url}`, "_blank");
|
|
164638
|
+
}
|
|
164639
|
+
},
|
|
164640
|
+
[]
|
|
164641
|
+
);
|
|
164632
164642
|
useEffect(() => {
|
|
164633
164643
|
const loadHeaders = async () => {
|
|
164634
164644
|
const filesToLoad = logFiles.filter((file) => !logPreviews[file.name]);
|
|
@@ -164795,6 +164805,7 @@ const LogListGrid = ({
|
|
|
164795
164805
|
}
|
|
164796
164806
|
},
|
|
164797
164807
|
onRowClicked: handleRowClick,
|
|
164808
|
+
onCellMouseDown: handleCellMouseDown,
|
|
164798
164809
|
onSortChanged: handleSortChanged,
|
|
164799
164810
|
onFilterChanged: handleFilterChanged,
|
|
164800
164811
|
loading: data.length === 0 && (loading > 0 || syncing)
|
|
@@ -203641,10 +203652,25 @@ const SampleList = memo((props) => {
|
|
|
203641
203652
|
useEffect(() => {
|
|
203642
203653
|
const el2 = gridContainerRef.current;
|
|
203643
203654
|
if (!el2) return;
|
|
203644
|
-
|
|
203645
|
-
|
|
203646
|
-
|
|
203655
|
+
el2.addEventListener("keydown", handleKeyDown);
|
|
203656
|
+
return () => {
|
|
203657
|
+
el2.removeEventListener("keydown", handleKeyDown);
|
|
203658
|
+
};
|
|
203647
203659
|
}, [handleKeyDown]);
|
|
203660
|
+
const handleCellMouseDown = useCallback(
|
|
203661
|
+
(e) => {
|
|
203662
|
+
const mouseEvent = e.event;
|
|
203663
|
+
if (mouseEvent?.button === 1 && e.data) {
|
|
203664
|
+
mouseEvent.preventDefault();
|
|
203665
|
+
const url = sampleNavigation.getSampleUrl(
|
|
203666
|
+
e.data.data.id,
|
|
203667
|
+
e.data.data.epoch
|
|
203668
|
+
);
|
|
203669
|
+
if (url) window.open(url, "_blank");
|
|
203670
|
+
}
|
|
203671
|
+
},
|
|
203672
|
+
[sampleNavigation]
|
|
203673
|
+
);
|
|
203648
203674
|
const selectCurrentSample = useCallback(() => {
|
|
203649
203675
|
if (!listHandle.current?.api || !selectedSampleHandle) {
|
|
203650
203676
|
return;
|
|
@@ -203760,6 +203786,7 @@ const SampleList = memo((props) => {
|
|
|
203760
203786
|
getRowId,
|
|
203761
203787
|
rowSelection: { mode: "singleRow", checkboxes: false },
|
|
203762
203788
|
onRowClicked: handleRowClick,
|
|
203789
|
+
onCellMouseDown: handleCellMouseDown,
|
|
203763
203790
|
onColumnResized: handleColumnResized,
|
|
203764
203791
|
theme: themeBalham,
|
|
203765
203792
|
enableCellTextSelection: true,
|
|
@@ -205745,7 +205772,7 @@ const SamplesGrid = ({
|
|
|
205745
205772
|
(state) => state.log.selectedSampleHandle
|
|
205746
205773
|
);
|
|
205747
205774
|
const internalGridRef = useRef(null);
|
|
205748
|
-
const gridRef = externalGridRef
|
|
205775
|
+
const gridRef = externalGridRef ?? internalGridRef;
|
|
205749
205776
|
const gridContainerRef = useRef(null);
|
|
205750
205777
|
const { startPolling, stopPolling } = useClientEvents();
|
|
205751
205778
|
useEffect(() => {
|
|
@@ -205818,6 +205845,21 @@ const SamplesGrid = ({
|
|
|
205818
205845
|
gridElement.removeEventListener("keydown", handleKeyDown);
|
|
205819
205846
|
};
|
|
205820
205847
|
}, [handleKeyDown]);
|
|
205848
|
+
const handleCellMouseDown = useCallback(
|
|
205849
|
+
(e) => {
|
|
205850
|
+
const mouseEvent = e.event;
|
|
205851
|
+
if (mouseEvent?.button === 1 && e.data) {
|
|
205852
|
+
mouseEvent.preventDefault();
|
|
205853
|
+
navigateToSampleDetail(
|
|
205854
|
+
e.data.logFile,
|
|
205855
|
+
e.data.sampleId,
|
|
205856
|
+
e.data.epoch,
|
|
205857
|
+
true
|
|
205858
|
+
);
|
|
205859
|
+
}
|
|
205860
|
+
},
|
|
205861
|
+
[navigateToSampleDetail]
|
|
205862
|
+
);
|
|
205821
205863
|
const sampleRowId = (logFile, sampleId, epoch) => {
|
|
205822
205864
|
return `${logFile}-${sampleId}-${epoch}`.replace(/\s+/g, "_");
|
|
205823
205865
|
};
|
|
@@ -205889,6 +205931,7 @@ const SamplesGrid = ({
|
|
|
205889
205931
|
}
|
|
205890
205932
|
},
|
|
205891
205933
|
onRowClicked: handleRowClick,
|
|
205934
|
+
onCellMouseDown: handleCellMouseDown,
|
|
205892
205935
|
onFilterChanged: () => {
|
|
205893
205936
|
if (gridRef.current?.api) {
|
|
205894
205937
|
const newDisplayedSamples = gridDisplayedSamples(
|