@tscircuit/cli 0.0.184 → 0.0.185

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.
@@ -1,3 +1,5 @@
1
1
  export const CapacitorExample = () => (
2
- <capacitor capacitance="10uF" name="C1" footprint="0805" />
2
+ <board width="10mm" height="10mm">
3
+ <capacitor capacitance="10uF" name="C1" footprint="0805" />
4
+ </board>
3
5
  )
@@ -0,0 +1,10 @@
1
+ import { layout } from "@tscircuit/layout"
2
+ import manualEdits from "example-project/src/manual-edits"
3
+ import { SwitchShaft } from "example-project/src/SwitchShaft"
4
+
5
+ export const MacroKeypad = () => (
6
+ <board width="20mm" height="20mm">
7
+ <SwitchShaft name="SW1" pcbX={3} pcbY={3} />
8
+ {/* <SwitchShaft name="SW2" /> */}
9
+ </board>
10
+ )
@@ -0,0 +1,55 @@
1
+ import "@tscircuit/core"
2
+
3
+ /**
4
+ * A switch shaft you can use to connect a pluggable Kailh socket.
5
+ *
6
+ * Datasheet: https://wmsc.lcsc.com/wmsc/upload/file/pdf/v2/lcsc/2211090930_Kailh-CPG151101S11-1_C5184526.pdf
7
+ */
8
+ export const SwitchShaft = (props: {
9
+ name: string
10
+ pcbX?: number
11
+ pcbY?: number
12
+ }) => (
13
+ <chip
14
+ {...props}
15
+ footprint={
16
+ <footprint>
17
+ <smtpad
18
+ shape="rect"
19
+ width="2.55mm"
20
+ height="2.5mm"
21
+ portHints={["pin1"]}
22
+ />
23
+ <smtpad
24
+ shape="rect"
25
+ width="2.55mm"
26
+ height="2.5mm"
27
+ portHints={["pin2"]}
28
+ />
29
+ <platedhole
30
+ shape="circle"
31
+ name="H1"
32
+ holeDiameter="3mm"
33
+ outerDiameter="3.1mm"
34
+ />
35
+ <platedhole
36
+ shape="circle"
37
+ name="H2"
38
+ holeDiameter="3mm"
39
+ outerDiameter="3.1mm"
40
+ />
41
+ <constraint xDist="6.35mm" centerToCenter left=".H1" right=".H2" />
42
+ <constraint yDist="2.54mm" centerToCenter top=".H1" bottom=".H2" />
43
+ <constraint edgeToEdge xDist="11.3mm" left=".pin1" right=".pin2" />
44
+ <constraint sameY for={[".pin1", ".H1"]} />
45
+ <constraint sameY for={[".pin2", ".H2"]} />
46
+ <constraint
47
+ edgeToEdge
48
+ xDist={(11.3 - 6.35 - 3) / 2}
49
+ left=".pin1"
50
+ right=".H1"
51
+ />
52
+ </footprint>
53
+ }
54
+ />
55
+ )
@@ -286,13 +286,6 @@ export const HeaderMenu = () => {
286
286
  "",
287
287
  )}
288
288
  </MenubarItem>
289
- <MenubarItem disabled>
290
- @tscircuit/react-fiber v
291
- {cliPackageJson.dependencies["@tscircuit/react-fiber"].replace(
292
- /\^/g,
293
- "",
294
- )}
295
- </MenubarItem>
296
289
  <MenubarItem disabled>
297
290
  @tscircuit/schematic-viewer v
298
291
  {cliPackageJson.devDependencies[
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.184",
3
+ "version": "0.0.185",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",
@@ -9,7 +9,7 @@
9
9
  "start": "bun cli/cli.ts",
10
10
  "dev": "bun run build:dev-server && concurrently 'bun run dev:frontend' 'bun run dev:test-project'",
11
11
  "dev:frontend": "vite dev --config frontend/vite.config.ts",
12
- "dev:test-project": "bun --hot cli/cli.ts dev --no-cleanup --core --cwd ./example-project",
12
+ "dev:test-project": "bun --hot cli/cli.ts dev --no-cleanup --cwd ./example-project",
13
13
  "start:dev-server": "bun build:dev-server && bun cli/cli.ts dev -y --cwd ./example-project",
14
14
  "build": "bun build:dev-server && npm run build:cli",
15
15
  "build:cli": "bun scripts/build-cli.ts",
@@ -36,9 +36,8 @@
36
36
  "@edge-runtime/primitives": "^4.1.0",
37
37
  "@hono/node-server": "^1.8.2",
38
38
  "@tscircuit/builder": "*",
39
- "@tscircuit/props": "^0.0.62",
40
39
  "@tscircuit/core": "0.0.35",
41
- "@tscircuit/react-fiber": "*",
40
+ "@tscircuit/props": "^0.0.62",
42
41
  "archiver": "^7.0.1",
43
42
  "axios": "^1.6.7",
44
43
  "chokidar": "^3.6.0",
@@ -76,7 +75,6 @@
76
75
  "@tscircuit/builder": "*",
77
76
  "@tscircuit/layout": "*",
78
77
  "@tscircuit/manual-edit-events": "*",
79
- "@tscircuit/react-fiber": "*",
80
78
  "@tscircuit/soup-util": "*"
81
79
  },
82
80
  "devDependencies": {