@tscircuit/runframe 0.0.451 → 0.0.453
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.
|
@@ -1094,7 +1094,7 @@ var RenderLogViewer = ({
|
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
1096
|
// package.json
|
|
1097
|
-
var version = "0.0.
|
|
1097
|
+
var version = "0.0.452";
|
|
1098
1098
|
|
|
1099
1099
|
// lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
|
|
1100
1100
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1841,7 +1841,12 @@ var createOrderQuote = async (packageReleaseId) => {
|
|
|
1841
1841
|
} catch (error) {
|
|
1842
1842
|
if (error instanceof HTTPError) {
|
|
1843
1843
|
const errorBody = await error.response.json();
|
|
1844
|
-
throw
|
|
1844
|
+
throw {
|
|
1845
|
+
error: {
|
|
1846
|
+
message: errorBody.message,
|
|
1847
|
+
error_code: errorBody.error_code
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1845
1850
|
}
|
|
1846
1851
|
throw error;
|
|
1847
1852
|
}
|
|
@@ -1930,17 +1935,17 @@ var InitialOrderScreen = ({
|
|
|
1930
1935
|
useEffect3(() => {
|
|
1931
1936
|
createOrderQuote2();
|
|
1932
1937
|
}, [packageReleaseId, createOrderQuote2]);
|
|
1933
|
-
const isNoTokenError = (createOrderQuoteError?.error_code?.includes("no_token") || orderQuote?.error?.error_code?.includes("no_token")) && signIn;
|
|
1938
|
+
const isNoTokenError = (createOrderQuoteError?.error?.error_code?.includes("no_token") || orderQuote?.error?.error_code?.includes("no_token")) && signIn;
|
|
1934
1939
|
if (!isLoggedIn || isNoTokenError) {
|
|
1935
1940
|
return /* @__PURE__ */ jsx19(SignInView, { signIn });
|
|
1936
1941
|
}
|
|
1937
1942
|
return /* @__PURE__ */ jsxs15("div", { className: "rf-max-w-lg rf-mx-auto rf-bg-white rf-rounded-2xl rf-py-8 rf-flex rf-flex-col rf-gap-3", children: [
|
|
1938
1943
|
/* @__PURE__ */ jsx19("h2", { className: "rf-text-3xl rf-font-bold rf-text-center", children: "Order PCB" }),
|
|
1939
|
-
(!orderQuoteId || !orderQuote || orderQuote?.is_processing
|
|
1944
|
+
!(createOrderQuoteError || orderQuote?.error) && (!orderQuoteId || !orderQuote || orderQuote?.is_processing) && /* @__PURE__ */ jsx19(LoadingMessage, { message: "Fetching quotes..." }),
|
|
1940
1945
|
(createOrderQuoteError || orderQuote?.error) && /* @__PURE__ */ jsx19(
|
|
1941
1946
|
ErrorMessage,
|
|
1942
1947
|
{
|
|
1943
|
-
message: createOrderQuoteError?.message || orderQuote?.error?.message || "Failed to fetch quotes"
|
|
1948
|
+
message: createOrderQuoteError?.error.message || orderQuote?.error?.message || "Failed to fetch quotes"
|
|
1944
1949
|
}
|
|
1945
1950
|
),
|
|
1946
1951
|
orderQuote?.is_completed && !createOrderQuoteError && !orderQuote?.error && Array.isArray(orderQuote?.shipping_options) && orderQuote.shipping_options.length > 0 && /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED