@tscircuit/core 0.0.262 → 0.0.264

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.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as _tscircuit_props from '@tscircuit/props';
2
2
  import { subcircuitGroupProps, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, CapacitorProps, ChipProps, ResistorProps, ManualEditEvent, manual_edits_file } from '@tscircuit/props';
3
3
  import React, { ReactElement } from 'react';
4
+ export { createElement } from 'react';
4
5
  import * as zod from 'zod';
5
6
  import { z, ZodType } from 'zod';
6
7
  import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
package/dist/index.js CHANGED
@@ -787,6 +787,11 @@ var PrimitiveComponent = class extends Renderable {
787
787
  const symbol_name_down = `${base_symbol_name}_down`;
788
788
  const symbol_name_left = `${base_symbol_name}_left`;
789
789
  const symbol_name_right = `${base_symbol_name}_right`;
790
+ if (props.schRotation !== void 0 && props.schRotation !== 0 && props.schRotation !== 90 && props.schRotation !== 180 && props.schRotation !== 270) {
791
+ throw new Error(
792
+ `Schematic rotation ${props.schRotation} is not supported for ${this.componentName}`
793
+ );
794
+ }
790
795
  if (symbol_name_right in symbols && (props.schRotation === void 0 || props.schRotation === 0)) {
791
796
  return symbol_name_right;
792
797
  }
@@ -6550,6 +6555,9 @@ var applyEditEventsToManualEditsFile = ({
6550
6555
  return updatedManualEditsFile;
6551
6556
  };
6552
6557
 
6558
+ // lib/index.ts
6559
+ import { createElement } from "react";
6560
+
6553
6561
  // lib/register-catalogue.ts
6554
6562
  extendCatalogue(components_exports);
6555
6563
  extendCatalogue({
@@ -6601,6 +6609,7 @@ export {
6601
6609
  Transistor,
6602
6610
  Via,
6603
6611
  applyEditEventsToManualEditsFile,
6612
+ createElement,
6604
6613
  createUseComponent,
6605
6614
  orderedRenderPhases,
6606
6615
  useCapacitor,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.262",
4
+ "version": "0.0.264",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",