@tscircuit/core 0.0.997 → 0.0.999
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.
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8237,10 +8237,11 @@ var resolveStaticFileImportDebug = Debug4(
|
|
|
8237
8237
|
);
|
|
8238
8238
|
async function resolveStaticFileImport(path, platform) {
|
|
8239
8239
|
if (!path) return path;
|
|
8240
|
+
const normalizedPath = path.startsWith("./") ? path.slice(1) : path;
|
|
8240
8241
|
const resolver = platform?.resolveProjectStaticFileImportUrl;
|
|
8241
|
-
if (resolver && path.startsWith("/")) {
|
|
8242
|
+
if (resolver && (path.startsWith("/") || path.startsWith("./"))) {
|
|
8242
8243
|
try {
|
|
8243
|
-
const resolved = await resolver(
|
|
8244
|
+
const resolved = await resolver(normalizedPath);
|
|
8244
8245
|
if (resolved) return resolved;
|
|
8245
8246
|
} catch (error) {
|
|
8246
8247
|
resolveStaticFileImportDebug(
|
|
@@ -8249,7 +8250,7 @@ async function resolveStaticFileImport(path, platform) {
|
|
|
8249
8250
|
);
|
|
8250
8251
|
}
|
|
8251
8252
|
}
|
|
8252
|
-
return constructAssetUrl(
|
|
8253
|
+
return constructAssetUrl(normalizedPath, platform?.projectBaseUrl);
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
// lib/components/base-components/NormalComponent/NormalComponent_doInitialPcbFootprintStringRender.ts
|
|
@@ -9006,7 +9007,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
9006
9007
|
font_size: 0.18
|
|
9007
9008
|
});
|
|
9008
9009
|
const component_name_text = db.schematic_text.insert({
|
|
9009
|
-
text: props.name ?? "",
|
|
9010
|
+
text: props.displayName ?? props.name ?? "",
|
|
9010
9011
|
schematic_component_id: schematic_component2.schematic_component_id,
|
|
9011
9012
|
anchor: "left",
|
|
9012
9013
|
rotation: 0,
|
|
@@ -21317,7 +21318,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
21317
21318
|
var package_default = {
|
|
21318
21319
|
name: "@tscircuit/core",
|
|
21319
21320
|
type: "module",
|
|
21320
|
-
version: "0.0.
|
|
21321
|
+
version: "0.0.998",
|
|
21321
21322
|
types: "dist/index.d.ts",
|
|
21322
21323
|
main: "dist/index.js",
|
|
21323
21324
|
module: "dist/index.js",
|