@tscircuit/core 0.0.1903 → 0.0.1905

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -21
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -57558,32 +57558,25 @@ function Group_doInitialSchematicLayoutSections(group) {
57558
57558
  }
57559
57559
 
57560
57560
  // lib/utils/schematic/update-missing-schematic-sheet-warning.ts
57561
- var MISSING_SCHEMATIC_SHEET_ISSUE_TYPE = "missing_schematic_sheet";
57562
57561
  var updateMissingSchematicSheetWarning = ({
57563
57562
  db,
57564
57563
  schematicDisabled
57565
57564
  }) => {
57566
- const existingWarning = db.schematic_component_styling_warning.list().find(
57567
- (warning) => warning.styling_issue_type === MISSING_SCHEMATIC_SHEET_ISSUE_TYPE
57568
- );
57569
- const firstSchematicComponent = db.schematic_component.list()[0];
57570
- const shouldWarn = !schematicDisabled && Boolean(firstSchematicComponent) && db.schematic_sheet.list().length === 0;
57565
+ const existingWarning = db.schematic_missing_sheet_warning.list()[0];
57566
+ const hasSchematicComponents = db.schematic_component.list().length > 0;
57567
+ const shouldWarn = !schematicDisabled && hasSchematicComponents && db.schematic_sheet.list().length === 0;
57571
57568
  if (!shouldWarn) {
57572
57569
  if (existingWarning) {
57573
- db.schematic_component_styling_warning.delete(
57574
- existingWarning.schematic_component_styling_warning_id
57570
+ db.schematic_missing_sheet_warning.delete(
57571
+ existingWarning.schematic_missing_sheet_warning_id
57575
57572
  );
57576
57573
  }
57577
57574
  return;
57578
57575
  }
57579
- if (existingWarning || !firstSchematicComponent) return;
57580
- db.schematic_component_styling_warning.insert({
57581
- warning_type: "schematic_component_styling_warning",
57582
- message: "No <schematicsheet> was found. Add a <schematicsheet> to define the schematic drawing area.",
57583
- schematic_component_id: firstSchematicComponent.schematic_component_id,
57584
- source_component_id: firstSchematicComponent.source_component_id,
57585
- subcircuit_id: firstSchematicComponent.subcircuit_id,
57586
- styling_issue_type: MISSING_SCHEMATIC_SHEET_ISSUE_TYPE
57576
+ if (existingWarning) return;
57577
+ db.schematic_missing_sheet_warning.insert({
57578
+ warning_type: "schematic_missing_sheet_warning",
57579
+ message: "No <schematicsheet> was found. Add a <schematicsheet> to define the schematic drawing area."
57587
57580
  });
57588
57581
  };
57589
57582
 
@@ -62035,7 +62028,7 @@ function Group_getRoutingPhasePlans(group) {
62035
62028
  var package_default = {
62036
62029
  name: "@tscircuit/core",
62037
62030
  type: "module",
62038
- version: "0.0.1902",
62031
+ version: "0.0.1904",
62039
62032
  types: "dist/index.d.ts",
62040
62033
  main: "dist/index.js",
62041
62034
  module: "dist/index.js",
@@ -62104,10 +62097,10 @@ var package_default = {
62104
62097
  "bun-match-svg": "0.0.12",
62105
62098
  "calculate-elbow": "^0.0.12",
62106
62099
  "chokidar-cli": "^3.0.0",
62107
- "circuit-json": "^0.0.487",
62100
+ "circuit-json": "^0.0.488",
62108
62101
  "circuit-json-to-bpc": "^0.0.13",
62109
62102
  "circuit-json-to-connectivity-map": "^0.0.30",
62110
- "circuit-json-to-gltf": "^0.0.124",
62103
+ "circuit-json-to-gltf": "^0.0.125",
62111
62104
  "circuit-json-to-spice": "^0.0.45",
62112
62105
  "circuit-to-svg": "^0.0.416",
62113
62106
  concurrently: "^9.1.2",
@@ -62121,7 +62114,7 @@ var package_default = {
62121
62114
  "live-server": "^1.2.2",
62122
62115
  minicssgrid: "^0.0.9",
62123
62116
  "pkg-pr-new": "^0.0.37",
62124
- poppygl: "^0.0.27",
62117
+ poppygl: "^0.0.29",
62125
62118
  react: "^19.1.0",
62126
62119
  "react-dom": "^19.1.0",
62127
62120
  "schematic-symbols": "^0.0.244",
@@ -62168,7 +62161,7 @@ var package_default = {
62168
62161
  overrides: {
62169
62162
  "@tscircuit/circuit-json-util": "^0.0.113",
62170
62163
  "@tscircuit/props": "^0.0.653",
62171
- "circuit-json": "^0.0.487"
62164
+ "circuit-json": "^0.0.488"
62172
62165
  }
62173
62166
  };
62174
62167
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1903",
4
+ "version": "0.0.1905",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -70,10 +70,10 @@
70
70
  "bun-match-svg": "0.0.12",
71
71
  "calculate-elbow": "^0.0.12",
72
72
  "chokidar-cli": "^3.0.0",
73
- "circuit-json": "^0.0.487",
73
+ "circuit-json": "^0.0.488",
74
74
  "circuit-json-to-bpc": "^0.0.13",
75
75
  "circuit-json-to-connectivity-map": "^0.0.30",
76
- "circuit-json-to-gltf": "^0.0.124",
76
+ "circuit-json-to-gltf": "^0.0.125",
77
77
  "circuit-json-to-spice": "^0.0.45",
78
78
  "circuit-to-svg": "^0.0.416",
79
79
  "concurrently": "^9.1.2",
@@ -87,7 +87,7 @@
87
87
  "live-server": "^1.2.2",
88
88
  "minicssgrid": "^0.0.9",
89
89
  "pkg-pr-new": "^0.0.37",
90
- "poppygl": "^0.0.27",
90
+ "poppygl": "^0.0.29",
91
91
  "react": "^19.1.0",
92
92
  "react-dom": "^19.1.0",
93
93
  "schematic-symbols": "^0.0.244",
@@ -134,6 +134,6 @@
134
134
  "overrides": {
135
135
  "@tscircuit/circuit-json-util": "^0.0.113",
136
136
  "@tscircuit/props": "^0.0.653",
137
- "circuit-json": "^0.0.487"
137
+ "circuit-json": "^0.0.488"
138
138
  }
139
139
  }