@meridianlabs/log-viewer 0.3.148 → 0.3.149
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/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/app/App.tsx"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,kCAAkC,CAAC;AAG1C,OAAO,SAAS,CAAC;AACjB,OAAO,+BAA+B,CAAC;AACvC,OAAO,gCAAgC,CAAC;AACxC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,0BAA0B,CAAC;AAClC,OAAO,WAAW,CAAC;AAGnB,OAAO,EAAE,EAAE,EAA0B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/app/App.tsx"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,kCAAkC,CAAC;AAG1C,OAAO,SAAS,CAAC;AACjB,OAAO,+BAA+B,CAAC;AACvC,OAAO,gCAAgC,CAAC;AACxC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,0BAA0B,CAAC;AAClC,OAAO,WAAW,CAAC;AAGnB,OAAO,EAAE,EAAE,EAA0B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAC;AAMhE,UAAU,QAAQ;IAChB,GAAG,EAAE,SAAS,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CA6J5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleSummaryView.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleSummaryView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAI9E,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"SampleSummaryView.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleSummaryView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAI9E,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAQvD,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC;CACpC;AAqED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqLxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleRow.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/list/SampleRow.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"SampleRow.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/list/SampleRow.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA2JxC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -37,15 +37,6 @@ function getAugmentedNamespace(n) {
|
|
|
37
37
|
}
|
|
38
38
|
var jsxRuntime = { exports: {} };
|
|
39
39
|
var reactJsxRuntime_production = {};
|
|
40
|
-
/**
|
|
41
|
-
* @license React
|
|
42
|
-
* react-jsx-runtime.production.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/
|
|
49
40
|
var hasRequiredReactJsxRuntime_production;
|
|
50
41
|
function requireReactJsxRuntime_production() {
|
|
51
42
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
@@ -75,15 +66,6 @@ function requireReactJsxRuntime_production() {
|
|
|
75
66
|
return reactJsxRuntime_production;
|
|
76
67
|
}
|
|
77
68
|
var reactJsxRuntime_development = {};
|
|
78
|
-
/**
|
|
79
|
-
* @license React
|
|
80
|
-
* react-jsx-runtime.development.js
|
|
81
|
-
*
|
|
82
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the MIT license found in the
|
|
85
|
-
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/
|
|
87
69
|
var hasRequiredReactJsxRuntime_development;
|
|
88
70
|
function requireReactJsxRuntime_development() {
|
|
89
71
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
@@ -1441,14 +1423,6 @@ function requirePrism() {
|
|
|
1441
1423
|
hasRequiredPrism = 1;
|
|
1442
1424
|
(function(module) {
|
|
1443
1425
|
var _self = typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope ? self : {};
|
|
1444
|
-
/**
|
|
1445
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
1446
|
-
*
|
|
1447
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
1448
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
1449
|
-
* @namespace
|
|
1450
|
-
* @public
|
|
1451
|
-
*/
|
|
1452
1426
|
var Prism2 = (function(_self2) {
|
|
1453
1427
|
var lang2 = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
|
|
1454
1428
|
var uniqueId = 0;
|
|
@@ -3389,12 +3363,6 @@ function requirePrismPython() {
|
|
|
3389
3363
|
}
|
|
3390
3364
|
requirePrismPython();
|
|
3391
3365
|
var clipboard$1 = { exports: {} };
|
|
3392
|
-
/*!
|
|
3393
|
-
* clipboard.js v2.0.11
|
|
3394
|
-
* https://clipboardjs.com/
|
|
3395
|
-
*
|
|
3396
|
-
* Licensed MIT © Zeno Rocha
|
|
3397
|
-
*/
|
|
3398
3366
|
var clipboard = clipboard$1.exports;
|
|
3399
3367
|
var hasRequiredClipboard;
|
|
3400
3368
|
function requireClipboard() {
|
|
@@ -4038,16 +4006,6 @@ function requireClipboard() {
|
|
|
4038
4006
|
}
|
|
4039
4007
|
var clipboardExports = requireClipboard();
|
|
4040
4008
|
const ClipboardJS = /* @__PURE__ */ getDefaultExportFromCjs(clipboardExports);
|
|
4041
|
-
/**
|
|
4042
|
-
* react-router v7.9.6
|
|
4043
|
-
*
|
|
4044
|
-
* Copyright (c) Remix Software Inc.
|
|
4045
|
-
*
|
|
4046
|
-
* This source code is licensed under the MIT license found in the
|
|
4047
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
4048
|
-
*
|
|
4049
|
-
* @license MIT
|
|
4050
|
-
*/
|
|
4051
4009
|
var __typeError = (msg) => {
|
|
4052
4010
|
throw TypeError(msg);
|
|
4053
4011
|
};
|
|
@@ -10260,16 +10218,6 @@ function useViewTransitionState(to2, { relative } = {}) {
|
|
|
10260
10218
|
let nextPath = stripBasename(vtContext.nextLocation.pathname, basename2) || vtContext.nextLocation.pathname;
|
|
10261
10219
|
return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
|
|
10262
10220
|
}
|
|
10263
|
-
/**
|
|
10264
|
-
* react-router v7.9.6
|
|
10265
|
-
*
|
|
10266
|
-
* Copyright (c) Remix Software Inc.
|
|
10267
|
-
*
|
|
10268
|
-
* This source code is licensed under the MIT license found in the
|
|
10269
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
10270
|
-
*
|
|
10271
|
-
* @license MIT
|
|
10272
|
-
*/
|
|
10273
10221
|
function RouterProvider2(props) {
|
|
10274
10222
|
return /* @__PURE__ */ React3.createElement(RouterProvider, { flushSync: ReactDOM.flushSync, ...props });
|
|
10275
10223
|
}
|
|
@@ -17672,6 +17620,50 @@ const initializeStore = (api2, capabilities, storage) => {
|
|
|
17672
17620
|
storeImplementation = store;
|
|
17673
17621
|
store.getState().initialize(api2, capabilities);
|
|
17674
17622
|
};
|
|
17623
|
+
const filename = (path) => {
|
|
17624
|
+
if (!path) {
|
|
17625
|
+
return "";
|
|
17626
|
+
}
|
|
17627
|
+
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
17628
|
+
const pathparts = path.split("/");
|
|
17629
|
+
const basename2 = pathparts.slice(-1)[0];
|
|
17630
|
+
if (basename2.startsWith(".") && !basename2.substring(1).includes(".")) {
|
|
17631
|
+
return basename2;
|
|
17632
|
+
}
|
|
17633
|
+
const match2 = basename2.match(/(.*)\.\S+$/);
|
|
17634
|
+
if (match2) {
|
|
17635
|
+
return match2[1];
|
|
17636
|
+
} else {
|
|
17637
|
+
return path;
|
|
17638
|
+
}
|
|
17639
|
+
};
|
|
17640
|
+
const basename = (path) => {
|
|
17641
|
+
if (!path) {
|
|
17642
|
+
return "";
|
|
17643
|
+
}
|
|
17644
|
+
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
17645
|
+
const pathparts = path.split("/");
|
|
17646
|
+
return pathparts.slice(-1)[0];
|
|
17647
|
+
};
|
|
17648
|
+
const dirname = (path) => {
|
|
17649
|
+
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
17650
|
+
const pathparts = path.split("/");
|
|
17651
|
+
if (pathparts.length > 1) {
|
|
17652
|
+
pathparts.pop();
|
|
17653
|
+
return pathparts.join("/");
|
|
17654
|
+
}
|
|
17655
|
+
return "";
|
|
17656
|
+
};
|
|
17657
|
+
const isInDirectory = (path, directory) => {
|
|
17658
|
+
directory = directory.endsWith("/") ? directory.slice(0, -1) : directory;
|
|
17659
|
+
return dirname(path) === directory;
|
|
17660
|
+
};
|
|
17661
|
+
const ensureTrailingSlash = (path) => {
|
|
17662
|
+
if (!path) {
|
|
17663
|
+
return "";
|
|
17664
|
+
}
|
|
17665
|
+
return path.endsWith("/") ? path : path + "/";
|
|
17666
|
+
};
|
|
17675
17667
|
const loggingIcons = {
|
|
17676
17668
|
notset: "bi bi-card-text",
|
|
17677
17669
|
debug: "bi bi-bug",
|
|
@@ -68962,38 +68954,6 @@ var hasRequiredMhchemParser;
|
|
|
68962
68954
|
function requireMhchemParser() {
|
|
68963
68955
|
if (hasRequiredMhchemParser) return mhchemParser;
|
|
68964
68956
|
hasRequiredMhchemParser = 1;
|
|
68965
|
-
/*!
|
|
68966
|
-
*************************************************************************
|
|
68967
|
-
*
|
|
68968
|
-
* mhchemParser.ts
|
|
68969
|
-
* 4.2.1
|
|
68970
|
-
*
|
|
68971
|
-
* Parser for the \ce command and \pu command for MathJax and Co.
|
|
68972
|
-
*
|
|
68973
|
-
* mhchem's \ce is a tool for writing beautiful chemical equations easily.
|
|
68974
|
-
* mhchem's \pu is a tool for writing physical units easily.
|
|
68975
|
-
*
|
|
68976
|
-
* ----------------------------------------------------------------------
|
|
68977
|
-
*
|
|
68978
|
-
* Copyright (c) 2015-2023 Martin Hensel
|
|
68979
|
-
*
|
|
68980
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
68981
|
-
* you may not use this file except in compliance with the License.
|
|
68982
|
-
* You may obtain a copy of the License at
|
|
68983
|
-
*
|
|
68984
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
68985
|
-
*
|
|
68986
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
68987
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
68988
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
68989
|
-
* See the License for the specific language governing permissions and
|
|
68990
|
-
* limitations under the License.
|
|
68991
|
-
*
|
|
68992
|
-
* ----------------------------------------------------------------------
|
|
68993
|
-
*
|
|
68994
|
-
* https://github.com/mhchem/mhchemParser
|
|
68995
|
-
*
|
|
68996
|
-
*/
|
|
68997
68957
|
Object.defineProperty(mhchemParser, "__esModule", { value: true });
|
|
68998
68958
|
mhchemParser.mhchemParser = void 0;
|
|
68999
68959
|
var mhchemParser$1 = (function() {
|
|
@@ -93695,13 +93655,6 @@ function requireUtils() {
|
|
|
93695
93655
|
var Property = requireProperty();
|
|
93696
93656
|
exports2.Selector = Selector;
|
|
93697
93657
|
exports2.Property = Property;
|
|
93698
|
-
/**
|
|
93699
|
-
* Returns an array of the selectors.
|
|
93700
|
-
*
|
|
93701
|
-
* @license Sizzle CSS Selector Engine - MIT
|
|
93702
|
-
* @param {String} selectorText from mensch
|
|
93703
|
-
* @api public
|
|
93704
|
-
*/
|
|
93705
93658
|
exports2.extract = function extract(selectorText) {
|
|
93706
93659
|
var attr = 0;
|
|
93707
93660
|
var sels = [];
|
|
@@ -94845,50 +94798,6 @@ const contentDataRenderers = [
|
|
|
94845
94798
|
const isImage = (mimeType) => {
|
|
94846
94799
|
return mimeType.startsWith("image/");
|
|
94847
94800
|
};
|
|
94848
|
-
const filename = (path) => {
|
|
94849
|
-
if (!path) {
|
|
94850
|
-
return "";
|
|
94851
|
-
}
|
|
94852
|
-
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
94853
|
-
const pathparts = path.split("/");
|
|
94854
|
-
const basename2 = pathparts.slice(-1)[0];
|
|
94855
|
-
if (basename2.startsWith(".") && !basename2.substring(1).includes(".")) {
|
|
94856
|
-
return basename2;
|
|
94857
|
-
}
|
|
94858
|
-
const match2 = basename2.match(/(.*)\.\S+$/);
|
|
94859
|
-
if (match2) {
|
|
94860
|
-
return match2[1];
|
|
94861
|
-
} else {
|
|
94862
|
-
return path;
|
|
94863
|
-
}
|
|
94864
|
-
};
|
|
94865
|
-
const basename = (path) => {
|
|
94866
|
-
if (!path) {
|
|
94867
|
-
return "";
|
|
94868
|
-
}
|
|
94869
|
-
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
94870
|
-
const pathparts = path.split("/");
|
|
94871
|
-
return pathparts.slice(-1)[0];
|
|
94872
|
-
};
|
|
94873
|
-
const dirname = (path) => {
|
|
94874
|
-
path = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
94875
|
-
const pathparts = path.split("/");
|
|
94876
|
-
if (pathparts.length > 1) {
|
|
94877
|
-
pathparts.pop();
|
|
94878
|
-
return pathparts.join("/");
|
|
94879
|
-
}
|
|
94880
|
-
return "";
|
|
94881
|
-
};
|
|
94882
|
-
const isInDirectory = (path, directory) => {
|
|
94883
|
-
directory = directory.endsWith("/") ? directory.slice(0, -1) : directory;
|
|
94884
|
-
return dirname(path) === directory;
|
|
94885
|
-
};
|
|
94886
|
-
const ensureTrailingSlash = (path) => {
|
|
94887
|
-
if (!path) {
|
|
94888
|
-
return "";
|
|
94889
|
-
}
|
|
94890
|
-
return path.endsWith("/") ? path : path + "/";
|
|
94891
|
-
};
|
|
94892
94801
|
let vscodeApi;
|
|
94893
94802
|
const getVscodeApi = () => {
|
|
94894
94803
|
if (window.acquireVsCodeApi) {
|
|
@@ -104803,7 +104712,7 @@ const ViewerOptionsPopover = ({
|
|
|
104803
104712
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.fullWidth, styles$1q.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1q.logDir, children: logDir2 }) }),
|
|
104804
104713
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
104805
104714
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
104806
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
104715
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.149-0-g29e9e3f68" }),
|
|
104807
104716
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
104808
104717
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
104809
104718
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
@@ -105162,16 +105071,6 @@ const ViewSegmentedControl = ({
|
|
|
105162
105071
|
}
|
|
105163
105072
|
);
|
|
105164
105073
|
};
|
|
105165
|
-
/**
|
|
105166
|
-
* table-core
|
|
105167
|
-
*
|
|
105168
|
-
* Copyright (c) TanStack
|
|
105169
|
-
*
|
|
105170
|
-
* This source code is licensed under the MIT license found in the
|
|
105171
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
105172
|
-
*
|
|
105173
|
-
* @license MIT
|
|
105174
|
-
*/
|
|
105175
105074
|
function createColumnHelper() {
|
|
105176
105075
|
return {
|
|
105177
105076
|
accessor: (accessor, column2) => {
|
|
@@ -108110,16 +108009,6 @@ function getSortedRowModel() {
|
|
|
108110
108009
|
};
|
|
108111
108010
|
}, getMemoOptions(table2.options, "debugTable", "getSortedRowModel", () => table2._autoResetPageIndex()));
|
|
108112
108011
|
}
|
|
108113
|
-
/**
|
|
108114
|
-
* react-table
|
|
108115
|
-
*
|
|
108116
|
-
* Copyright (c) TanStack
|
|
108117
|
-
*
|
|
108118
|
-
* This source code is licensed under the MIT license found in the
|
|
108119
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
108120
|
-
*
|
|
108121
|
-
* @license MIT
|
|
108122
|
-
*/
|
|
108123
108012
|
function flexRender(Comp, props) {
|
|
108124
108013
|
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React3.createElement(Comp, props) : Comp;
|
|
108125
108014
|
}
|
|
@@ -111424,6 +111313,7 @@ const styles$S = {
|
|
|
111424
111313
|
titled,
|
|
111425
111314
|
value: value$1
|
|
111426
111315
|
};
|
|
111316
|
+
const kMaxRowTextSize$1 = 1024 * 5;
|
|
111427
111317
|
function isEvalSample(sample2) {
|
|
111428
111318
|
return "store" in sample2;
|
|
111429
111319
|
}
|
|
@@ -111480,7 +111370,12 @@ const SampleSummaryView = ({
|
|
|
111480
111370
|
});
|
|
111481
111371
|
columns.push({
|
|
111482
111372
|
label: "Input",
|
|
111483
|
-
value: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
111373
|
+
value: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
111374
|
+
RenderedText,
|
|
111375
|
+
{
|
|
111376
|
+
markdown: fields.input.join(" ").slice(0, kMaxRowTextSize$1)
|
|
111377
|
+
}
|
|
111378
|
+
),
|
|
111484
111379
|
size: `minmax(auto, 5fr)`,
|
|
111485
111380
|
clamp: true
|
|
111486
111381
|
});
|
|
@@ -111490,7 +111385,10 @@ const SampleSummaryView = ({
|
|
|
111490
111385
|
value: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
111491
111386
|
RenderedText,
|
|
111492
111387
|
{
|
|
111493
|
-
markdown: arrayToString(fields?.target || "none")
|
|
111388
|
+
markdown: arrayToString(fields?.target || "none").slice(
|
|
111389
|
+
0,
|
|
111390
|
+
kMaxRowTextSize$1
|
|
111391
|
+
),
|
|
111494
111392
|
className: clsx("no-last-para-padding", styles$S.target)
|
|
111495
111393
|
}
|
|
111496
111394
|
),
|
|
@@ -111504,7 +111402,7 @@ const SampleSummaryView = ({
|
|
|
111504
111402
|
value: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
111505
111403
|
RenderedText,
|
|
111506
111404
|
{
|
|
111507
|
-
markdown: fields.answer || "",
|
|
111405
|
+
markdown: (fields.answer || "").slice(0, kMaxRowTextSize$1),
|
|
111508
111406
|
className: clsx("no-last-para-padding", styles$S.answer)
|
|
111509
111407
|
}
|
|
111510
111408
|
) : "",
|
|
@@ -147109,6 +147007,7 @@ const styles$l = {
|
|
|
147109
147007
|
score,
|
|
147110
147008
|
centered
|
|
147111
147009
|
};
|
|
147010
|
+
const kMaxRowTextSize = 1024 * 5;
|
|
147112
147011
|
const SampleRow = ({
|
|
147113
147012
|
id,
|
|
147114
147013
|
sample: sample2,
|
|
@@ -147169,7 +147068,7 @@ const SampleRow = ({
|
|
|
147169
147068
|
children: !showingSampleDialog ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147170
147069
|
RenderedText,
|
|
147171
147070
|
{
|
|
147172
|
-
markdown: inputString(sample2.input).join(" "),
|
|
147071
|
+
markdown: inputString(sample2.input).join(" ").slice(0, kMaxRowTextSize),
|
|
147173
147072
|
forceRender: true,
|
|
147174
147073
|
omitMedia: true
|
|
147175
147074
|
}
|
|
@@ -147179,7 +147078,7 @@ const SampleRow = ({
|
|
|
147179
147078
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$l.cell), children: sample2?.target && !showingSampleDialog ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147180
147079
|
RenderedText,
|
|
147181
147080
|
{
|
|
147182
|
-
markdown: arrayToString(sample2.target),
|
|
147081
|
+
markdown: arrayToString(sample2.target).slice(0, kMaxRowTextSize),
|
|
147183
147082
|
className: clsx("no-last-para-padding", styles$l.noLeft),
|
|
147184
147083
|
forceRender: true,
|
|
147185
147084
|
omitMedia: true
|
|
@@ -147188,7 +147087,7 @@ const SampleRow = ({
|
|
|
147188
147087
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$l.cell), children: sample2 && !showingSampleDialog ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147189
147088
|
RenderedText,
|
|
147190
147089
|
{
|
|
147191
|
-
markdown: answer2 || "",
|
|
147090
|
+
markdown: (answer2 || "").slice(0, kMaxRowTextSize),
|
|
147192
147091
|
className: clsx("no-last-para-padding", styles$l.noLeft),
|
|
147193
147092
|
forceRender: true,
|
|
147194
147093
|
omitMedia: true
|
|
@@ -207053,7 +206952,7 @@ const App = ({ api: api2 }) => {
|
|
|
207053
206952
|
const selectedLogFile = useStore((state) => state.logs.selectedLogFile);
|
|
207054
206953
|
const loadedLogFile = useStore((state) => state.log.loadedLog);
|
|
207055
206954
|
const selectedLogDetails = useStore((state) => state.log.selectedLogDetails);
|
|
207056
|
-
const
|
|
206955
|
+
const setInitialState = useStore((state) => state.appActions.setInitialState);
|
|
207057
206956
|
const setLoading = useStore((state) => state.appActions.setLoading);
|
|
207058
206957
|
const syncLogs = useStore((state) => state.logsActions.syncLogs);
|
|
207059
206958
|
const setLogDir = useStore((state) => state.logsActions.setLogDir);
|
|
@@ -207099,7 +206998,13 @@ const App = ({ api: api2 }) => {
|
|
|
207099
206998
|
case "updateState": {
|
|
207100
206999
|
if (e.data.url) {
|
|
207101
207000
|
const decodedUrl = decodeURIComponent(e.data.url);
|
|
207102
|
-
|
|
207001
|
+
let targetFile = decodedUrl;
|
|
207002
|
+
if (isUri(targetFile)) {
|
|
207003
|
+
const dir = dirname(targetFile);
|
|
207004
|
+
targetFile = basename(targetFile);
|
|
207005
|
+
setLogDir(dir);
|
|
207006
|
+
}
|
|
207007
|
+
setInitialState(targetFile, e.data.sample_id, e.data.sample_epoch);
|
|
207103
207008
|
}
|
|
207104
207009
|
break;
|
|
207105
207010
|
}
|