@tscircuit/cli 0.0.68 → 0.0.70

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.
Binary file
@@ -25,11 +25,13 @@
25
25
  "@tscircuit/builder": "latest",
26
26
  "@tscircuit/pcb-viewer": "^1.2.24",
27
27
  "@tscircuit/schematic-viewer": "^1.1.22",
28
+ "@tscircuit/table-viewer": "0.0.7",
28
29
  "axios": "^1.6.7",
29
30
  "class-variance-authority": "^0.7.0",
30
31
  "clsx": "^2.1.0",
31
32
  "cmdk": "^1.0.0",
32
33
  "react": "^18.2.0",
34
+ "react-data-grid": "^7.0.0-beta.37",
33
35
  "react-dom": "^18.2.0",
34
36
  "react-error-boundary": "^4.0.13",
35
37
  "react-hot-toast": "^2.4.1",
@@ -1927,11 +1929,10 @@
1927
1929
  }
1928
1930
  },
1929
1931
  "node_modules/@tscircuit/table-viewer": {
1930
- "version": "0.0.6",
1931
- "license": "ISC",
1932
- "peer": true,
1932
+ "version": "0.0.7",
1933
+ "resolved": "https://registry.npmjs.org/@tscircuit/table-viewer/-/table-viewer-0.0.7.tgz",
1934
+ "integrity": "sha512-DhQetibJG5nOwmrA+gFHdNJPZvjPtM7wV8nB++oxkYsfHLhYblMUrUo2dlSvFoCVJLaOdUgIF7sPxNXqs+PG6Q==",
1933
1935
  "dependencies": {
1934
- "react-data-grid": "^7.0.0-beta.37",
1935
1936
  "react-json-tree": "^0.18.0"
1936
1937
  },
1937
1938
  "peerDependencies": {
@@ -1979,8 +1980,7 @@
1979
1980
  },
1980
1981
  "node_modules/@types/base16": {
1981
1982
  "version": "1.0.5",
1982
- "license": "MIT",
1983
- "peer": true
1983
+ "license": "MIT"
1984
1984
  },
1985
1985
  "node_modules/@types/estree": {
1986
1986
  "version": "1.0.5",
@@ -1994,8 +1994,7 @@
1994
1994
  },
1995
1995
  "node_modules/@types/lodash": {
1996
1996
  "version": "4.17.0",
1997
- "license": "MIT",
1998
- "peer": true
1997
+ "license": "MIT"
1999
1998
  },
2000
1999
  "node_modules/@types/prop-types": {
2001
2000
  "version": "15.7.11",
@@ -2409,8 +2408,7 @@
2409
2408
  },
2410
2409
  "node_modules/base16": {
2411
2410
  "version": "1.0.0",
2412
- "license": "MIT",
2413
- "peer": true
2411
+ "license": "MIT"
2414
2412
  },
2415
2413
  "node_modules/big-integer": {
2416
2414
  "version": "1.6.52",
@@ -2619,7 +2617,6 @@
2619
2617
  "node_modules/color": {
2620
2618
  "version": "3.2.1",
2621
2619
  "license": "MIT",
2622
- "peer": true,
2623
2620
  "dependencies": {
2624
2621
  "color-convert": "^1.9.3",
2625
2622
  "color-string": "^1.6.0"
@@ -2642,7 +2639,6 @@
2642
2639
  "node_modules/color-string": {
2643
2640
  "version": "1.9.1",
2644
2641
  "license": "MIT",
2645
- "peer": true,
2646
2642
  "dependencies": {
2647
2643
  "color-name": "^1.0.0",
2648
2644
  "simple-swizzle": "^0.2.2"
@@ -2651,15 +2647,13 @@
2651
2647
  "node_modules/color/node_modules/color-convert": {
2652
2648
  "version": "1.9.3",
2653
2649
  "license": "MIT",
2654
- "peer": true,
2655
2650
  "dependencies": {
2656
2651
  "color-name": "1.1.3"
2657
2652
  }
2658
2653
  },
2659
2654
  "node_modules/color/node_modules/color-convert/node_modules/color-name": {
2660
2655
  "version": "1.1.3",
2661
- "license": "MIT",
2662
- "peer": true
2656
+ "license": "MIT"
2663
2657
  },
2664
2658
  "node_modules/combined-stream": {
2665
2659
  "version": "1.0.8",
@@ -3374,8 +3368,7 @@
3374
3368
  },
3375
3369
  "node_modules/is-arrayish": {
3376
3370
  "version": "0.3.2",
3377
- "license": "MIT",
3378
- "peer": true
3371
+ "license": "MIT"
3379
3372
  },
3380
3373
  "node_modules/is-binary-path": {
3381
3374
  "version": "2.1.0",
@@ -3657,8 +3650,7 @@
3657
3650
  },
3658
3651
  "node_modules/lodash.curry": {
3659
3652
  "version": "4.1.1",
3660
- "license": "MIT",
3661
- "peer": true
3653
+ "license": "MIT"
3662
3654
  },
3663
3655
  "node_modules/lodash.foreach": {
3664
3656
  "version": "2.3.0",
@@ -4235,7 +4227,6 @@
4235
4227
  "node_modules/react-base16-styling": {
4236
4228
  "version": "0.9.1",
4237
4229
  "license": "MIT",
4238
- "peer": true,
4239
4230
  "dependencies": {
4240
4231
  "@babel/runtime": "^7.16.7",
4241
4232
  "@types/base16": "^1.0.2",
@@ -4247,23 +4238,15 @@
4247
4238
  }
4248
4239
  },
4249
4240
  "node_modules/react-data-grid": {
4250
- "version": "7.0.0-canary.49",
4251
- "license": "MIT",
4252
- "peer": true,
4241
+ "version": "7.0.0-beta.37",
4242
+ "resolved": "https://registry.npmjs.org/react-data-grid/-/react-data-grid-7.0.0-beta.37.tgz",
4243
+ "integrity": "sha512-84RMvjOAyHf+kAExf1nr0k+MORgbvb5prrXUjnP8VA/3gMcGpx5re53FvhOull8BGRdp42GvhCnbBSlelNLgUg==",
4253
4244
  "dependencies": {
4254
- "clsx": "^1.1.1"
4245
+ "clsx": "^2.0.0"
4255
4246
  },
4256
4247
  "peerDependencies": {
4257
- "react": "^16.14 || ^17.0",
4258
- "react-dom": "^16.14 || ^17.0"
4259
- }
4260
- },
4261
- "node_modules/react-data-grid/node_modules/clsx": {
4262
- "version": "1.2.1",
4263
- "license": "MIT",
4264
- "peer": true,
4265
- "engines": {
4266
- "node": ">=6"
4248
+ "react": "^18.0",
4249
+ "react-dom": "^18.0"
4267
4250
  }
4268
4251
  },
4269
4252
  "node_modules/react-dom": {
@@ -4305,7 +4288,6 @@
4305
4288
  "node_modules/react-json-tree": {
4306
4289
  "version": "0.18.0",
4307
4290
  "license": "MIT",
4308
- "peer": true,
4309
4291
  "dependencies": {
4310
4292
  "@babel/runtime": "^7.20.6",
4311
4293
  "@types/lodash": "^4.14.191",
@@ -4649,7 +4631,6 @@
4649
4631
  "node_modules/simple-swizzle": {
4650
4632
  "version": "0.2.2",
4651
4633
  "license": "MIT",
4652
- "peer": true,
4653
4634
  "dependencies": {
4654
4635
  "is-arrayish": "^0.3.1"
4655
4636
  }
@@ -33,11 +33,13 @@
33
33
  "@tscircuit/builder": "latest",
34
34
  "@tscircuit/pcb-viewer": "^1.2.24",
35
35
  "@tscircuit/schematic-viewer": "^1.1.22",
36
+ "@tscircuit/table-viewer": "0.0.8",
36
37
  "axios": "^1.6.7",
37
38
  "class-variance-authority": "^0.7.0",
38
39
  "clsx": "^2.1.0",
39
40
  "cmdk": "^1.0.0",
40
41
  "react": "^18.2.0",
42
+ "react-data-grid": "7.0.0-beta.37",
41
43
  "react-dom": "^18.2.0",
42
44
  "react-error-boundary": "^4.0.13",
43
45
  "react-hot-toast": "^2.4.1",
@@ -5,6 +5,8 @@ import { Schematic } from "@tscircuit/schematic-viewer"
5
5
  import { PCBViewer } from "@tscircuit/pcb-viewer"
6
6
  import { cn } from "./lib/utils"
7
7
  import { ErrorBoundary } from "react-error-boundary"
8
+ import { SoupTableViewer } from "@tscircuit/table-viewer"
9
+ import "react-data-grid/lib/styles.css"
8
10
 
9
11
  export const ExampleContentView = () => {
10
12
  const devExamplePackageId = useGlobalStore(
@@ -74,7 +76,17 @@ export const ExampleContentView = () => {
74
76
  />
75
77
  </ErrorBoundary>
76
78
  )}
77
- {pkg?.error && (
79
+ {pkg && viewMode === "soup" && (
80
+ <ErrorBoundary fallback={<div>Failed to render Soup</div>}>
81
+ <SoupTableViewer
82
+ key={`soup-${pkg?.last_updated_at}`}
83
+ height={itemHeight}
84
+ elements={pkg.tscircuit_soup}
85
+ appearance="dark"
86
+ />
87
+ </ErrorBoundary>
88
+ )}
89
+ {pkg?.error && viewMode !== "soup" && (
78
90
  <div className="absolute top-0 w-full">
79
91
  <div className="bg-red-50 shadow-lg p-4 m-16 border-red-200 border rounded-lg whitespace-pre">
80
92
  {pkg?.error}
@@ -118,6 +118,7 @@ export const HeaderMenu = () => {
118
118
  <MenubarRadioItem value="schematic">Schematic</MenubarRadioItem>
119
119
  <MenubarRadioItem value="pcb">PCB</MenubarRadioItem>
120
120
  <MenubarRadioItem value="split">Split View</MenubarRadioItem>
121
+ <MenubarRadioItem value="soup">Soup</MenubarRadioItem>
121
122
  </MenubarRadioGroup>
122
123
  <MenubarSeparator />
123
124
  <MenubarRadioGroup
@@ -4,7 +4,7 @@ import { persist } from "zustand/middleware"
4
4
  export interface GlobalState {
5
5
  active_dev_example_package_id: string | null
6
6
 
7
- view_mode: "schematic" | "pcb" | "split"
7
+ view_mode: "schematic" | "pcb" | "split" | "soup"
8
8
  split_mode: "horizontal" | "vertical"
9
9
  in_debug_mode: boolean
10
10