@tscircuit/runframe 0.0.355 → 0.0.357

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.
@@ -988,7 +988,7 @@ var RenderLogViewer = ({
988
988
  };
989
989
 
990
990
  // package.json
991
- var version = "0.0.354";
991
+ var version = "0.0.355";
992
992
 
993
993
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
994
994
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
@@ -1031,7 +1031,6 @@ var CircuitJsonPreview = ({
1031
1031
  defaultToFullScreen = false
1032
1032
  }) => {
1033
1033
  useStyles();
1034
- const [schematicEditEvents, setSchematicEditEvents] = useState4([...editEvents ?? []]);
1035
1034
  const [activeTab, setActiveTabState] = useState4(defaultActiveTab ?? "pcb");
1036
1035
  const [isFullScreen, setIsFullScreen] = useState4(defaultToFullScreen);
1037
1036
  const setActiveTab = useCallback(
@@ -1256,10 +1255,8 @@ var CircuitJsonPreview = ({
1256
1255
  },
1257
1256
  editingEnabled: true,
1258
1257
  onEditEvent: (ee) => {
1259
- setSchematicEditEvents((prev) => [...prev, ee]);
1260
1258
  onEditEvent?.(ee);
1261
1259
  },
1262
- editEvents: schematicEditEvents,
1263
1260
  debugGrid: showSchematicDebugGrid
1264
1261
  }
1265
1262
  ) : /* @__PURE__ */ jsx16(PreviewEmptyState_default, { onRunClicked })
@@ -1358,7 +1355,7 @@ import { create } from "zustand";
1358
1355
  import { devtools } from "zustand/middleware";
1359
1356
 
1360
1357
  // lib/components/RunFrameWithApi/api-base.ts
1361
- var API_BASE = window.API_BASE_URL ?? "/api";
1358
+ var API_BASE = window.TSCIRCUIT_FILESERVER_API_BASE_URL ?? "/api";
1362
1359
 
1363
1360
  // lib/components/RunFrameWithApi/store.ts
1364
1361
  var debug2 = debug_default.extend("store");
@@ -1474,13 +1471,16 @@ var useRunFrameStore = create()(
1474
1471
  set({ isPolling: false });
1475
1472
  },
1476
1473
  pushEvent: async (event) => {
1477
- await fetch(`${window.API_BASE_URL ?? ""}/api/events/create`, {
1478
- method: "POST",
1479
- headers: {
1480
- "Content-Type": "application/json"
1481
- },
1482
- body: JSON.stringify(event)
1483
- });
1474
+ await fetch(
1475
+ `${window.TSCIRCUIT_FILESERVER_API_BASE_URL ?? ""}/api/events/create`,
1476
+ {
1477
+ method: "POST",
1478
+ headers: {
1479
+ "Content-Type": "application/json"
1480
+ },
1481
+ body: JSON.stringify(event)
1482
+ }
1483
+ );
1484
1484
  },
1485
1485
  applyEditEventsAndUpdateManualEditsJson: async (editEvents) => {
1486
1486
  debug2("applyEditEventsAndUpdateManualEditsJson", { editEvents });
@@ -2022,8 +2022,7 @@ function Skeleton({
2022
2022
  // lib/utils/get-registry-ky.ts
2023
2023
  import ky from "ky";
2024
2024
  function getRegistryKy() {
2025
- const useRegistryPrefix = typeof window !== "undefined" && window.__RUNFRAME_REGISTRY_BASE_URL__ === true;
2026
- const registryApiBaseUrl = useRegistryPrefix ? "/registry" : "https://registry-api.tscircuit.com";
2025
+ const registryApiBaseUrl = (typeof window !== "undefined" ? window.TSCIRCUIT_REGISTRY_API_BASE_URL : null) ?? "https://registry-api.tscircuit.com";
2027
2026
  return ky.create({
2028
2027
  prefixUrl: registryApiBaseUrl,
2029
2028
  timeout: 3e4
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-W4OSFPNL.js";
11
+ } from "./chunk-EIF2FRRM.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  useOrderDialog,
33
33
  useOrderDialogCli,
34
34
  useRunFrameStore
35
- } from "./chunk-W4OSFPNL.js";
35
+ } from "./chunk-EIF2FRRM.js";
36
36
 
37
37
  // lib/components/RunFrame/RunFrame.tsx
38
38
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -531,7 +531,7 @@ var RunFrameWithApi = (props) => {
531
531
  } = useEditEventController();
532
532
  useEffect4(() => {
533
533
  if (apiBaseUrl) {
534
- window.API_BASE_URL = apiBaseUrl;
534
+ window.TSCIRCUIT_FILESERVER_API_BASE_URL = apiBaseUrl;
535
535
  }
536
536
  }, [apiBaseUrl]);
537
537
  useEffect4(() => {