@tscircuit/runframe 0.0.2162 → 0.0.2164

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.
@@ -1839,6 +1839,7 @@ var useInjectTailwind = () => {
1839
1839
  };
1840
1840
 
1841
1841
  // lib/optional-features/exporting/open-for-download.ts
1842
+ var OBJECT_URL_CLEANUP_DELAY_MS = 1e3;
1842
1843
  var openForDownload = (content, opts) => {
1843
1844
  const { fileName, mimeType = "text/plain" } = opts;
1844
1845
  const blob = content instanceof Blob ? content : new Blob([content], { type: mimeType });
@@ -1846,12 +1847,15 @@ var openForDownload = (content, opts) => {
1846
1847
  const a = document.createElement("a");
1847
1848
  a.href = url;
1848
1849
  a.download = fileName;
1850
+ a.target = "_blank";
1851
+ a.rel = "noopener noreferrer";
1852
+ a.style.display = "none";
1849
1853
  document.body.appendChild(a);
1850
1854
  a.click();
1855
+ document.body.removeChild(a);
1851
1856
  setTimeout(() => {
1852
- document.body.removeChild(a);
1853
1857
  URL.revokeObjectURL(url);
1854
- }, 0);
1858
+ }, OBJECT_URL_CLEANUP_DELAY_MS);
1855
1859
  };
1856
1860
 
1857
1861
  // lib/utils/sanitizeFileName.ts
@@ -2173,7 +2177,7 @@ var usePostHogActivity = (properties) => {
2173
2177
  };
2174
2178
 
2175
2179
  // package.json
2176
- var version = "0.0.2161";
2180
+ var version = "0.0.2163";
2177
2181
  var package_default = {
2178
2182
  name: "@tscircuit/runframe",
2179
2183
  main: "dist/preview.js",
@@ -2289,7 +2293,7 @@ var package_default = {
2289
2293
  yargs: "^17.7.2"
2290
2294
  },
2291
2295
  dependencies: {
2292
- "@tscircuit/eval": "^0.0.977",
2296
+ "@tscircuit/eval": "^0.0.978",
2293
2297
  "@tscircuit/solver-utils": "^0.0.7"
2294
2298
  }
2295
2299
  };
package/dist/preview.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  SchematicViewer,
8
8
  useOrderDialog,
9
9
  useOrderDialogCli
10
- } from "./chunk-SAOKGZJT.js";
10
+ } from "./chunk-A2YKYLYN.js";
11
11
  export {
12
12
  BomTable,
13
13
  CadViewer,
package/dist/runner.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  useRunFrameStore,
40
40
  useRunnerStore,
41
41
  useStyles
42
- } from "./chunk-SAOKGZJT.js";
42
+ } from "./chunk-A2YKYLYN.js";
43
43
 
44
44
  // lib/components/RunFrame/RunFrame.tsx
45
45
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";