@railtownai/railtracks-visualizer 0.0.57 → 0.0.58

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/cjs/index.js CHANGED
@@ -113691,7 +113691,13 @@ const SessionDetails = ({ session, open, onClose })=>{
113691
113691
  // Get the active run for full screen display (use selected run or first run)
113692
113692
  const activeRun = session?.runs.find((r)=>r.run_id === selectedNodeInfo?.runId) || session?.runs?.[0];
113693
113693
  const extraButtonsIconSize = 24;
113694
- return /*#__PURE__*/ React.createElement(Drawer$2, {
113694
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
113695
+ theme: {
113696
+ token: {
113697
+ fontFamily: "inherit"
113698
+ }
113699
+ }
113700
+ }, /*#__PURE__*/ React.createElement(Drawer$2, {
113695
113701
  title: /*#__PURE__*/ React.createElement(React.Fragment, null, session?.name || "Unnamed Session", " -", " ", session?.start_time ? moment(session.start_time * 1000).fromNow() : "N/A"),
113696
113702
  placement: "right",
113697
113703
  size: isFullScreen ? "100%" : "70%",
@@ -113823,7 +113829,7 @@ const SessionDetails = ({ session, open, onClose })=>{
113823
113829
  selectedNode: selectedNodeInfo,
113824
113830
  session: session,
113825
113831
  isDarkMode: isDarkMode
113826
- }))));
113832
+ })))));
113827
113833
  };
113828
113834
 
113829
113835
  /**
@@ -114231,7 +114237,13 @@ const EvaluationsCompareView = ({ evaluations, evaluationId1, evaluationId2, onE
114231
114237
  ];
114232
114238
  const evaluation1Label = evaluation1 ? `${evaluation1.name || "Unnamed Evaluation"} (${evaluation1.agent_name})` : "Select evaluation 1";
114233
114239
  const evaluation2Label = evaluation2 ? `${evaluation2.name || "Unnamed Evaluation"} (${evaluation2.agent_name})` : "Select evaluation 2";
114234
- return /*#__PURE__*/ React.createElement(React.Fragment, null, backHref && /*#__PURE__*/ React.createElement("a", {
114240
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
114241
+ theme: {
114242
+ token: {
114243
+ fontFamily: "inherit"
114244
+ }
114245
+ }
114246
+ }, backHref && /*#__PURE__*/ React.createElement("a", {
114235
114247
  href: backHref,
114236
114248
  style: {
114237
114249
  display: "inline-flex",
@@ -114426,7 +114438,13 @@ const EvaluationsCompareDrawer = ({ open, onClose, evaluationId1, evaluationId2,
114426
114438
  staticMethods.error("Failed to copy share link");
114427
114439
  }
114428
114440
  };
114429
- return /*#__PURE__*/ React.createElement(Drawer$2, {
114441
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
114442
+ theme: {
114443
+ token: {
114444
+ fontFamily: "inherit"
114445
+ }
114446
+ }
114447
+ }, /*#__PURE__*/ React.createElement(Drawer$2, {
114430
114448
  title: "Compare Evaluations",
114431
114449
  placement: "right",
114432
114450
  size: "60%",
@@ -114468,7 +114486,7 @@ const EvaluationsCompareDrawer = ({ open, onClose, evaluationId1, evaluationId2,
114468
114486
  onEvaluationId1Change: onEvaluationId1Change,
114469
114487
  onEvaluationId2Change: onEvaluationId2Change,
114470
114488
  showEvaluationComparisonDropdowns: false
114471
- }));
114489
+ })));
114472
114490
  };
114473
114491
 
114474
114492
  const defaultGetEvaluatorResultsHref = (evaluationId, evaluatorId)=>`#/evaluations/${evaluationId}/results/${evaluatorId}`;
@@ -114494,7 +114512,13 @@ const EvaluationDetailsDrawer = ({ evaluation, open, onClose, getEvaluatorResult
114494
114512
  const normalizedEvaluation = React.useMemo(()=>evaluation && isEvaluationDto(evaluation) ? transformEvaluation(evaluation) : evaluation, [
114495
114513
  evaluation
114496
114514
  ]);
114497
- return /*#__PURE__*/ React.createElement(Drawer$2, {
114515
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
114516
+ theme: {
114517
+ token: {
114518
+ fontFamily: "inherit"
114519
+ }
114520
+ }
114521
+ }, /*#__PURE__*/ React.createElement(Drawer$2, {
114498
114522
  title: normalizedEvaluation ? /*#__PURE__*/ React.createElement("div", {
114499
114523
  style: {
114500
114524
  display: "flex",
@@ -114699,11 +114723,17 @@ const EvaluationDetailsDrawer = ({ evaluation, open, onClose, getEvaluatorResult
114699
114723
  getPopupContainer: ()=>document.body
114700
114724
  }, tag) : tag;
114701
114725
  })));
114702
- })))));
114726
+ }))))));
114703
114727
  };
114704
114728
 
