@tscircuit/runframe 0.0.346 → 0.0.348
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/{chunk-ODEVX3CY.js → chunk-CRYLRRYE.js} +1149 -4
- package/dist/preview.d.ts +36 -2
- package/dist/preview.js +7 -3
- package/dist/runner.d.ts +1 -1
- package/dist/runner.js +153 -1204
- package/dist/standalone-preview.min.js +383 -383
- package/dist/standalone.min.js +713 -713
- package/package.json +2 -2
package/dist/preview.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ManualEditEvent } from '@tscircuit/props';
|
|
3
|
-
import { AnyCircuitElement } from 'circuit-json';
|
|
3
|
+
import { AnyCircuitElement, CircuitJson } from 'circuit-json';
|
|
4
|
+
import * as react from 'react';
|
|
4
5
|
import { ComponentProps } from 'react';
|
|
5
6
|
import { PCBViewer } from '@tscircuit/pcb-viewer';
|
|
6
7
|
export { PCBViewer as PcbViewer } from '@tscircuit/pcb-viewer';
|
|
@@ -85,4 +86,37 @@ declare const PcbViewerWithContainerHeight: ({ containerClassName, ...props }: {
|
|
|
85
86
|
containerClassName?: string;
|
|
86
87
|
} & ComponentProps<typeof PCBViewer>) => react_jsx_runtime.JSX.Element;
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
interface OrderDialogProps {
|
|
90
|
+
isOpen: boolean;
|
|
91
|
+
onClose: () => void;
|
|
92
|
+
stage: "initial" | "progress" | "checkout";
|
|
93
|
+
setStage: (stage: "initial" | "progress" | "checkout") => void;
|
|
94
|
+
circuitJson?: CircuitJson;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface CliOrderDialogProps {
|
|
98
|
+
isOpen: boolean;
|
|
99
|
+
onClose: () => void;
|
|
100
|
+
stage: "initial" | "progress" | "checkout";
|
|
101
|
+
setStage: (stage: "initial" | "progress" | "checkout") => void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type OrderStage = "initial" | "progress" | "checkout";
|
|
105
|
+
declare const useOrderDialogCli: () => {
|
|
106
|
+
isOpen: boolean;
|
|
107
|
+
stage: OrderStage;
|
|
108
|
+
open: () => void;
|
|
109
|
+
close: () => void;
|
|
110
|
+
setStage: react.Dispatch<react.SetStateAction<OrderStage>>;
|
|
111
|
+
OrderDialog: react.FC<CliOrderDialogProps>;
|
|
112
|
+
};
|
|
113
|
+
declare const useOrderDialog: () => {
|
|
114
|
+
isOpen: boolean;
|
|
115
|
+
stage: OrderStage;
|
|
116
|
+
open: () => void;
|
|
117
|
+
close: () => void;
|
|
118
|
+
setStage: react.Dispatch<react.SetStateAction<OrderStage>>;
|
|
119
|
+
OrderDialog: react.FC<OrderDialogProps>;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export { BomTable, CircuitJsonPreview, PcbViewerWithContainerHeight, type PreviewContentProps, type TabId, linkify, useOrderDialog, useOrderDialogCli };
|
package/dist/preview.js
CHANGED
|
@@ -5,8 +5,10 @@ import {
|
|
|
5
5
|
PCBViewer,
|
|
6
6
|
PcbViewerWithContainerHeight,
|
|
7
7
|
SchematicViewer,
|
|
8
|
-
linkify
|
|
9
|
-
|
|
8
|
+
linkify,
|
|
9
|
+
useOrderDialog,
|
|
10
|
+
useOrderDialogCli
|
|
11
|
+
} from "./chunk-CRYLRRYE.js";
|
|
10
12
|
export {
|
|
11
13
|
BomTable,
|
|
12
14
|
CadViewer,
|
|
@@ -14,5 +16,7 @@ export {
|
|
|
14
16
|
PCBViewer as PcbViewer,
|
|
15
17
|
PcbViewerWithContainerHeight,
|
|
16
18
|
SchematicViewer,
|
|
17
|
-
linkify
|
|
19
|
+
linkify,
|
|
20
|
+
useOrderDialog,
|
|
21
|
+
useOrderDialogCli
|
|
18
22
|
};
|
package/dist/runner.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabId } from './preview.js';
|
|
2
|
-
export { BomTable, CircuitJsonPreview, PcbViewerWithContainerHeight, PreviewContentProps, linkify } from './preview.js';
|
|
2
|
+
export { BomTable, CircuitJsonPreview, PcbViewerWithContainerHeight, PreviewContentProps, linkify, useOrderDialog, useOrderDialogCli } from './preview.js';
|
|
3
3
|
export { CadViewer } from '@tscircuit/3d-viewer';
|
|
4
4
|
export { PCBViewer as PcbViewer } from '@tscircuit/pcb-viewer';
|
|
5
5
|
export { SchematicViewer } from '@tscircuit/schematic-viewer';
|