@simten/ui 0.1.1

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 (307) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +41 -0
  3. package/dist/canvas/CircuitCanvas.d.ts +45 -0
  4. package/dist/canvas/CircuitCanvas.d.ts.map +1 -0
  5. package/dist/canvas/CircuitCanvas.js +293 -0
  6. package/dist/canvas/CircuitCanvas.js.map +1 -0
  7. package/dist/canvas/ClockControls.d.ts +31 -0
  8. package/dist/canvas/ClockControls.d.ts.map +1 -0
  9. package/dist/canvas/ClockControls.js +33 -0
  10. package/dist/canvas/ClockControls.js.map +1 -0
  11. package/dist/canvas/CompositeInspectorDialog.d.ts +24 -0
  12. package/dist/canvas/CompositeInspectorDialog.d.ts.map +1 -0
  13. package/dist/canvas/CompositeInspectorDialog.js +290 -0
  14. package/dist/canvas/CompositeInspectorDialog.js.map +1 -0
  15. package/dist/canvas/dagre-layout.d.ts +40 -0
  16. package/dist/canvas/dagre-layout.d.ts.map +1 -0
  17. package/dist/canvas/dagre-layout.js +86 -0
  18. package/dist/canvas/dagre-layout.js.map +1 -0
  19. package/dist/canvas/drill-down-view.d.ts +35 -0
  20. package/dist/canvas/drill-down-view.d.ts.map +1 -0
  21. package/dist/canvas/drill-down-view.js +134 -0
  22. package/dist/canvas/drill-down-view.js.map +1 -0
  23. package/dist/canvas/hooks/useDetectTheme.d.ts +6 -0
  24. package/dist/canvas/hooks/useDetectTheme.d.ts.map +1 -0
  25. package/dist/canvas/hooks/useDetectTheme.js +20 -0
  26. package/dist/canvas/hooks/useDetectTheme.js.map +1 -0
  27. package/dist/canvas/hooks/useIsMobile.d.ts +2 -0
  28. package/dist/canvas/hooks/useIsMobile.d.ts.map +1 -0
  29. package/dist/canvas/hooks/useIsMobile.js +20 -0
  30. package/dist/canvas/hooks/useIsMobile.js.map +1 -0
  31. package/dist/canvas/hooks/useSimulationSession.d.ts +23 -0
  32. package/dist/canvas/hooks/useSimulationSession.d.ts.map +1 -0
  33. package/dist/canvas/hooks/useSimulationSession.js +41 -0
  34. package/dist/canvas/hooks/useSimulationSession.js.map +1 -0
  35. package/dist/canvas/index.d.ts +22 -0
  36. package/dist/canvas/index.d.ts.map +1 -0
  37. package/dist/canvas/index.js +17 -0
  38. package/dist/canvas/index.js.map +1 -0
  39. package/dist/canvas/label-utils.d.ts +10 -0
  40. package/dist/canvas/label-utils.d.ts.map +1 -0
  41. package/dist/canvas/label-utils.js +32 -0
  42. package/dist/canvas/label-utils.js.map +1 -0
  43. package/dist/canvas/node-types.d.ts +10 -0
  44. package/dist/canvas/node-types.d.ts.map +1 -0
  45. package/dist/canvas/node-types.js +29 -0
  46. package/dist/canvas/node-types.js.map +1 -0
  47. package/dist/canvas/projection.d.ts +19 -0
  48. package/dist/canvas/projection.d.ts.map +1 -0
  49. package/dist/canvas/projection.js +317 -0
  50. package/dist/canvas/projection.js.map +1 -0
  51. package/dist/canvas/types.d.ts +56 -0
  52. package/dist/canvas/types.d.ts.map +1 -0
  53. package/dist/canvas/types.js +6 -0
  54. package/dist/canvas/types.js.map +1 -0
  55. package/dist/canvas/useLayout.d.ts +21 -0
  56. package/dist/canvas/useLayout.d.ts.map +1 -0
  57. package/dist/canvas/useLayout.js +26 -0
  58. package/dist/canvas/useLayout.js.map +1 -0
  59. package/dist/editor/components/CircuitSelector.d.ts +9 -0
  60. package/dist/editor/components/CircuitSelector.d.ts.map +1 -0
  61. package/dist/editor/components/CircuitSelector.js +20 -0
  62. package/dist/editor/components/CircuitSelector.js.map +1 -0
  63. package/dist/editor/components/CircuitTabBar.d.ts +8 -0
  64. package/dist/editor/components/CircuitTabBar.d.ts.map +1 -0
  65. package/dist/editor/components/CircuitTabBar.js +23 -0
  66. package/dist/editor/components/CircuitTabBar.js.map +1 -0
  67. package/dist/editor/components/ClockControls.d.ts +6 -0
  68. package/dist/editor/components/ClockControls.d.ts.map +1 -0
  69. package/dist/editor/components/ClockControls.js +7 -0
  70. package/dist/editor/components/ClockControls.js.map +1 -0
  71. package/dist/editor/components/ComponentTooltip.d.ts +25 -0
  72. package/dist/editor/components/ComponentTooltip.d.ts.map +1 -0
  73. package/dist/editor/components/ComponentTooltip.js +82 -0
  74. package/dist/editor/components/ComponentTooltip.js.map +1 -0
  75. package/dist/editor/components/ConflictResolutionModal.d.ts +19 -0
  76. package/dist/editor/components/ConflictResolutionModal.d.ts.map +1 -0
  77. package/dist/editor/components/ConflictResolutionModal.js +20 -0
  78. package/dist/editor/components/ConflictResolutionModal.js.map +1 -0
  79. package/dist/editor/components/HierarchyBreadcrumb.d.ts +9 -0
  80. package/dist/editor/components/HierarchyBreadcrumb.d.ts.map +1 -0
  81. package/dist/editor/components/HierarchyBreadcrumb.js +32 -0
  82. package/dist/editor/components/HierarchyBreadcrumb.js.map +1 -0
  83. package/dist/editor/components/LabelEditor.d.ts +17 -0
  84. package/dist/editor/components/LabelEditor.d.ts.map +1 -0
  85. package/dist/editor/components/LabelEditor.js +40 -0
  86. package/dist/editor/components/LabelEditor.js.map +1 -0
  87. package/dist/editor/components/SignalOutputPanel.d.ts +11 -0
  88. package/dist/editor/components/SignalOutputPanel.d.ts.map +1 -0
  89. package/dist/editor/components/SignalOutputPanel.js +34 -0
  90. package/dist/editor/components/SignalOutputPanel.js.map +1 -0
  91. package/dist/editor/components/index.d.ts +9 -0
  92. package/dist/editor/components/index.d.ts.map +1 -0
  93. package/dist/editor/components/index.js +9 -0
  94. package/dist/editor/components/index.js.map +1 -0
  95. package/dist/editor/hooks/index.d.ts +1 -0
  96. package/dist/editor/hooks/index.d.ts.map +1 -0
  97. package/dist/editor/hooks/index.js +2 -0
  98. package/dist/editor/hooks/index.js.map +1 -0
  99. package/dist/editor/index.d.ts +5 -0
  100. package/dist/editor/index.d.ts.map +1 -0
  101. package/dist/editor/index.js +5 -0
  102. package/dist/editor/index.js.map +1 -0
  103. package/dist/editor/lib/simulation/index.d.ts +7 -0
  104. package/dist/editor/lib/simulation/index.d.ts.map +1 -0
  105. package/dist/editor/lib/simulation/index.js +8 -0
  106. package/dist/editor/lib/simulation/index.js.map +1 -0
  107. package/dist/editor/lib/utils/circuit-flattener.d.ts +29 -0
  108. package/dist/editor/lib/utils/circuit-flattener.d.ts.map +1 -0
  109. package/dist/editor/lib/utils/circuit-flattener.js +230 -0
  110. package/dist/editor/lib/utils/circuit-flattener.js.map +1 -0
  111. package/dist/editor/lib/utils/component-utils.d.ts +28 -0
  112. package/dist/editor/lib/utils/component-utils.d.ts.map +1 -0
  113. package/dist/editor/lib/utils/component-utils.js +72 -0
  114. package/dist/editor/lib/utils/component-utils.js.map +1 -0
  115. package/dist/editor/lib/utils/index.d.ts +3 -0
  116. package/dist/editor/lib/utils/index.d.ts.map +1 -0
  117. package/dist/editor/lib/utils/index.js +3 -0
  118. package/dist/editor/lib/utils/index.js.map +1 -0
  119. package/dist/editor/lib/visualization/index.d.ts +2 -0
  120. package/dist/editor/lib/visualization/index.d.ts.map +1 -0
  121. package/dist/editor/lib/visualization/index.js +2 -0
  122. package/dist/editor/lib/visualization/index.js.map +1 -0
  123. package/dist/editor/lib/visualization/vcd-generator.d.ts +63 -0
  124. package/dist/editor/lib/visualization/vcd-generator.d.ts.map +1 -0
  125. package/dist/editor/lib/visualization/vcd-generator.js +269 -0
  126. package/dist/editor/lib/visualization/vcd-generator.js.map +1 -0
  127. package/dist/editor/stores/circuit-library-store.d.ts +25 -0
  128. package/dist/editor/stores/circuit-library-store.d.ts.map +1 -0
  129. package/dist/editor/stores/circuit-library-store.js +51 -0
  130. package/dist/editor/stores/circuit-library-store.js.map +1 -0
  131. package/dist/editor/stores/circuit-preview-store.d.ts +687 -0
  132. package/dist/editor/stores/circuit-preview-store.d.ts.map +1 -0
  133. package/dist/editor/stores/circuit-preview-store.js +226 -0
  134. package/dist/editor/stores/circuit-preview-store.js.map +1 -0
  135. package/dist/editor/stores/circuit-store.d.ts +354 -0
  136. package/dist/editor/stores/circuit-store.d.ts.map +1 -0
  137. package/dist/editor/stores/circuit-store.js +227 -0
  138. package/dist/editor/stores/circuit-store.js.map +1 -0
  139. package/dist/editor/stores/index.d.ts +11 -0
  140. package/dist/editor/stores/index.d.ts.map +1 -0
  141. package/dist/editor/stores/index.js +8 -0
  142. package/dist/editor/stores/index.js.map +1 -0
  143. package/dist/editor/stores/ui-store.d.ts +96 -0
  144. package/dist/editor/stores/ui-store.d.ts.map +1 -0
  145. package/dist/editor/stores/ui-store.js +101 -0
  146. package/dist/editor/stores/ui-store.js.map +1 -0
  147. package/dist/editor/types/circuit.d.ts +207 -0
  148. package/dist/editor/types/circuit.d.ts.map +1 -0
  149. package/dist/editor/types/circuit.js +62 -0
  150. package/dist/editor/types/circuit.js.map +1 -0
  151. package/dist/editor/types/index.d.ts +12 -0
  152. package/dist/editor/types/index.d.ts.map +1 -0
  153. package/dist/editor/types/index.js +11 -0
  154. package/dist/editor/types/index.js.map +1 -0
  155. package/dist/editor/types/testbench.d.ts +150 -0
  156. package/dist/editor/types/testbench.d.ts.map +1 -0
  157. package/dist/editor/types/testbench.js +85 -0
  158. package/dist/editor/types/testbench.js.map +1 -0
  159. package/dist/editor/types/testing.d.ts +88 -0
  160. package/dist/editor/types/testing.d.ts.map +1 -0
  161. package/dist/editor/types/testing.js +6 -0
  162. package/dist/editor/types/testing.js.map +1 -0
  163. package/dist/editor/types/ui-model.d.ts +68 -0
  164. package/dist/editor/types/ui-model.d.ts.map +1 -0
  165. package/dist/editor/types/ui-model.js +66 -0
  166. package/dist/editor/types/ui-model.js.map +1 -0
  167. package/dist/editor/types/ui.d.ts +33 -0
  168. package/dist/editor/types/ui.d.ts.map +1 -0
  169. package/dist/editor/types/ui.js +8 -0
  170. package/dist/editor/types/ui.js.map +1 -0
  171. package/dist/editor/types/visual.d.ts +45 -0
  172. package/dist/editor/types/visual.d.ts.map +1 -0
  173. package/dist/editor/types/visual.js +23 -0
  174. package/dist/editor/types/visual.js.map +1 -0
  175. package/dist/editor/utils/index.d.ts +5 -0
  176. package/dist/editor/utils/index.d.ts.map +1 -0
  177. package/dist/editor/utils/index.js +6 -0
  178. package/dist/editor/utils/index.js.map +1 -0
  179. package/dist/index.d.ts +11 -0
  180. package/dist/index.d.ts.map +1 -0
  181. package/dist/index.js +12 -0
  182. package/dist/index.js.map +1 -0
  183. package/dist/lib/utils.d.ts +3 -0
  184. package/dist/lib/utils.d.ts.map +1 -0
  185. package/dist/lib/utils.js +6 -0
  186. package/dist/lib/utils.js.map +1 -0
  187. package/dist/nodes/BaseNode.d.ts +20 -0
  188. package/dist/nodes/BaseNode.d.ts.map +1 -0
  189. package/dist/nodes/BaseNode.js +26 -0
  190. package/dist/nodes/BaseNode.js.map +1 -0
  191. package/dist/nodes/CompositeBadge.d.ts +6 -0
  192. package/dist/nodes/CompositeBadge.d.ts.map +1 -0
  193. package/dist/nodes/CompositeBadge.js +10 -0
  194. package/dist/nodes/CompositeBadge.js.map +1 -0
  195. package/dist/nodes/ConsoleNode.d.ts +8 -0
  196. package/dist/nodes/ConsoleNode.d.ts.map +1 -0
  197. package/dist/nodes/ConsoleNode.js +16 -0
  198. package/dist/nodes/ConsoleNode.js.map +1 -0
  199. package/dist/nodes/EmbedConsoleNode.d.ts +8 -0
  200. package/dist/nodes/EmbedConsoleNode.d.ts.map +1 -0
  201. package/dist/nodes/EmbedConsoleNode.js +24 -0
  202. package/dist/nodes/EmbedConsoleNode.js.map +1 -0
  203. package/dist/nodes/EmbedScreenNode.d.ts +8 -0
  204. package/dist/nodes/EmbedScreenNode.d.ts.map +1 -0
  205. package/dist/nodes/EmbedScreenNode.js +24 -0
  206. package/dist/nodes/EmbedScreenNode.js.map +1 -0
  207. package/dist/nodes/EthFrameInputNode.d.ts +8 -0
  208. package/dist/nodes/EthFrameInputNode.d.ts.map +1 -0
  209. package/dist/nodes/EthFrameInputNode.js +14 -0
  210. package/dist/nodes/EthFrameInputNode.js.map +1 -0
  211. package/dist/nodes/InputNode.d.ts +8 -0
  212. package/dist/nodes/InputNode.d.ts.map +1 -0
  213. package/dist/nodes/InputNode.js +57 -0
  214. package/dist/nodes/InputNode.js.map +1 -0
  215. package/dist/nodes/LogicGateNode.d.ts +8 -0
  216. package/dist/nodes/LogicGateNode.d.ts.map +1 -0
  217. package/dist/nodes/LogicGateNode.js +51 -0
  218. package/dist/nodes/LogicGateNode.js.map +1 -0
  219. package/dist/nodes/NicFifoNode.d.ts +8 -0
  220. package/dist/nodes/NicFifoNode.d.ts.map +1 -0
  221. package/dist/nodes/NicFifoNode.js +10 -0
  222. package/dist/nodes/NicFifoNode.js.map +1 -0
  223. package/dist/nodes/NodeData.d.ts +34 -0
  224. package/dist/nodes/NodeData.d.ts.map +1 -0
  225. package/dist/nodes/NodeData.js +2 -0
  226. package/dist/nodes/NodeData.js.map +1 -0
  227. package/dist/nodes/NumericInputNode.d.ts +8 -0
  228. package/dist/nodes/NumericInputNode.d.ts.map +1 -0
  229. package/dist/nodes/NumericInputNode.js +47 -0
  230. package/dist/nodes/NumericInputNode.js.map +1 -0
  231. package/dist/nodes/OutputNode.d.ts +8 -0
  232. package/dist/nodes/OutputNode.d.ts.map +1 -0
  233. package/dist/nodes/OutputNode.js +32 -0
  234. package/dist/nodes/OutputNode.js.map +1 -0
  235. package/dist/nodes/RAMNode.d.ts +8 -0
  236. package/dist/nodes/RAMNode.d.ts.map +1 -0
  237. package/dist/nodes/RAMNode.js +23 -0
  238. package/dist/nodes/RAMNode.js.map +1 -0
  239. package/dist/nodes/ROMNode.d.ts +8 -0
  240. package/dist/nodes/ROMNode.d.ts.map +1 -0
  241. package/dist/nodes/ROMNode.js +23 -0
  242. package/dist/nodes/ROMNode.js.map +1 -0
  243. package/dist/nodes/RV32IInstrMemNode.d.ts +16 -0
  244. package/dist/nodes/RV32IInstrMemNode.d.ts.map +1 -0
  245. package/dist/nodes/RV32IInstrMemNode.js +183 -0
  246. package/dist/nodes/RV32IInstrMemNode.js.map +1 -0
  247. package/dist/nodes/RasterDisplayNode.d.ts +8 -0
  248. package/dist/nodes/RasterDisplayNode.d.ts.map +1 -0
  249. package/dist/nodes/RasterDisplayNode.js +14 -0
  250. package/dist/nodes/RasterDisplayNode.js.map +1 -0
  251. package/dist/nodes/RegisterNode.d.ts +8 -0
  252. package/dist/nodes/RegisterNode.d.ts.map +1 -0
  253. package/dist/nodes/RegisterNode.js +14 -0
  254. package/dist/nodes/RegisterNode.js.map +1 -0
  255. package/dist/nodes/ScreenNode.d.ts +8 -0
  256. package/dist/nodes/ScreenNode.d.ts.map +1 -0
  257. package/dist/nodes/ScreenNode.js +16 -0
  258. package/dist/nodes/ScreenNode.js.map +1 -0
  259. package/dist/nodes/UartTxNode.d.ts +8 -0
  260. package/dist/nodes/UartTxNode.d.ts.map +1 -0
  261. package/dist/nodes/UartTxNode.js +16 -0
  262. package/dist/nodes/UartTxNode.js.map +1 -0
  263. package/dist/nodes/index.d.ts +27 -0
  264. package/dist/nodes/index.d.ts.map +1 -0
  265. package/dist/nodes/index.js +30 -0
  266. package/dist/nodes/index.js.map +1 -0
  267. package/dist/primitives/button.d.ts +12 -0
  268. package/dist/primitives/button.d.ts.map +1 -0
  269. package/dist/primitives/button.js +32 -0
  270. package/dist/primitives/button.js.map +1 -0
  271. package/dist/primitives/index.d.ts +4 -0
  272. package/dist/primitives/index.d.ts.map +1 -0
  273. package/dist/primitives/index.js +4 -0
  274. package/dist/primitives/index.js.map +1 -0
  275. package/dist/primitives/sheet.d.ts +15 -0
  276. package/dist/primitives/sheet.d.ts.map +1 -0
  277. package/dist/primitives/sheet.js +40 -0
  278. package/dist/primitives/sheet.js.map +1 -0
  279. package/dist/primitives/tooltip.d.ts +8 -0
  280. package/dist/primitives/tooltip.d.ts.map +1 -0
  281. package/dist/primitives/tooltip.js +17 -0
  282. package/dist/primitives/tooltip.js.map +1 -0
  283. package/dist/sandbox/SandboxProvider.d.ts +13 -0
  284. package/dist/sandbox/SandboxProvider.d.ts.map +1 -0
  285. package/dist/sandbox/SandboxProvider.js +34 -0
  286. package/dist/sandbox/SandboxProvider.js.map +1 -0
  287. package/dist/sandbox/index.d.ts +4 -0
  288. package/dist/sandbox/index.d.ts.map +1 -0
  289. package/dist/sandbox/index.js +3 -0
  290. package/dist/sandbox/index.js.map +1 -0
  291. package/dist/sandbox/useSandbox.d.ts +197 -0
  292. package/dist/sandbox/useSandbox.d.ts.map +1 -0
  293. package/dist/sandbox/useSandbox.js +250 -0
  294. package/dist/sandbox/useSandbox.js.map +1 -0
  295. package/dist/share/encode-source.d.ts +13 -0
  296. package/dist/share/encode-source.d.ts.map +1 -0
  297. package/dist/share/encode-source.js +31 -0
  298. package/dist/share/encode-source.js.map +1 -0
  299. package/dist/share/index.d.ts +2 -0
  300. package/dist/share/index.d.ts.map +1 -0
  301. package/dist/share/index.js +2 -0
  302. package/dist/share/index.js.map +1 -0
  303. package/dist/waveform/WaveformViewer.d.ts +30 -0
  304. package/dist/waveform/WaveformViewer.d.ts.map +1 -0
  305. package/dist/waveform/WaveformViewer.js +356 -0
  306. package/dist/waveform/WaveformViewer.js.map +1 -0
  307. package/package.json +110 -0
