@tscircuit/core 0.0.643 → 0.0.645

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 +8 -19
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -77,9 +77,8 @@ import {
77
77
  import Debug4 from "debug";
78
78
 
79
79
  // lib/fiber/create-instance-from-react-element.ts
80
- import React from "react";
80
+ import "react";
81
81
  import ReactReconciler from "react-reconciler";
82
- import ReactReconciler18 from "react-reconciler-18";
83
82
  import { DefaultEventPriority } from "react-reconciler/constants.js";
84
83
 
85
84
  // lib/components/base-components/Renderable.ts
@@ -1354,12 +1353,7 @@ var hostConfig = {
1354
1353
  maySuspendCommit: () => false,
1355
1354
  supportsHydration: false
1356
1355
  };
1357
- var reconciler;
1358
- if (React.version.startsWith("19.")) {
1359
- reconciler = ReactReconciler(hostConfig);
1360
- } else {
1361
- reconciler = ReactReconciler18(hostConfig);
1362
- }
1356
+ var reconciler = ReactReconciler(hostConfig);
1363
1357
  var createInstanceFromReactElement = (reactElm) => {
1364
1358
  const rootContainer = {
1365
1359
  children: [],
@@ -1392,14 +1386,9 @@ var createInstanceFromReactElement = (reactElm) => {
1392
1386
  },
1393
1387
  null
1394
1388
  );
1395
- if (React.version.startsWith("19.")) {
1396
- reconciler.updateContainerSync(reactElm, container, null, () => {
1397
- });
1398
- reconciler.flushSyncWork();
1399
- } else {
1400
- reconciler.updateContainer(reactElm, container, null, () => {
1401
- });
1402
- }
1389
+ reconciler.updateContainerSync(reactElm, container, null, () => {
1390
+ });
1391
+ reconciler.flushSyncWork();
1403
1392
  if (containerErrors.length > 0) {
1404
1393
  throw containerErrors[0];
1405
1394
  }
@@ -9221,6 +9210,7 @@ import {
9221
9210
  } from "@tscircuit/circuit-json-util";
9222
9211
  import { translate as translate5, rotate as rotate2, compose as compose4 } from "transformation-matrix";
9223
9212
  import Debug7 from "debug";
9213
+ var DEFAULT_MIN_GAP = "1mm";
9224
9214
  var debug6 = Debug7("Group_doInitialPcbLayoutPack");
9225
9215
  var isDescendantGroup = (db, groupId, ancestorId) => {
9226
9216
  if (groupId === ancestorId) return true;
@@ -9240,7 +9230,7 @@ var Group_doInitialPcbLayoutPack = (group) => {
9240
9230
  pcbPackGap
9241
9231
  } = props;
9242
9232
  const gap = pcbPackGap ?? pcbGap ?? gapProp;
9243
- const gapMm = length4.parse(gap ?? "0mm");
9233
+ const gapMm = length4.parse(gap ?? DEFAULT_MIN_GAP);
9244
9234
  const packInput = {
9245
9235
  ...convertPackOutputToPackInput(
9246
9236
  convertCircuitJsonToPackOutput(db.toArray(), {
@@ -12865,7 +12855,7 @@ import { identity as identity5 } from "transformation-matrix";
12865
12855
  var package_default = {
12866
12856
  name: "@tscircuit/core",
12867
12857
  type: "module",
12868
- version: "0.0.642",
12858
+ version: "0.0.644",
12869
12859
  types: "dist/index.d.ts",
12870
12860
  main: "dist/index.js",
12871
12861
  module: "dist/index.js",
@@ -12965,7 +12955,6 @@ var package_default = {
12965
12955
  nanoid: "^5.0.7",
12966
12956
  "performance-now": "^2.1.0",
12967
12957
  "react-reconciler": "^0.32.0",
12968
- "react-reconciler-18": "npm:react-reconciler@0.29.2",
12969
12958
  "transformation-matrix": "^2.16.1",
12970
12959
  zod: "^3.25.67"
12971
12960
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.643",
4
+ "version": "0.0.645",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -101,7 +101,6 @@
101
101
  "nanoid": "^5.0.7",
102
102
  "performance-now": "^2.1.0",
103
103
  "react-reconciler": "^0.32.0",
104
- "react-reconciler-18": "npm:react-reconciler@0.29.2",
105
104
  "transformation-matrix": "^2.16.1",
106
105
  "zod": "^3.25.67"
107
106
  }