114705
114729
  const GITHUB_URL = "https://github.com/RailtownAI/railtracks/";
114706
- const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createElement(Alert, {
114730
+ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createElement(ConfigProvider, {
114731
+ theme: {
114732
+ token: {
114733
+ fontFamily: "inherit"
114734
+ }
114735
+ }
114736
+ }, /*#__PURE__*/ React.createElement(Alert, {
114707
114737
  type: "error",
114708
114738
  title: "Error loading evaluations",
114709
114739
  description: /*#__PURE__*/ React.createElement("div", {
@@ -114739,7 +114769,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createEle
114739
114769
  })
114740
114770
  }, "Retry") : undefined,
114741
114771
  showIcon: true
114742
- });
114772
+ }));
114743
114773
 
114744
114774
  const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender })=>{
114745
114775
  const { theme } = useTheme$1();
@@ -114991,7 +115021,13 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
114991
115021
  target: "_blank",
114992
115022
  rel: "noopener noreferrer"
114993
115023
  }, "view our documentation on how to create evaluations"), "."));
114994
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
115024
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
115025
+ theme: {
115026
+ token: {
115027
+ fontFamily: "inherit"
115028
+ }
115029
+ }
115030
+ }, /*#__PURE__*/ React.createElement("div", {
114995
115031
  style: {
114996
115032
  display: "flex",
114997
115033
  justifyContent: "space-between",
@@ -118299,7 +118335,13 @@ const EvaluatorResult = ({ evaluation, evaluatorId, backHref })=>{
118299
118335
  const { completed_at } = evaluation;
118300
118336
  const agentName = deriveAgentName(evaluation);
118301
118337
  const runsCount = deriveRunsCount(evaluation);
118302
- return /*#__PURE__*/ React.createElement("div", {
118338
+ return /*#__PURE__*/ React.createElement(ConfigProvider, {
118339
+ theme: {
118340
+ token: {
118341
+ fontFamily: "inherit"
118342
+ }
118343
+ }
118344
+ }, /*#__PURE__*/ React.createElement("div", {
118303
118345
  style: {
118304
118346
  width: "100%",
118305
118347
  minWidth: 0
@@ -118417,7 +118459,7 @@ const EvaluatorResult = ({ evaluation, evaluatorId, backHref })=>{
118417
118459
  aggregateResults: aggregateResults,
118418
118460
  agents: evaluation.agents,
118419
118461
  evaluatorName: evaluatorName
118420
- })));
118462
+ }))));
118421
118463
  };
118422
118464
 
118423
118465
  function __insertCSS(code) {
package/dist/esm/index.js CHANGED
@@ -113671,7 +113671,13 @@ const SessionDetails = ({ session, open, onClose })=>{
113671
113671
  // Get the active run for full screen display (use selected run or first run)
113672
113672
  const activeRun = session?.runs.find((r)=>r.run_id === selectedNodeInfo?.runId) || session?.runs?.[0];
113673
113673
  const extraButtonsIconSize = 24;
113674
- return /*#__PURE__*/ React__default.createElement(Drawer$2, {
113674
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
113675
+ theme: {
113676
+ token: {
113677
+ fontFamily: "inherit"
113678
+ }
113679
+ }
113680
+ }, /*#__PURE__*/ React__default.createElement(Drawer$2, {
113675
113681
  title: /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, session?.name || "Unnamed Session", " -", " ", session?.start_time ? moment(session.start_time * 1000).fromNow() : "N/A"),
113676
113682
  placement: "right",
113677
113683
  size: isFullScreen ? "100%" : "70%",
@@ -113803,7 +113809,7 @@ const SessionDetails = ({ session, open, onClose })=>{
113803
113809
  selectedNode: selectedNodeInfo,
113804
113810
  session: session,
113805
113811
  isDarkMode: isDarkMode
113806
- }))));
113812
+ })))));
113807
113813
  };
113808
113814
 