@@ -0,0 +1,687 @@
1
+ /**
2
+ * Circuit Preview Store - Compiled Circuit / Canvas Integration State Management
3
+ *
4
+ * Manages compiled TypeScript circuit results, circuit selection, and bidirectional sync
5
+ * between circuit code and canvas visualization.
6
+ *
7
+ * Key responsibilities:
8
+ * - Store compiled circuits from TypeScript builder code
9
+ * - Track which circuit to visualize (default: last in file)
10
+ * - Version tracking for conflict detection
11
+ * - Apply selected circuit to canvas
12
+ */
13
+ import type { Circuit } from '../types/circuit';
14
+ /**
15
+ * A single frame on the drill-down navigation stack.
16
+ * Each frame represents one level of composite hierarchy.
17
+ */
18
+ export interface DrillDownFrame {
19
+ nodeId: string;
20
+ nodeLabel: string;
21
+ componentName: string;
22
+ circuit: Circuit;
23
+ }
24
+ interface CircuitPreviewActions {
25
+ setCompiledCircuits: (circuits: Circuit[], code: string) => void;
26
+ selectCircuit: (index: number) => void;
27
+ applyToCanvas: () => void;
28
+ updateVersion: (code: string) => void;
29
+ hasConflict: () => boolean;
30
+ resolveConflict: (keepCode: boolean) => void;
31
+ toggleAutoCompile: () => void;
32
+ setAutoCompileEnabled: (enabled: boolean) => void;
33
+ updateFromCanvas: (circuit: Circuit, code: string) => void;
34
+ drillInto: (nodeId: string) => void;
35
+ drillUp: () => void;
36
+ navigateTo: (depth: number) => void;
37
+ isDrilledIn: () => boolean;
38
+ getPortValuePrefix: () => string;
39
+ }
40
+ interface CircuitPreviewState {
41
+ compiledCircuits: Circuit[];
42
+ selectedCircuitIndex: number;
43
+ autoCompileEnabled: boolean;
44
+ version: string;
45
+ lastSyncedVersion: string;
46
+ drillDownStack: DrillDownFrame[];
47
+ }
48
+ export interface CircuitPreviewStore extends CircuitPreviewState, CircuitPreviewActions {
49
+ }
50
+ export declare const useCircuitPreviewStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CircuitPreviewStore>, "setState"> & {
51
+ setState(nextStateOrUpdater: CircuitPreviewStore | Partial<CircuitPreviewStore> | ((state: {
52
+ compiledCircuits: {
53
+ version: 1;
54
+ name: string;
55
+ inputs: {
56
+ name: string;
57
+ portType: {
58
+ kind: "bit";
59
+ } | {
60
+ kind: "bus";
61
+ width: number;
62
+ };
63
+ description?: string | undefined;
64
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
65
+ widthParam?: string | undefined;
66
+ widthMultiplier?: number | undefined;
67
+ }[];
68
+ outputs: {
69
+ name: string;
70
+ portType: {
71
+ kind: "bit";
72
+ } | {
73
+ kind: "bus";
74
+ width: number;
75
+ };
76
+ description?: string | undefined;
77
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
78
+ widthParam?: string | undefined;
79
+ widthMultiplier?: number | undefined;
80
+ }[];
81
+ clocks: {
82
+ name: string;
83
+ description?: string | undefined;
84
+ }[];
85
+ state: {
86
+ id: string;
87
+ name: string;
88
+ stateType: {
89
+ kind: "bit";
90
+ } | {
91
+ kind: "bus";
92
+ width: number;
93
+ } | {
94
+ kind: "memory";
95
+ addressWidth: number;
96
+ dataWidth: number;
97
+ };
98
+ initialValue: string | number | boolean | {
99
+ data: Map<number, number>;
100
+ addressWidth: number;
101
+ dataWidth: number;
102
+ };
103
+ currentValue?: string | number | boolean | {
104
+ data: Map<number, number>;
105
+ addressWidth: number;
106
+ dataWidth: number;
107
+ } | undefined;
108
+ clockRef?: string | undefined;
109
+ edge?: "rising" | "falling" | undefined;
110
+ }[];
111
+ nodes: {
112
+ id: string;
113
+ label?: string | undefined;
114
+ componentRef: string;
115
+ arguments: {
116
+ [x: string]: string | number | boolean | number[] | {
117
+ [x: number]: number;
118
+ };
119
+ };
120
+ inputs: {
121
+ id: string;
122
+ name: string;
123
+ portType: {
124
+ kind: "bit";
125
+ } | {
126
+ kind: "bus";
127
+ width: number;
128
+ };
129
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
130
+ }[];
131
+ outputs: {
132
+ id: string;
133
+ name: string;
134
+ portType: {
135
+ kind: "bit";
136
+ } | {
137
+ kind: "bus";
138
+ width: number;
139
+ };
140
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
141
+ }[];
142
+ clocks: {
143
+ id: string;
144
+ name: string;
145
+ state?: {
146
+ value: boolean;
147
+ edge: "rising" | "falling" | "none";
148
+ } | undefined;
149
+ }[];
150
+ }[];
151
+ connections: {
152
+ id: string;
153
+ source: {
154
+ nodeId: string;
155
+ portName: string;
156
+ };
157
+ target: {
158
+ nodeId: string;
159
+ portName: string;
160
+ };
161
+ portType: {
162
+ kind: "bit";
163
+ } | {
164
+ kind: "bus";
165
+ width: number;
166
+ };
167
+ }[];
168
+ implementation: {
169
+ kind: "primitive";
170
+ } | {
171
+ kind: "composite";
172
+ } | {
173
+ kind: "intrinsic";
174
+ intrinsicType: string;
175
+ };
176
+ metadata?: {
177
+ source?: {
178
+ filename?: string | undefined;
179
+ lineNumber?: number | undefined;
180
+ } | undefined;
181
+ description?: string | undefined;
182
+ author?: string | undefined;
183
+ version?: string | undefined;
184
+ testCases?: {
185
+ name: string;
186
+ inputs: {
187
+ [x: string]: number | boolean;
188
+ };
189
+ expectedOutputs: {
190
+ [x: string]: number | boolean;
191
+ };
192
+ }[] | undefined;
193
+ tags?: string[] | undefined;
194
+ timing?: import("../types/circuit").ComponentKind | undefined;
195
+ outputDependency?: "state-only" | "state+inputs" | "input-dependent" | undefined;
196
+ } | undefined;
197
+ }[];
198
+ selectedCircuitIndex: number;
199
+ autoCompileEnabled: boolean;
200
+ version: string;
201
+ lastSyncedVersion: string;
202
+ drillDownStack: {
203
+ nodeId: string;
204
+ nodeLabel: string;
205
+ componentName: string;
206
+ circuit: {
207
+ version: 1;
208
+ name: string;
209
+ inputs: {
210
+ name: string;
211
+ portType: {
212
+ kind: "bit";
213
+ } | {
214
+ kind: "bus";
215
+ width: number;
216
+ };
217
+ description?: string | undefined;
218
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
219
+ widthParam?: string | undefined;
220
+ widthMultiplier?: number | undefined;
221
+ }[];
222
+ outputs: {
223
+ name: string;
224
+ portType: {
225
+ kind: "bit";
226
+ } | {
227
+ kind: "bus";
228
+ width: number;
229
+ };
230
+ description?: string | undefined;
231
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
232
+ widthParam?: string | undefined;
233
+ widthMultiplier?: number | undefined;
234
+ }[];
235
+ clocks: {
236
+ name: string;
237
+ description?: string | undefined;
238
+ }[];
239
+ state: {
240
+ id: string;
241
+ name: string;
242
+ stateType: {
243
+ kind: "bit";
244
+ } | {
245
+ kind: "bus";
246
+ width: number;
247
+ } | {
248
+ kind: "memory";
249
+ addressWidth: number;
250
+ dataWidth: number;
251
+ };
252
+ initialValue: string | number | boolean | {
253
+ data: Map<number, number>;
254
+ addressWidth: number;
255
+ dataWidth: number;
256
+ };
257
+ currentValue?: string | number | boolean | {
258
+ data: Map<number, number>;
259
+ addressWidth: number;
260
+ dataWidth: number;
261
+ } | undefined;
262
+ clockRef?: string | undefined;
263
+ edge?: "rising" | "falling" | undefined;
264
+ }[];
265
+ nodes: {
266
+ id: string;
267
+ label?: string | undefined;
268
+ componentRef: string;
269
+ arguments: {
270
+ [x: string]: string | number | boolean | number[] | {
271
+ [x: number]: number;
272
+ };
273
+ };
274
+ inputs: {
275
+ id: string;
276
+ name: string;
277
+ portType: {
278
+ kind: "bit";
279
+ } | {
280
+ kind: "bus";
281
+ width: number;
282
+ };
283
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
284
+ }[];
285
+ outputs: {
286
+ id: string;
287
+ name: string;
288
+ portType: {
289
+ kind: "bit";
290
+ } | {
291
+ kind: "bus";
292
+ width: number;
293
+ };
294
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
295
+ }[];
296
+ clocks: {
297
+ id: string;
298
+ name: string;
299
+ state?: {
300
+ value: boolean;
301
+ edge: "rising" | "falling" | "none";
302
+ } | undefined;
303
+ }[];
304
+ }[];
305
+ connections: {
306
+ id: string;
307
+ source: {
308
+ nodeId: string;
309
+ portName: string;
310
+ };
311
+ target: {
312
+ nodeId: string;
313
+ portName: string;
314
+ };
315
+ portType: {
316
+ kind: "bit";
317
+ } | {
318
+ kind: "bus";
319
+ width: number;
320
+ };
321
+ }[];
322
+ implementation: {
323
+ kind: "primitive";
324
+ } | {
325
+ kind: "composite";
326
+ } | {
327
+ kind: "intrinsic";
328
+ intrinsicType: string;
329
+ };
330
+ metadata?: {
331
+ source?: {
332
+ filename?: string | undefined;
333
+ lineNumber?: number | undefined;
334
+ } | undefined;
335
+ description?: string | undefined;
336
+ author?: string | undefined;
337
+ version?: string | undefined;
338
+ testCases?: {
339
+ name: string;
340
+ inputs: {
341
+ [x: string]: number | boolean;
342
+ };
343
+ expectedOutputs: {
344
+ [x: string]: number | boolean;
345
+ };
346
+ }[] | undefined;
347
+ tags?: string[] | undefined;
348
+ timing?: import("../types/circuit").ComponentKind | undefined;
349
+ outputDependency?: "state-only" | "state+inputs" | "input-dependent" | undefined;
350
+ } | undefined;
351
+ };
352
+ }[];
353
+ setCompiledCircuits: (circuits: Circuit[], code: string) => void;
354
+ selectCircuit: (index: number) => void;
355
+ applyToCanvas: () => void;
356
+ updateVersion: (code: string) => void;
357
+ hasConflict: () => boolean;
358
+ resolveConflict: (keepCode: boolean) => void;
359
+ toggleAutoCompile: () => void;
360
+ setAutoCompileEnabled: (enabled: boolean) => void;
361
+ updateFromCanvas: (circuit: Circuit, code: string) => void;
362
+ drillInto: (nodeId: string) => void;
363
+ drillUp: () => void;
364
+ navigateTo: (depth: number) => void;
365
+ isDrilledIn: () => boolean;
366
+ getPortValuePrefix: () => string;
367
+ }) => void), shouldReplace?: false): void;
368
+ setState(nextStateOrUpdater: CircuitPreviewStore | ((state: {
369
+ compiledCircuits: {
370
+ version: 1;
371
+ name: string;
372
+ inputs: {
373
+ name: string;
374
+ portType: {
375
+ kind: "bit";
376
+ } | {
377
+ kind: "bus";
378
+ width: number;
379
+ };
380
+ description?: string | undefined;
381
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
382
+ widthParam?: string | undefined;
383
+ widthMultiplier?: number | undefined;
384
+ }[];
385
+ outputs: {
386
+ name: string;
387
+ portType: {
388
+ kind: "bit";
389
+ } | {
390
+ kind: "bus";
391
+ width: number;
392
+ };
393
+ description?: string | undefined;
394
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
395
+ widthParam?: string | undefined;
396
+ widthMultiplier?: number | undefined;
397
+ }[];
398
+ clocks: {
399
+ name: string;
400
+ description?: string | undefined;
401
+ }[];
402
+ state: {
403
+ id: string;
404
+ name: string;
405
+ stateType: {
406
+ kind: "bit";
407
+ } | {
408
+ kind: "bus";
409
+ width: number;
410
+ } | {
411
+ kind: "memory";
412
+ addressWidth: number;
413
+ dataWidth: number;
414
+ };
415
+ initialValue: string | number | boolean | {
416
+ data: Map<number, number>;
417
+ addressWidth: number;
418
+ dataWidth: number;
419
+ };
420
+ currentValue?: string | number | boolean | {
421
+ data: Map<number, number>;
422
+ addressWidth: number;
423
+ dataWidth: number;
424
+ } | undefined;
425
+ clockRef?: string | undefined;
426
+ edge?: "rising" | "falling" | undefined;
427
+ }[];
428
+ nodes: {
429
+ id: string;
430
+ label?: string | undefined;
431
+ componentRef: string;
432
+ arguments: {
433
+ [x: string]: string | number | boolean | number[] | {
434
+ [x: number]: number;
435
+ };
436
+ };
437
+ inputs: {
438
+ id: string;
439
+ name: string;
440
+ portType: {
441
+ kind: "bit";
442
+ } | {
443
+ kind: "bus";
444
+ width: number;
445
+ };
446
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
447
+ }[];
448
+ outputs: {
449
+ id: string;
450
+ name: string;
451
+ portType: {
452
+ kind: "bit";
453
+ } | {
454
+ kind: "bus";
455
+ width: number;
456
+ };
457
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
458
+ }[];
459
+ clocks: {
460
+ id: string;
461
+ name: string;
462
+ state?: {
463
+ value: boolean;
464
+ edge: "rising" | "falling" | "none";
465
+ } | undefined;
466
+ }[];
467
+ }[];
468
+ connections: {
469
+ id: string;
470
+ source: {
471
+ nodeId: string;
472
+ portName: string;
473
+ };
474
+ target: {
475
+ nodeId: string;
476
+ portName: string;
477
+ };
478
+ portType: {
479
+ kind: "bit";
480
+ } | {
481
+ kind: "bus";
482
+ width: number;
483
+ };
484
+ }[];
485
+ implementation: {
486
+ kind: "primitive";
487
+ } | {
488
+ kind: "composite";
489
+ } | {
490
+ kind: "intrinsic";
491
+ intrinsicType: string;
492
+ };
493
+ metadata?: {
494
+ source?: {
495
+ filename?: string | undefined;
496
+ lineNumber?: number | undefined;
497
+ } | undefined;
498
+ description?: string | undefined;
499
+ author?: string | undefined;
500
+ version?: string | undefined;
501
+ testCases?: {
502
+ name: string;
503
+ inputs: {
504
+ [x: string]: number | boolean;
505
+ };
506
+ expectedOutputs: {
507
+ [x: string]: number | boolean;
508
+ };
509
+ }[] | undefined;
510
+ tags?: string[] | undefined;
511
+ timing?: import("../types/circuit").ComponentKind | undefined;
512
+ outputDependency?: "state-only" | "state+inputs" | "input-dependent" | undefined;
513
+ } | undefined;
514
+ }[];
515
+ selectedCircuitIndex: number;
516
+ autoCompileEnabled: boolean;
517
+ version: string;
518
+ lastSyncedVersion: string;
519
+ drillDownStack: {
520
+ nodeId: string;
521
+ nodeLabel: string;
522
+ componentName: string;
523
+ circuit: {
524
+ version: 1;
525
+ name: string;
526
+ inputs: {
527
+ name: string;
528
+ portType: {
529
+ kind: "bit";
530
+ } | {
531
+ kind: "bus";
532
+ width: number;
533
+ };
534
+ description?: string | undefined;
535
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
536
+ widthParam?: string | undefined;
537
+ widthMultiplier?: number | undefined;
538
+ }[];
539
+ outputs: {
540
+ name: string;
541
+ portType: {
542
+ kind: "bit";
543
+ } | {
544
+ kind: "bus";
545
+ width: number;
546
+ };
547
+ description?: string | undefined;
548
+ defaultValue?: (import("../types").BitValue | import("../types").BusValue) | undefined;
549
+ widthParam?: string | undefined;
550
+ widthMultiplier?: number | undefined;
551
+ }[];
552
+ clocks: {
553
+ name: string;
554
+ description?: string | undefined;
555
+ }[];
556
+ state: {
557
+ id: string;
558
+ name: string;
559
+ stateType: {
560
+ kind: "bit";
561
+ } | {
562
+ kind: "bus";
563
+ width: number;
564
+ } | {
565
+ kind: "memory";
566
+ addressWidth: number;
567
+ dataWidth: number;
568
+ };
569
+ initialValue: string | number | boolean | {
570
+ data: Map<number, number>;
571
+ addressWidth: number;
572
+ dataWidth: number;
573
+ };
574
+ currentValue?: string | number | boolean | {
575
+ data: Map<number, number>;
576
+ addressWidth: number;
577
+ dataWidth: number;
578
+ } | undefined;
579
+ clockRef?: string | undefined;
580
+ edge?: "rising" | "falling" | undefined;
581
+ }[];
582
+ nodes: {
583
+ id: string;
584
+ label?: string | undefined;
585
+ componentRef: string;
586
+ arguments: {
587
+ [x: string]: string | number | boolean | number[] | {
588
+ [x: number]: number;
589
+ };
590
+ };
591
+ inputs: {
592
+ id: string;
593
+ name: string;
594
+ portType: {
595
+ kind: "bit";
596
+ } | {
597
+ kind: "bus";
598
+ width: number;
599
+ };
600
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
601
+ }[];
602
+ outputs: {
603
+ id: string;
604
+ name: string;
605
+ portType: {
606
+ kind: "bit";
607
+ } | {
608
+ kind: "bus";
609
+ width: number;
610
+ };
611
+ value?: (import("../types").BitValue | import("../types").BusValue) | undefined;
612
+ }[];
613
+ clocks: {
614
+ id: string;
615
+ name: string;
616
+ state?: {
617
+ value: boolean;
618
+ edge: "rising" | "falling" | "none";
619
+ } | undefined;
620
+ }[];
621
+ }[];
622
+ connections: {
623
+ id: string;
624
+ source: {
625
+ nodeId: string;
626
+ portName: string;
627
+ };
628
+ target: {
629
+ nodeId: string;
630
+ portName: string;
631
+ };
632
+ portType: {
633
+ kind: "bit";
634
+ } | {
635
+ kind: "bus";
636
+ width: number;
637
+ };
638
+ }[];
639
+ implementation: {
640
+ kind: "primitive";
641
+ } | {
642
+ kind: "composite";
643
+ } | {
644
+ kind: "intrinsic";
645
+ intrinsicType: string;
646
+ };
647
+ metadata?: {
648
+ source?: {
649
+ filename?: string | undefined;
650
+ lineNumber?: number | undefined;
651
+ } | undefined;
652
+ description?: string | undefined;
653
+ author?: string | undefined;
654
+ version?: string | undefined;
655
+ testCases?: {
656
+ name: string;
657
+ inputs: {
658
+ [x: string]: number | boolean;
659
+ };
660
+ expectedOutputs: {
661
+ [x: string]: number | boolean;
662
+ };
663
+ }[] | undefined;
664
+ tags?: string[] | undefined;
665
+ timing?: import("../types/circuit").ComponentKind | undefined;
666
+ outputDependency?: "state-only" | "state+inputs" | "input-dependent" | undefined;
667
+ } | undefined;
668
+ };
669
+ }[];
670
+ setCompiledCircuits: (circuits: Circuit[], code: string) => void;
671
+ selectCircuit: (index: number) => void;
672
+ applyToCanvas: () => void;
673
+ updateVersion: (code: string) => void;
674
+ hasConflict: () => boolean;
675
+ resolveConflict: (keepCode: boolean) => void;
676
+ toggleAutoCompile: () => void;
677
+ setAutoCompileEnabled: (enabled: boolean) => void;
678
+ updateFromCanvas: (circuit: Circuit, code: string) => void;
679
+ drillInto: (nodeId: string) => void;
680
+ drillUp: () => void;
681
+ navigateTo: (depth: number) => void;
682
+ isDrilledIn: () => boolean;
683
+ getPortValuePrefix: () => string;
684
+ }) => void), shouldReplace: true): void;
685
+ }>;
686
+ export {};
687
+ //# sourceMappingURL=circuit-preview-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuit-preview-store.d.ts","sourceRoot":"","sources":["../../../src/editor/stores/circuit-preview-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAsBhD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,qBAAqB;IAE7B,mBAAmB,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,EAAE,MAAM,IAAI,CAAC;IAG1B,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,MAAM,OAAO,CAAC;IAC3B,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAG7C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAGlD,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAG3D,SAAS,EAAE,CAAC,MAAM,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