@tscircuit/runframe 0.0.1398 → 0.0.1399
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.
|
@@ -1554,7 +1554,7 @@ var useErrorTelemetry = ({
|
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
1556
|
// package.json
|
|
1557
|
-
var version = "0.0.
|
|
1557
|
+
var version = "0.0.1398";
|
|
1558
1558
|
var package_default = {
|
|
1559
1559
|
name: "@tscircuit/runframe",
|
|
1560
1560
|
main: "dist/preview.js",
|
|
@@ -1606,7 +1606,7 @@ var package_default = {
|
|
|
1606
1606
|
"@tscircuit/checks": "^0.0.78",
|
|
1607
1607
|
"@tscircuit/create-snippet-url": "^0.0.9",
|
|
1608
1608
|
"@tscircuit/eval": "^0.0.537",
|
|
1609
|
-
"@tscircuit/fake-snippets": "^0.0.
|
|
1609
|
+
"@tscircuit/fake-snippets": "^0.0.163",
|
|
1610
1610
|
"@tscircuit/file-server": "^0.0.32",
|
|
1611
1611
|
"@tscircuit/footprinter": "^0.0.236",
|
|
1612
1612
|
"@tscircuit/math-utils": "^0.0.25",
|
|
@@ -2410,7 +2410,7 @@ var getResultKey = (result) => {
|
|
|
2410
2410
|
switch (result.source) {
|
|
2411
2411
|
case "tscircuit.com": {
|
|
2412
2412
|
const pkg = result.package;
|
|
2413
|
-
const identifier = pkg.package_id ?? `${pkg.
|
|
2413
|
+
const identifier = pkg.package_id ?? `${pkg.org_owner_tscircuit_handle ?? "unknown"}-${pkg.unscoped_name ?? pkg.name ?? "package"}`;
|
|
2414
2414
|
return `tscircuit-${identifier}`;
|
|
2415
2415
|
}
|
|
2416
2416
|
case "jlcpcb":
|
|
@@ -2434,7 +2434,7 @@ var getPrimaryText = (result) => {
|
|
|
2434
2434
|
var getSecondaryText = (result) => {
|
|
2435
2435
|
switch (result.source) {
|
|
2436
2436
|
case "tscircuit.com":
|
|
2437
|
-
return result.package.description || (result.package.
|
|
2437
|
+
return result.package.description || (result.package.org_owner_tscircuit_handle ? `Component by ${result.package.org_owner_tscircuit_handle}` : void 0);
|
|
2438
2438
|
case "jlcpcb":
|
|
2439
2439
|
return result.component.description;
|
|
2440
2440
|
case "kicad":
|
|
@@ -2526,7 +2526,7 @@ var TscircuitPackageDetailsDialog = ({
|
|
|
2526
2526
|
const schematicPreviewUrl = pkg?.latest_sch_preview_image_url;
|
|
2527
2527
|
const cadPreviewUrl = pkg?.latest_cad_preview_image_url;
|
|
2528
2528
|
const packageName = pkg?.unscoped_name?.split("/").pop() ?? pkg?.unscoped_name;
|
|
2529
|
-
const ownerUsername = pkg?.
|
|
2529
|
+
const ownerUsername = pkg?.org_owner_tscircuit_handle ?? void 0;
|
|
2530
2530
|
const ownerUrl = ownerUsername ? `https://tscircuit.com/${ownerUsername}` : void 0;
|
|
2531
2531
|
const packageUrl = ownerUsername && packageName ? `https://tscircuit.com/${ownerUsername}/${packageName}` : void 0;
|
|
2532
2532
|
return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange, children: /* @__PURE__ */ jsxs17(
|
|
@@ -3028,7 +3028,7 @@ var ImportComponentDialog2 = ({
|
|
|
3028
3028
|
setDetailsPreviewTab("pcb");
|
|
3029
3029
|
setIsDetailsDialogOpen(true);
|
|
3030
3030
|
resetPackageDetails();
|
|
3031
|
-
const owner = component.package.
|
|
3031
|
+
const owner = component.package.org_owner_tscircuit_handle;
|
|
3032
3032
|
const unscopedName = component.package.unscoped_name;
|
|
3033
3033
|
if (owner && unscopedName) {
|
|
3034
3034
|
const packageName = unscopedName.split("/").pop() ?? unscopedName;
|
|
@@ -3072,7 +3072,7 @@ var ImportComponentDialog2 = ({
|
|
|
3072
3072
|
if (!onTscircuitPackageSelected) {
|
|
3073
3073
|
throw new Error("tscircuit package handler not provided");
|
|
3074
3074
|
}
|
|
3075
|
-
const owner = result.package.
|
|
3075
|
+
const owner = result.package.org_owner_tscircuit_handle;
|
|
3076
3076
|
const unscopedName = result.package.unscoped_name;
|
|
3077
3077
|
if (!owner || !unscopedName) {
|
|
3078
3078
|
throw new Error("Missing package metadata");
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
useRunFrameStore,
|
|
35
35
|
useRunnerStore,
|
|
36
36
|
useStyles
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GAUTQ7NH.js";
|
|
38
38
|
|
|
39
39
|
// lib/components/RunFrame/RunFrame.tsx
|
|
40
40
|
import { createCircuitWebWorker } from "@tscircuit/eval/worker";
|
|
@@ -2311,10 +2311,10 @@ var mapTscircuitSnippetToSearchResult = (tscircuitSnippet) => {
|
|
|
2311
2311
|
return {
|
|
2312
2312
|
id: `tscircuit-${tscircuitSnippet.package_id}`,
|
|
2313
2313
|
name: tscircuitSnippet.unscoped_name,
|
|
2314
|
-
description: tscircuitSnippet.description || `Component by ${tscircuitSnippet.
|
|
2314
|
+
description: tscircuitSnippet.description || `Component by ${tscircuitSnippet.org_owner_tscircuit_handle}`,
|
|
2315
2315
|
source: "tscircuit.com",
|
|
2316
2316
|
partNumber: tscircuitSnippet.name,
|
|
2317
|
-
owner: String(tscircuitSnippet.
|
|
2317
|
+
owner: String(tscircuitSnippet.org_owner_tscircuit_handle)
|
|
2318
2318
|
};
|
|
2319
2319
|
};
|
|
2320
2320
|
|