@industry-theme/principal-view-panels 0.1.54 → 0.1.55

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":"ExecutionViewerPanel.d.ts","sourceRoot":"","sources":["../../src/panels/ExecutionViewerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA4B3C;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAumC9D,CAAC"}
1
+ {"version":3,"file":"ExecutionViewerPanel.d.ts","sourceRoot":"","sources":["../../src/panels/ExecutionViewerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA4B3C;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgkC9D,CAAC"}
@@ -50847,8 +50847,8 @@ const TestEventPanel = ({
50847
50847
  const timeline = useMemo(() => {
50848
50848
  if (!currentSpan) return [];
50849
50849
  const items = [
50850
- // Span events
50851
- ...currentSpan.events.slice(0, currentEventIndex + 1).map((event) => ({
50850
+ // Span events - show ALL events, not just up to currentEventIndex
50851
+ ...currentSpan.events.map((event) => ({
50852
50852
  type: "event",
50853
50853
  time: event.time,
50854
50854
  name: event.name,
@@ -50865,7 +50865,7 @@ const TestEventPanel = ({
50865
50865
  }))
50866
50866
  ].sort((a, b) => a.time - b.time);
50867
50867
  return items;
50868
- }, [currentSpan, currentEventIndex, logs]);
50868
+ }, [currentSpan, logs]);
50869
50869
  return /* @__PURE__ */ jsxs(
50870
50870
  "div",
50871
50871
  {
@@ -52892,10 +52892,10 @@ const ExecutionViewerPanel = ({
52892
52892
  events.off("custom", handleEvent);
52893
52893
  };
52894
52894
  }, [events, loadCanvas]);
52895
- const handlePlayPause = useCallback(() => {
52895
+ useCallback(() => {
52896
52896
  setState((prev) => ({ ...prev, isPlaying: !prev.isPlaying }));
52897
52897
  }, []);
52898
- const handleReset = useCallback(() => {
52898
+ useCallback(() => {
52899
52899
  setState((prev) => ({
52900
52900
  ...prev,
52901
52901
  isPlaying: false,
@@ -53512,49 +53512,6 @@ const ExecutionViewerPanel = ({
53512
53512
  children: /* @__PURE__ */ jsx(Grid3x3, { size: 14 })
53513
53513
  }
53514
53514
  ),
53515
- state.execution && /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
53516
- /* @__PURE__ */ jsx(
53517
- "button",
53518
- {
53519
- onClick: handleReset,
53520
- style: {
53521
- padding: "6px 10px",
53522
- background: "#2a2a2a",
53523
- border: "1px solid #3a3a3a",
53524
- borderRadius: "4px",
53525
- color: "#fff",
53526
- cursor: "pointer",
53527
- display: "flex",
53528
- alignItems: "center",
53529
- gap: "4px"
53530
- },
53531
- title: "Reset",
53532
- children: /* @__PURE__ */ jsx(RotateCcw, { size: 14 })
53533
- }
53534
- ),
53535
- /* @__PURE__ */ jsxs(
53536
- "button",
53537
- {
53538
- onClick: handlePlayPause,
53539
- style: {
53540
- padding: "6px 10px",
53541
- background: state.isPlaying ? "#ef4444" : "#10b981",
53542
- border: "none",
53543
- borderRadius: "4px",
53544
- color: "#fff",
53545
- cursor: "pointer",
53546
- display: "flex",
53547
- alignItems: "center",
53548
- gap: "4px",
53549
- fontWeight: 600
53550
- },
53551
- children: [
53552
- state.isPlaying ? /* @__PURE__ */ jsx(Pause, { size: 14 }) : /* @__PURE__ */ jsx(Play, { size: 14 }),
53553
- state.isPlaying ? "Pause" : "Play"
53554
- ]
53555
- }
53556
- )
53557
- ] }),
53558
53515
  state.canvas && !state.execution && state.availableNarratives.length === 0 && /* @__PURE__ */ jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxs(
53559
53516
  "button",
53560
53517
  {