@tscircuit/runframe 0.0.148 → 0.0.150

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.
@@ -890,6 +890,7 @@ var CircuitJsonPreview = ({
890
890
  errorMessage,
891
891
  circuitJsonKey = "",
892
892
  circuitJson,
893
+ showRightHeaderContent = true,
893
894
  showCodeTab = false,
894
895
  codeTabContent,
895
896
  showJsonTab = true,
@@ -954,7 +955,7 @@ var CircuitJsonPreview = ({
954
955
  "%"
955
956
  ] })
956
957
  ] }),
957
- /* @__PURE__ */ jsxs11(TabsList, { children: [
958
+ showRightHeaderContent && /* @__PURE__ */ jsxs11(TabsList, { children: [
958
959
  showCodeTab && /* @__PURE__ */ jsx15(TabsTrigger, { value: "code", children: "Code" }),
959
960
  /* @__PURE__ */ jsxs11(TabsTrigger, { value: "pcb", className: "rf-whitespace-nowrap", children: [
960
961
  circuitJson && /* @__PURE__ */ jsx15(
package/dist/preview.d.ts CHANGED
@@ -39,6 +39,11 @@ interface PreviewContentProps {
39
39
  * a title here.
40
40
  */
41
41
  leftHeaderContent?: React.ReactNode;
42
+ /**
43
+ * Default header content, shown on the right side of the header with the PCB,
44
+ * schematic, and CAD tabs.
45
+ */
46
+ showRightHeaderContent?: boolean;
42
47
  isRunningCode?: boolean;
43
48
  isStreaming?: boolean;
44
49
  onToggleFullScreen?: () => void;
@@ -51,6 +56,6 @@ interface PreviewContentProps {
51
56
  onActiveTabChange?: (tab: TabId) => any;
52
57
  autoRotate3dViewerDisabled?: boolean;
53
58
  }
54
- declare const CircuitJsonPreview: ({ code, onRunClicked, errorMessage, circuitJsonKey, circuitJson, showCodeTab, codeTabContent, showJsonTab, showRenderLogTab, onActiveTabChange, renderLog, showImportAndFormatButtons, className, headerClassName, leftHeaderContent, readOnly, isStreaming, onToggleFullScreen, isFullScreen, isRunningCode, hasCodeChangedSinceLastRun, onEditEvent, editEvents, defaultActiveTab, autoRotate3dViewerDisabled, }: PreviewContentProps) => react_jsx_runtime.JSX.Element;
59
+ declare const CircuitJsonPreview: ({ code, onRunClicked, errorMessage, circuitJsonKey, circuitJson, showRightHeaderContent, showCodeTab, codeTabContent, showJsonTab, showRenderLogTab, onActiveTabChange, renderLog, showImportAndFormatButtons, className, headerClassName, leftHeaderContent, readOnly, isStreaming, onToggleFullScreen, isFullScreen, isRunningCode, hasCodeChangedSinceLastRun, onEditEvent, editEvents, defaultActiveTab, autoRotate3dViewerDisabled, }: PreviewContentProps) => react_jsx_runtime.JSX.Element;
55
60
 
56
61
  export { CircuitJsonPreview, type PreviewContentProps, type TabId };
package/dist/preview.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CircuitJsonPreview
3
- } from "./chunk-2CEQQKA2.js";
3
+ } from "./chunk-2FW56KI5.js";
4
4
  export {
5
5
  CircuitJsonPreview
6
6
  };
package/dist/runner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button,
3
3
  CircuitJsonPreview
4
- } from "./chunk-2CEQQKA2.js";
4
+ } from "./chunk-2FW56KI5.js";
5
5
 
6
6
  // lib/components/RunFrame.tsx
7
7
  import { createCircuitWebWorker } from "@tscircuit/eval-webworker";