@tscircuit/runframe 0.0.360 → 0.0.362

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.359";
991
+ var version = "0.0.361";
992
992
 
993
993
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
994
994
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
@@ -1686,7 +1686,10 @@ function VendorQuoteCard({
1686
1686
  "$",
1687
1687
  subtotal.toFixed(2)
1688
1688
  ] }),
1689
- /* @__PURE__ */ jsx20("span", { className: "rf-font-bold rf-text-xl rf-text-blue-600", children: "$50.00" })
1689
+ /* @__PURE__ */ jsxs15("span", { className: "rf-font-bold rf-text-xl rf-text-blue-600", children: [
1690
+ "$",
1691
+ vendor.total_cost_after_discount.toFixed(2)
1692
+ ] })
1690
1693
  ] })
1691
1694
  ] })
1692
1695
  ] }),
@@ -1711,10 +1714,6 @@ function VendorQuoteCard({
1711
1714
  /* @__PURE__ */ jsxs15("div", { className: "rf-text-left rf-flex-1", children: [
1712
1715
  /* @__PURE__ */ jsx20("div", { className: "rf-leading-tight rf-font-medium", children: ship.carrier }),
1713
1716
  /* @__PURE__ */ jsx20("div", { className: "rf-text-xs rf-text-gray-500", children: ship.service })
1714
- ] }),
1715
- /* @__PURE__ */ jsxs15("div", { className: "rf-font-semibold", children: [
1716
- "$",
1717
- ship.cost.toFixed(2)
1718
1717
  ] })
1719
1718
  ]
1720
1719
  },
@@ -1726,7 +1725,7 @@ function VendorQuoteCard({
1726
1725
  /* @__PURE__ */ jsx20("span", { className: "rf-text-gray-800 rf-font-medium", children: "Total (incl. shipping):" }),
1727
1726
  /* @__PURE__ */ jsxs15("span", { className: "rf-font-bold rf-text-lg rf-text-blue-700", children: [
1728
1727
  "$",
1729
- (subtotal + vendor.shipping_options[selectedShippingIdx].cost).toFixed(2)
1728
+ vendor.total_cost_after_discount.toFixed(2)
1730
1729
  ] })
1731
1730
  ] }) })
1732
1731
  ]
@@ -1787,12 +1786,12 @@ var InitialOrderScreen = ({
1787
1786
  return order_quote;
1788
1787
  };
1789
1788
  const getFakeOrderQuotes = async (order_quote_id) => {
1790
- const { order_quote } = await registryKy.post(`_fake/received_quotes`, {
1789
+ const { order_quotes } = await registryKy.post(`_fake/received_quotes`, {
1791
1790
  json: {
1792
1791
  order_quote_id
1793
1792
  }
1794
1793
  }).json();
1795
- return order_quote;
1794
+ return order_quotes;
1796
1795
  };
1797
1796
  const pollToGetOrderQuotes = async (quoteId, maxAttempts = 2) => {
1798
1797
  let attempts = 0;
@@ -1828,7 +1827,7 @@ var InitialOrderScreen = ({
1828
1827
  await pollToGetOrderQuotes(quoteId);
1829
1828
  } catch (error) {
1830
1829
  const quotes2 = await getFakeOrderQuotes(quoteId);
1831
- setQuotes([quotes2]);
1830
+ setQuotes([...quotes2]);
1832
1831
  setLoading(false);
1833
1832
  }
1834
1833
  };
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-JQGQEUPU.js";
11
+ } from "./chunk-6ZSDTGK4.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  useOrderDialog,
34
34
  useOrderDialogCli,
35
35
  useRunFrameStore
36
- } from "./chunk-JQGQEUPU.js";
36
+ } from "./chunk-6ZSDTGK4.js";
37
37
 
38
38
  // lib/components/RunFrame/RunFrame.tsx
39
39
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";