@tscircuit/schematic-viewer 0.0.3 → 0.0.5
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 +6 -1
- package/dist/index.js +1257 -8707
- package/dist/index.js.map +1 -1
- package/package.json +18 -15
- package/dist/Schematic.d.ts +0 -6
- package/dist/Schematic.js +0 -9650
- package/dist/Schematic.js.map +0 -1
- package/dist/lib/hooks/index.d.ts +0 -1
- package/dist/lib/hooks/index.js +0 -2170
- package/dist/lib/hooks/index.js.map +0 -1
- package/dist/lib/hooks/use-maybe-promise.d.ts +0 -3
- package/dist/lib/hooks/use-maybe-promise.js +0 -2170
- package/dist/lib/hooks/use-maybe-promise.js.map +0 -1
- package/dist/lib/render-context/index.d.ts +0 -10
- package/dist/lib/render-context/index.js +0 -45
- package/dist/lib/render-context/index.js.map +0 -1
- package/dist/lib/types/core.d.ts +0 -149
- package/dist/lib/types/core.js +0 -18
- package/dist/lib/types/core.js.map +0 -1
- package/dist/lib/types/index.d.ts +0 -4
- package/dist/lib/types/index.js +0 -18
- package/dist/lib/types/index.js.map +0 -1
- package/dist/lib/types/route-solver.d.ts +0 -24
- package/dist/lib/types/route-solver.js +0 -18
- package/dist/lib/types/route-solver.js.map +0 -1
- package/dist/lib/types/source-component.d.ts +0 -44
- package/dist/lib/types/source-component.js +0 -18
- package/dist/lib/types/source-component.js.map +0 -1
- package/dist/lib/types/util.d.ts +0 -14
- package/dist/lib/types/util.js +0 -18
- package/dist/lib/types/util.js.map +0 -1
- package/dist/lib/utils/direction-to-vec.d.ts +0 -13
- package/dist/lib/utils/direction-to-vec.js +0 -96
- package/dist/lib/utils/direction-to-vec.js.map +0 -1
- package/dist/lib/utils/get-svg-path-bounds.d.ts +0 -10
- package/dist/lib/utils/get-svg-path-bounds.js +0 -51
- package/dist/lib/utils/get-svg-path-bounds.js.map +0 -1
- package/dist/lib/utils/point-math.d.ts +0 -20
- package/dist/lib/utils/point-math.js +0 -57
- package/dist/lib/utils/point-math.js.map +0 -1
- package/dist/pages/_app.d.ts +0 -5
- package/dist/pages/_app.js +0 -3656
- package/dist/pages/_app.js.map +0 -1
- package/dist/pages/index.d.ts +0 -3
- package/dist/pages/index.js +0 -9662
- package/dist/pages/index.js.map +0 -1
- package/dist/pages/led-circuit-react.d.ts +0 -3
- package/dist/pages/led-circuit-react.js +0 -9731
- package/dist/pages/led-circuit-react.js.map +0 -1
- package/dist/pages/led-circuit.d.ts +0 -3
- package/dist/pages/led-circuit.js +0 -9711
- package/dist/pages/led-circuit.js.map +0 -1
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.d.ts +0 -7
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js +0 -3107
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js.map +0 -1
- package/dist/schematic-components/MovableGrid/index.d.ts +0 -3
- package/dist/schematic-components/MovableGrid/index.js +0 -3091
- package/dist/schematic-components/MovableGrid/index.js.map +0 -1
- package/dist/schematic-components/ProjectComponent.d.ts +0 -10
- package/dist/schematic-components/ProjectComponent.js +0 -9622
- package/dist/schematic-components/ProjectComponent.js.map +0 -1
- package/dist/schematic-components/RenderError.d.ts +0 -6
- package/dist/schematic-components/RenderError.js +0 -3098
- package/dist/schematic-components/RenderError.js.map +0 -1
- package/dist/schematic-components/SVGPathComponent.d.ts +0 -19
- package/dist/schematic-components/SVGPathComponent.js +0 -3151
- package/dist/schematic-components/SVGPathComponent.js.map +0 -1
- package/dist/schematic-components/SchematicBug.d.ts +0 -13
- package/dist/schematic-components/SchematicBug.js +0 -3532
- package/dist/schematic-components/SchematicBug.js.map +0 -1
- package/dist/schematic-components/SchematicComponent.d.ts +0 -13
- package/dist/schematic-components/SchematicComponent.js +0 -9464
- package/dist/schematic-components/SchematicComponent.js.map +0 -1
- package/dist/schematic-components/SchematicGroup.d.ts +0 -3
- package/dist/schematic-components/SchematicGroup.js +0 -32
- package/dist/schematic-components/SchematicGroup.js.map +0 -1
- package/dist/schematic-components/SchematicPort.d.ts +0 -13
- package/dist/schematic-components/SchematicPort.js +0 -9327
- package/dist/schematic-components/SchematicPort.js.map +0 -1
- package/dist/schematic-components/SchematicText.d.ts +0 -10
- package/dist/schematic-components/SchematicText.js +0 -3124
- package/dist/schematic-components/SchematicText.js.map +0 -1
- package/dist/schematic-components/SchematicTrace.d.ts +0 -13
- package/dist/schematic-components/SchematicTrace.js +0 -3210
- package/dist/schematic-components/SchematicTrace.js.map +0 -1
- package/dist/schematic-components/SimpleCapacitor.d.ts +0 -13
- package/dist/schematic-components/SimpleCapacitor.js +0 -3170
- package/dist/schematic-components/SimpleCapacitor.js.map +0 -1
- package/dist/schematic-components/SimpleDiode.d.ts +0 -13
- package/dist/schematic-components/SimpleDiode.js +0 -3168
- package/dist/schematic-components/SimpleDiode.js.map +0 -1
- package/dist/schematic-components/SimpleGround.d.ts +0 -13
- package/dist/schematic-components/SimpleGround.js +0 -3169
- package/dist/schematic-components/SimpleGround.js.map +0 -1
- package/dist/schematic-components/SimpleInductor.d.ts +0 -13
- package/dist/schematic-components/SimpleInductor.js +0 -3169
- package/dist/schematic-components/SimpleInductor.js.map +0 -1
- package/dist/schematic-components/SimplePowerSource.d.ts +0 -13
- package/dist/schematic-components/SimplePowerSource.js +0 -3171
- package/dist/schematic-components/SimplePowerSource.js.map +0 -1
- package/dist/schematic-components/SimpleResistor.d.ts +0 -13
- package/dist/schematic-components/SimpleResistor.js +0 -3169
- package/dist/schematic-components/SimpleResistor.js.map +0 -1
- package/dist/schematic-components/index.d.ts +0 -18
- package/dist/schematic-components/index.js +0 -9656
- package/dist/schematic-components/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/schematic-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "next dev",
|
|
8
8
|
"typecheck": "tsc --noEmit",
|
|
9
|
-
"build": "tsup ./src --dts --sourcemap",
|
|
9
|
+
"build": "tsup ./src/index.ts --dts --sourcemap",
|
|
10
10
|
"yalc": "npm run build && yalc push"
|
|
11
11
|
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"@tscircuit/react-fiber": "^0.0.5",
|
|
14
|
+
"react": "^18.2.0"
|
|
15
|
+
},
|
|
12
16
|
"devDependencies": {
|
|
13
17
|
"@babel/core": "^7.18.9",
|
|
18
|
+
"@chakra-ui/react": "^2.2.4",
|
|
19
|
+
"@emotion/react": "^11",
|
|
20
|
+
"@emotion/styled": "^11",
|
|
14
21
|
"@storybook/addon-actions": "^6.5.9",
|
|
15
22
|
"@storybook/addon-essentials": "^6.5.9",
|
|
16
23
|
"@storybook/addon-interactions": "^6.5.9",
|
|
@@ -25,28 +32,24 @@
|
|
|
25
32
|
"babel-loader": "^8.2.5",
|
|
26
33
|
"esbuild": "^0.15.10",
|
|
27
34
|
"esbuild-register": "^3.3.3",
|
|
28
|
-
"next": "^12.2.3",
|
|
29
|
-
"react": "^18.2.0",
|
|
30
|
-
"react-dom": "^18.2.0",
|
|
31
|
-
"tsup": "^6.2.3",
|
|
32
|
-
"type-fest": "^2.17.0",
|
|
33
|
-
"typescript": "^4.8.4"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@chakra-ui/react": "^2.2.4",
|
|
37
|
-
"@emotion/react": "^11",
|
|
38
|
-
"@emotion/styled": "^11",
|
|
39
|
-
"@tscircuit/react-fiber": "^0.0.5",
|
|
40
35
|
"framer-motion": "^6",
|
|
36
|
+
"next": "^12.2.3",
|
|
41
37
|
"parse-svg-path": "^0.1.2",
|
|
42
38
|
"parsel-js": "^1.0.2",
|
|
39
|
+
"react-dom": "^18.2.0",
|
|
43
40
|
"react-no-ssr": "^1.1.0",
|
|
44
41
|
"react-use-measure": "^2.1.1",
|
|
45
42
|
"rectilinear-router": "^1.0.1",
|
|
46
43
|
"svg-path-bounds": "^1.0.2",
|
|
47
44
|
"svg-path-generator": "^1.1.0",
|
|
48
45
|
"transformation-matrix": "^2.12.0",
|
|
49
|
-
"
|
|
46
|
+
"tsup": "^6.2.3",
|
|
47
|
+
"type-fest": "^2.17.0",
|
|
48
|
+
"typescript": "^4.8.4",
|
|
50
49
|
"zustand": "^4.0.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@tscircuit/builder": "^1.0.11",
|
|
53
|
+
"@tscircuit/react-fiber": "^0.0.5"
|
|
51
54
|
}
|
|
52
55
|
}
|