113809
113815
  /**
@@ -114211,7 +114217,13 @@ const EvaluationsCompareView = ({ evaluations, evaluationId1, evaluationId2, onE
114211
114217
  ];
114212
114218
  const evaluation1Label = evaluation1 ? `${evaluation1.name || "Unnamed Evaluation"} (${evaluation1.agent_name})` : "Select evaluation 1";
114213
114219
  const evaluation2Label = evaluation2 ? `${evaluation2.name || "Unnamed Evaluation"} (${evaluation2.agent_name})` : "Select evaluation 2";
114214
- return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, backHref && /*#__PURE__*/ React__default.createElement("a", {
114220
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
114221
+ theme: {
114222
+ token: {
114223
+ fontFamily: "inherit"
114224
+ }
114225
+ }
114226
+ }, backHref && /*#__PURE__*/ React__default.createElement("a", {
114215
114227
  href: backHref,
114216
114228
  style: {
114217
114229
  display: "inline-flex",
@@ -114406,7 +114418,13 @@ const EvaluationsCompareDrawer = ({ open, onClose, evaluationId1, evaluationId2,
114406
114418
  staticMethods.error("Failed to copy share link");
114407
114419
  }
114408
114420
  };
114409
- return /*#__PURE__*/ React__default.createElement(Drawer$2, {
114421
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
114422
+ theme: {
114423
+ token: {
114424
+ fontFamily: "inherit"
114425
+ }
114426
+ }
114427
+ }, /*#__PURE__*/ React__default.createElement(Drawer$2, {
114410
114428
  title: "Compare Evaluations",
114411
114429
  placement: "right",
114412
114430
  size: "60%",
@@ -114448,7 +114466,7 @@ const EvaluationsCompareDrawer = ({ open, onClose, evaluationId1, evaluationId2,
114448
114466
  onEvaluationId1Change: onEvaluationId1Change,
114449
114467
  onEvaluationId2Change: onEvaluationId2Change,
114450
114468
  showEvaluationComparisonDropdowns: false
114451
- }));
114469
+ })));
114452
114470
  };
114453
114471
 
114454
114472
  const defaultGetEvaluatorResultsHref = (evaluationId, evaluatorId)=>`#/evaluations/${evaluationId}/results/${evaluatorId}`;
@@ -114474,7 +114492,13 @@ const EvaluationDetailsDrawer = ({ evaluation, open, onClose, getEvaluatorResult
114474
114492
  const normalizedEvaluation = React__default.useMemo(()=>evaluation && isEvaluationDto(evaluation) ? transformEvaluation(evaluation) : evaluation, [
114475
114493
  evaluation
114476
114494
  ]);
114477
- return /*#__PURE__*/ React__default.createElement(Drawer$2, {
114495
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
114496
+ theme: {
114497
+ token: {
114498
+ fontFamily: "inherit"
114499
+ }
114500
+ }
114501
+ }, /*#__PURE__*/ React__default.createElement(Drawer$2, {
114478
114502
  title: normalizedEvaluation ? /*#__PURE__*/ React__default.createElement("div", {
114479
114503
  style: {
114480
114504
  display: "flex",
@@ -114679,11 +114703,17 @@ const EvaluationDetailsDrawer = ({ evaluation, open, onClose, getEvaluatorResult
114679
114703
  getPopupContainer: ()=>document.body
114680
114704
  }, tag) : tag;
114681
114705
  })));
114682
- })))));
114706
+ }))))));
114683
114707
  };
114684
114708
 
114685
114709
  const GITHUB_URL = "https://github.com/RailtownAI/railtracks/";
114686
- const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.createElement(Alert, {
114710
+ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.createElement(ConfigProvider, {
114711
+ theme: {
114712
+ token: {
114713
+ fontFamily: "inherit"
114714
+ }
114715
+ }
114716
+ }, /*#__PURE__*/ React__default.createElement(Alert, {
114687
114717
  type: "error",
114688
114718
  title: "Error loading evaluations",
114689
114719
  description: /*#__PURE__*/ React__default.createElement("div", {
@@ -114719,7 +114749,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.
114719
114749
  })
114720
114750
  }, "Retry") : undefined,
114721
114751
  showIcon: true
114722
- });
114752
+ }));
114723
114753
 
114724
114754
  const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender })=>{
114725
114755
  const { theme } = useTheme$1();
@@ -114971,7 +115001,13 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
114971
115001
  target: "_blank",
114972
115002
  rel: "noopener noreferrer"
114973
115003
  }, "view our documentation on how to create evaluations"), "."));
114974
- return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement("div", {
115004
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
115005
+ theme: {
115006
+ token: {
115007
+ fontFamily: "inherit"
115008
+ }
115009
+ }
115010
+ }, /*#__PURE__*/ React__default.createElement("div", {
114975
115011
  style: {
114976
115012
  display: "flex",
114977
115013
  justifyContent: "space-between",
@@ -118279,7 +118315,13 @@ const EvaluatorResult = ({ evaluation, evaluatorId, backHref })=>{
118279
118315
  const { completed_at } = evaluation;
118280
118316
  const agentName = deriveAgentName(evaluation);
118281
118317
  const runsCount = deriveRunsCount(evaluation);
118282
- return /*#__PURE__*/ React__default.createElement("div", {
118318
+ return /*#__PURE__*/ React__default.createElement(ConfigProvider, {
118319
+ theme: {
118320
+ token: {
118321
+ fontFamily: "inherit"
118322
+ }
118323
+ }
118324
+ }, /*#__PURE__*/ React__default.createElement("div", {
118283
118325
  style: {
118284
118326
  width: "100%",
118285
118327
  minWidth: 0
@@ -118397,7 +118439,7 @@ const EvaluatorResult = ({ evaluation, evaluatorId, backHref })=>{
118397
118439
  aggregateResults: aggregateResults,
118398
118440
  agents: evaluation.agents,
118399
118441
  evaluatorName: evaluatorName
118400
- })));
118442
+ }))));
118401
118443
  };
118402
118444
 
118403
118445
  function __insertCSS(code) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "license": "MIT",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for Railtracks agentic flows",