@tscircuit/runframe 0.0.864 → 0.0.866

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.
@@ -1333,7 +1333,7 @@ var useErrorTelemetry = ({
1333
1333
  };
1334
1334
 
1335
1335
  // package.json
1336
- var version = "0.0.863";
1336
+ var version = "0.0.865";
1337
1337
 
1338
1338
  // lib/hooks/use-eval-versions.ts
1339
1339
  import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
@@ -2039,7 +2039,8 @@ import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs15 } from "react/jsx-r
2039
2039
  var ImportComponentDialog = ({
2040
2040
  isOpen,
2041
2041
  onClose,
2042
- proxyRequestHeaders
2042
+ proxyRequestHeaders,
2043
+ onImport
2043
2044
  }) => {
2044
2045
  const [searchQuery, setSearchQuery] = useState8("");
2045
2046
  const [searchResults, setSearchResults] = useState8(
@@ -2059,7 +2060,7 @@ var ImportComponentDialog = ({
2059
2060
  "pcb"
2060
2061
  );
2061
2062
  const pushEvent = useRunFrameStore((s) => s.pushEvent);
2062
- const handleImport = (component) => {
2063
+ const handleImport = onImport ? (component) => onImport(component) : (component) => {
2063
2064
  toast.promise(
2064
2065
  async () => {
2065
2066
  if (component.source === "tscircuit.com") {
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-OGEBGG5L.js";
11
+ } from "./chunk-ZPZP4GEK.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.d.ts CHANGED
@@ -173,8 +173,9 @@ interface ImportComponentDialogProps {
173
173
  isOpen: boolean;
174
174
  onClose: () => void;
175
175
  proxyRequestHeaders?: Record<string, string>;
176
+ onImport?: (component: ComponentSearchResult) => void;
176
177
  }
177
- declare const ImportComponentDialog: ({ isOpen, onClose, proxyRequestHeaders, }: ImportComponentDialogProps) => react_jsx_runtime.JSX.Element;
178
+ declare const ImportComponentDialog: ({ isOpen, onClose, proxyRequestHeaders, onImport, }: ImportComponentDialogProps) => react_jsx_runtime.JSX.Element;
178
179
 
179
180
  /**
180
181
  * JLC API service for fetching component data from the JLC search API
package/dist/runner.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  useRunFrameStore,
24
24
  useRunnerStore,
25
25
  useStyles
26
- } from "./chunk-OGEBGG5L.js";
26
+ } from "./chunk-ZPZP4GEK.js";
27
27
 
28
28
  // lib/components/RunFrame/RunFrame.tsx
29
29
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";