@tscircuit/runframe 0.0.105 → 0.0.106

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/preview.d.ts CHANGED
@@ -18,7 +18,7 @@ interface RenderLog {
18
18
  phaseTimings?: Record<string, number>;
19
19
  }
20
20
 
21
- type TabId = "code" | "pcb" | "schematic" | "assembly" | "cad" | "bom" | "circuitjson" | "error" | "render_log";
21
+ type TabId = "code" | "pcb" | "schematic" | "assembly" | "cad" | "bom" | "circuit_json" | "errors" | "render_log";
22
22
  interface PreviewContentProps {
23
23
  code?: string;
24
24
  readOnly?: boolean;
package/dist/preview.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CircuitJsonPreview
3
- } from "./chunk-7F2R7RXD.js";
3
+ } from "./chunk-I7CBAQBR.js";
4
4
  export {
5
5
  CircuitJsonPreview
6
6
  };
package/dist/runner.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CircuitJsonPreview
3
- } from "./chunk-7F2R7RXD.js";
3
+ } from "./chunk-I7CBAQBR.js";
4
4
 
5
5
  // lib/components/RunFrame.tsx
6
6
  import { createCircuitWebWorker } from "@tscircuit/eval-webworker";
@@ -527,20 +527,20 @@ var SelectSnippetDialog = ({
527
527
  }
528
528
  }
529
529
  };
530
- return /* @__PURE__ */ jsx3("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[100]", children: /* @__PURE__ */ jsxs2("div", { className: "bg-white rounded-lg p-6 w-96", children: [
531
- /* @__PURE__ */ jsx3("h2", { className: "text-lg font-semibold mb-4", children: "Select Snippet" }),
530
+ return /* @__PURE__ */ jsx3("div", { className: "rf-fixed rf-inset-0 rf-bg-black rf-bg-opacity-50 rf-flex rf-items-center rf-justify-center rf-z-[100]", children: /* @__PURE__ */ jsxs2("div", { className: "rf-bg-white rf-rounded-lg rf-p-6 rf-w-96", children: [
531
+ /* @__PURE__ */ jsx3("h2", { className: "rf-text-lg rf-font-semibold rf-mb-4", children: "Select Snippet" }),
532
532
  /* @__PURE__ */ jsx3(
533
533
  "input",
534
534
  {
535
535
  type: "text",
536
- className: "w-full px-4 py-2 border rounded mb-4",
536
+ className: "rf-w-full rf-px-4 rf-py-2 rf-border rf-rounded rf-mb-4",
537
537
  placeholder: "Search snippets or new snippet name...",
538
538
  value: searchInput,
539
539
  onChange: (e) => setSearchInput(e.target.value),
540
540
  onKeyDown: handleKeyDown
541
541
  }
542
542
  ),
543
- /* @__PURE__ */ jsxs2("div", { className: "h-60 overflow-y-auto", children: [
543
+ /* @__PURE__ */ jsxs2("div", { className: "rf-h-60 rf-overflow-y-auto", children: [
544
544
  filteredSnippets.map((name) => /* @__PURE__ */ jsx3(
545
545
  "button",
546
546
  {
@@ -565,12 +565,12 @@ var SelectSnippetDialog = ({
565
565
  }
566
566
  )
567
567
  ] }),
568
- /* @__PURE__ */ jsxs2("div", { className: "mt-4 flex justify-end gap-2", children: [
568
+ /* @__PURE__ */ jsxs2("div", { className: "rf-mt-4 rf-flex rf-justify-end rf-gap-2", children: [
569
569
  /* @__PURE__ */ jsx3(
570
570
  "button",
571
571
  {
572
572
  type: "button",
573
- className: "px-4 py-2 text-gray-600 hover:text-gray-800",
573
+ className: "rf-px-4 rf-py-2 rf-text-gray-600 rf-hover:text-gray-800",
574
574
  onClick: onCancel,
575
575
  children: "Cancel"
576
576
  }
@@ -579,7 +579,7 @@ var SelectSnippetDialog = ({
579
579
  "button",
580
580
  {
581
581
  type: "button",
582
- className: "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 disabled:opacity-50",
582
+ className: "rf-px-4 rf-py-2 rf-bg-blue-500 rf-text-white rf-rounded rf-hover:bg-blue-600 rf-disabled:opacity-50",
583
583
  onClick: () => selectedName && onSelect(selectedName),
584
584
  disabled: !selectedName,
585
585
  children: selectedName === searchInput ? `Create "${selectedName}"` : `Save to ${selectedName}`
@@ -676,7 +676,7 @@ var SaveToSnippetsButton = () => {
676
676
  className: `px-3 flex items-center text-sm py-1.5 rounded-md ${isSaving ? "cursor-not-allowed" : "bg-white border border-gray-300 font-medium text-gray-900 shadow-sm"}`,
677
677
  children: [
678
678
  isSaving ? "Saving..." : "Save to Snippets",
679
- isSaving || hasNeverBeenSaved ? null : /* @__PURE__ */ jsx4("span", { className: "ml-1.5 flex items-center", children: hasUnsavedChanges ? /* @__PURE__ */ jsx4("div", { className: "text-xs bg-orange-400 text-white p-0.5 px-1.5 rounded", children: "unsaved changes" }) : /* @__PURE__ */ jsx4(CheckCircle2, { className: "w-4 h-4 text-green-500" }) })
679
+ isSaving || hasNeverBeenSaved ? null : /* @__PURE__ */ jsx4("span", { className: "rf-ml-1.5 rf-flex rf-items-center", children: hasUnsavedChanges ? /* @__PURE__ */ jsx4("div", { className: "rf-text-xs rf-bg-orange-400 rf-text-white rf-p-0.5 rf-px-1.5 rf-rounded", children: "unsaved changes" }) : /* @__PURE__ */ jsx4(CheckCircle2, { className: "rf-w-4 rf-h-4 rf-text-green-500" }) })
680
680
  ]
681
681
  }
682
682
  ),