@vegintech/langchain-react-agent 0.0.10 → 0.0.11

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -22
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -396,8 +396,8 @@ function DebugPanel({ messages, streamState, visible = true }) {
396
396
  const [isDraggingButton, setIsDraggingButton] = useState(false);
397
397
  const buttonDragRef = useRef(null);
398
398
  const [dialogPos, setDialogPos] = useState({
399
- x: -400,
400
- y: -300
399
+ x: 0,
400
+ y: 0
401
401
  });
402
402
  const [isDraggingDialog, setIsDraggingDialog] = useState(false);
403
403
  const dialogDragRef = useRef(null);
@@ -533,11 +533,12 @@ function DebugPanel({ messages, streamState, visible = true }) {
533
533
  };
534
534
  const dialogStyle = {
535
535
  position: "fixed",
536
- right: `${20 - dialogPos.x}px`,
537
- bottom: `${80 - dialogPos.y}px`,
538
- width: "800px",
536
+ left: "50%",
537
+ top: "50%",
538
+ transform: `translate(calc(-50% + ${dialogPos.x}px), calc(-50% + ${dialogPos.y}px))`,
539
+ width: "1000px",
539
540
  maxWidth: "90vw",
540
- height: "600px",
541
+ height: "650px",
541
542
  maxHeight: "85vh",
542
543
  background: "#fff",
543
544
  borderRadius: "12px",
@@ -718,13 +719,6 @@ function DebugPanel({ messages, streamState, visible = true }) {
718
719
  /* @__PURE__ */ jsx("th", {
719
720
  style: tableHeaderStyle,
720
721
  children: "内容"
721
- }),
722
- /* @__PURE__ */ jsx("th", {
723
- style: {
724
- ...tableHeaderStyle,
725
- width: "100px"
726
- },
727
- children: "ID"
728
722
  })
729
723
  ] }) }), /* @__PURE__ */ jsx("tbody", { children: messages.map((msg, index) => {
730
724
  const message = msg;
@@ -770,20 +764,12 @@ function DebugPanel({ messages, streamState, visible = true }) {
770
764
  },
771
765
  children: formatContent(message.content)
772
766
  })
773
- }),
774
- /* @__PURE__ */ jsx("td", {
775
- style: {
776
- ...tableCellStyle,
777
- color: "#999",
778
- fontSize: "12px"
779
- },
780
- children: message.id?.slice(-8) || "-"
781
767
  })
782
768
  ]
783
769
  }, index), isExpanded && /* @__PURE__ */ jsx("tr", {
784
770
  style: expandedRowStyle,
785
771
  children: /* @__PURE__ */ jsx("td", {
786
- colSpan: 4,
772
+ colSpan: 3,
787
773
  style: {
788
774
  padding: 0,
789
775
  borderBottom: "1px solid #e8e8e8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegintech/langchain-react-agent",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "LangChain Agent UI component library for React",
5
5
  "license": "MIT",
6
6
  "files": [