velxio/frontend/src/vite-env.d.ts

106 lines
3.0 KiB
TypeScript
Raw Normal View History

/// <reference types="vite/client" />
// Web Components JSX declarations
declare namespace JSX {
interface IntrinsicElements {
'wokwi-led': any;
'wokwi-resistor': any;
'wokwi-pushbutton': any;
'wokwi-arduino-uno': any;
'wokwi-arduino-mega': any;
'wokwi-arduino-nano': any;
'wokwi-pi-pico': any;
'wokwi-esp32-devkit-v1': any;
'wokwi-membrane-keypad': any;
'wokwi-lcd1602': any;
'wokwi-neopixel': any;
'wokwi-servo': any;
'wokwi-potentiometer': any;
'wokwi-slide-switch': any;
'wokwi-dht22': any;
'wokwi-ds1307': any;
'wokwi-hc-sr04': any;
'wokwi-ir-receiver': any;
'wokwi-ir-remote': any;
'wokwi-pir-motion-sensor': any;
'wokwi-ssd1306': any;
'wokwi-hx711': any;
'wokwi-mpu6050': any;
'wokwi-microsd-card': any;
'wokwi-photoresistor-sensor': any;
'velxio-74hc595': any;
'wokwi-stepper-motor': any;
'wokwi-biaxial-stepper': any;
'wokwi-tilt-switch': any;
'wokwi-ntc-temperature-sensor': any;
'wokwi-gas-sensor': any;
'wokwi-flame-sensor': any;
'wokwi-heart-beat-sensor': any;
'wokwi-big-sound-sensor': any;
'wokwi-small-sound-sensor': any;
'wokwi-led-ring': any;
'wokwi-neopixel-matrix': any;
'wokwi-ky-040': any;
'wokwi-rotary-dialer': any;
'wokwi-ks2e-m-dc5': any;
'velxio-logic-and': any;
'velxio-logic-nand': any;
'velxio-logic-or': any;
'velxio-logic-nor': any;
'velxio-logic-xor': any;
'velxio-logic-xnor': any;
'velxio-logic-not': any;
feat: expand SPICE component catalog (fases 9 + 10) Adds 44 SPICE mappers, 58 custom metadata entries, and 12 visual Web Components covering logic gates, transistors, op-amps, regulators, sources, electromechanical parts and integrated-circuit packaging. Fase 9 — component catalog expansion ------------------------------------ - 7 logic gates (AND/OR/NAND/NOR/XOR/XNOR + NOT) as SPICE B-sources - 8 multi-input gates (AND/OR/NAND/NOR with 3 and 4 inputs) - 9 transistors: 5 BJTs (incl. PNP 2N3906/BC557) + 4 MOSFETs (incl. P-channel IRF9540/FQP27P06). NMOS refactored from Level=3 W=0.1 (hangs ngspice) to Level=1 with sane W/L - 5 op-amps: LM358, LM741, TL072, LM324 with per-chip saturation rails + opamp-ideal - 4 linear regulators (7805, 7812, 7905, LM317) with dropout - 3 batteries (9V, AA, coin-cell) with realistic ESR - Signal generator (sine / square / DC) - 2 Schottky diodes (1N5817, 1N5819) + photodiode (lux-driven current source) Fase 10 — electromechanical + ICs --------------------------------- - Relay (SPDT): coil + L + S-switch with native hysteresis + flyback diode, inverted-control trick for the NC contact - Optocouplers 4N25 and PC817 (LED + CCCS with CTR=0.5 / 1.0) - 7 74HC ICs as DIP-14 packages emitting 4 or 6 B-sources per component (first mapper pattern emitting multiple device cards) - 3 flip-flops (D, T, JK) — digital-sim only (edge detection is not representable in ngspice .op) - L293D dual H-bridge motor driver Infrastructure -------------- - scripts/component-overrides.json gains a _customComponents[] array that lets new Velxio-only parts survive metadata regeneration (previously applyOverrides() could only patch wokwi-elements components that had already been scanned) - scripts/generate-component-metadata.ts injects custom entries before the patch loop - New ComponentCategory values: 'logic', 'analog', 'electromech' - frontend/src/components/DynamicComponent.tsx PASSIVE tracing extended from just ['resistor','resistor-us'] to 9 two-terminal passives with per-part pin name maps - New CI workflow test-circuit.yml runs the sandbox on push/PR - frontend-tests.yml regenerates metadata and fails if committed JSON is stale - Documented 2 new ngspice gotchas in circuit-emulation-gotchas.md: unicode in netlist titles silently hangs the parser, and MOSFET Level=3 + W=0.1m causes .op to hang - 164/164 sandbox tests passing in ~9 s (was 88 pre-fase-9) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 06:44:18 +07:00
'wokwi-bjt-2n2222': any;
'wokwi-bjt-bc547': any;
'wokwi-bjt-2n3055': any;
'wokwi-bjt-2n3906': any;
'wokwi-bjt-bc557': any;
'wokwi-mosfet-2n7000': any;
'wokwi-mosfet-irf540': any;
'wokwi-mosfet-irf9540': any;
'wokwi-mosfet-fqp27p06': any;
'wokwi-opamp-ideal': any;
'wokwi-opamp-lm358': any;
'wokwi-opamp-lm741': any;
'wokwi-opamp-tl072': any;
'wokwi-opamp-lm324': any;
'wokwi-reg-7805': any;
'wokwi-reg-7812': any;
'wokwi-reg-7905': any;
'wokwi-reg-lm317': any;
'wokwi-battery-9v': any;
'wokwi-battery-aa': any;
'wokwi-battery-coin-cell': any;
'wokwi-signal-generator': any;
'velxio-logic-and-3': any;
'velxio-logic-or-3': any;
'velxio-logic-nand-3': any;
'velxio-logic-nor-3': any;
'velxio-logic-and-4': any;
'velxio-logic-or-4': any;
'velxio-logic-nand-4': any;
'velxio-logic-nor-4': any;
feat: expand SPICE component catalog (fases 9 + 10) Adds 44 SPICE mappers, 58 custom metadata entries, and 12 visual Web Components covering logic gates, transistors, op-amps, regulators, sources, electromechanical parts and integrated-circuit packaging. Fase 9 — component catalog expansion ------------------------------------ - 7 logic gates (AND/OR/NAND/NOR/XOR/XNOR + NOT) as SPICE B-sources - 8 multi-input gates (AND/OR/NAND/NOR with 3 and 4 inputs) - 9 transistors: 5 BJTs (incl. PNP 2N3906/BC557) + 4 MOSFETs (incl. P-channel IRF9540/FQP27P06). NMOS refactored from Level=3 W=0.1 (hangs ngspice) to Level=1 with sane W/L - 5 op-amps: LM358, LM741, TL072, LM324 with per-chip saturation rails + opamp-ideal - 4 linear regulators (7805, 7812, 7905, LM317) with dropout - 3 batteries (9V, AA, coin-cell) with realistic ESR - Signal generator (sine / square / DC) - 2 Schottky diodes (1N5817, 1N5819) + photodiode (lux-driven current source) Fase 10 — electromechanical + ICs --------------------------------- - Relay (SPDT): coil + L + S-switch with native hysteresis + flyback diode, inverted-control trick for the NC contact - Optocouplers 4N25 and PC817 (LED + CCCS with CTR=0.5 / 1.0) - 7 74HC ICs as DIP-14 packages emitting 4 or 6 B-sources per component (first mapper pattern emitting multiple device cards) - 3 flip-flops (D, T, JK) — digital-sim only (edge detection is not representable in ngspice .op) - L293D dual H-bridge motor driver Infrastructure -------------- - scripts/component-overrides.json gains a _customComponents[] array that lets new Velxio-only parts survive metadata regeneration (previously applyOverrides() could only patch wokwi-elements components that had already been scanned) - scripts/generate-component-metadata.ts injects custom entries before the patch loop - New ComponentCategory values: 'logic', 'analog', 'electromech' - frontend/src/components/DynamicComponent.tsx PASSIVE tracing extended from just ['resistor','resistor-us'] to 9 two-terminal passives with per-part pin name maps - New CI workflow test-circuit.yml runs the sandbox on push/PR - frontend-tests.yml regenerates metadata and fails if committed JSON is stale - Documented 2 new ngspice gotchas in circuit-emulation-gotchas.md: unicode in netlist titles silently hangs the parser, and MOSFET Level=3 + W=0.1m causes .op to hang - 164/164 sandbox tests passing in ~9 s (was 88 pre-fase-9) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 06:44:18 +07:00
'wokwi-diode': any;
'wokwi-diode-1n4148': any;
'wokwi-diode-1n4007': any;
'wokwi-zener-1n4733': any;
'wokwi-diode-1n5817': any;
'wokwi-diode-1n5819': any;
'wokwi-photodiode': any;
'velxio-relay': any;
'velxio-opto-4n25': any;
'velxio-opto-pc817': any;
feat: expand SPICE component catalog (fases 9 + 10) Adds 44 SPICE mappers, 58 custom metadata entries, and 12 visual Web Components covering logic gates, transistors, op-amps, regulators, sources, electromechanical parts and integrated-circuit packaging. Fase 9 — component catalog expansion ------------------------------------ - 7 logic gates (AND/OR/NAND/NOR/XOR/XNOR + NOT) as SPICE B-sources - 8 multi-input gates (AND/OR/NAND/NOR with 3 and 4 inputs) - 9 transistors: 5 BJTs (incl. PNP 2N3906/BC557) + 4 MOSFETs (incl. P-channel IRF9540/FQP27P06). NMOS refactored from Level=3 W=0.1 (hangs ngspice) to Level=1 with sane W/L - 5 op-amps: LM358, LM741, TL072, LM324 with per-chip saturation rails + opamp-ideal - 4 linear regulators (7805, 7812, 7905, LM317) with dropout - 3 batteries (9V, AA, coin-cell) with realistic ESR - Signal generator (sine / square / DC) - 2 Schottky diodes (1N5817, 1N5819) + photodiode (lux-driven current source) Fase 10 — electromechanical + ICs --------------------------------- - Relay (SPDT): coil + L + S-switch with native hysteresis + flyback diode, inverted-control trick for the NC contact - Optocouplers 4N25 and PC817 (LED + CCCS with CTR=0.5 / 1.0) - 7 74HC ICs as DIP-14 packages emitting 4 or 6 B-sources per component (first mapper pattern emitting multiple device cards) - 3 flip-flops (D, T, JK) — digital-sim only (edge detection is not representable in ngspice .op) - L293D dual H-bridge motor driver Infrastructure -------------- - scripts/component-overrides.json gains a _customComponents[] array that lets new Velxio-only parts survive metadata regeneration (previously applyOverrides() could only patch wokwi-elements components that had already been scanned) - scripts/generate-component-metadata.ts injects custom entries before the patch loop - New ComponentCategory values: 'logic', 'analog', 'electromech' - frontend/src/components/DynamicComponent.tsx PASSIVE tracing extended from just ['resistor','resistor-us'] to 9 two-terminal passives with per-part pin name maps - New CI workflow test-circuit.yml runs the sandbox on push/PR - frontend-tests.yml regenerates metadata and fails if committed JSON is stale - Documented 2 new ngspice gotchas in circuit-emulation-gotchas.md: unicode in netlist titles silently hangs the parser, and MOSFET Level=3 + W=0.1m causes .op to hang - 164/164 sandbox tests passing in ~9 s (was 88 pre-fase-9) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 06:44:18 +07:00
'wokwi-ic-74hc00': any;
'wokwi-ic-74hc02': any;
'wokwi-ic-74hc04': any;
'wokwi-ic-74hc08': any;
'wokwi-ic-74hc14': any;
'wokwi-ic-74hc32': any;
'wokwi-ic-74hc86': any;
'velxio-flip-flop-d': any;
'velxio-flip-flop-t': any;
'velxio-flip-flop-jk': any;
'velxio-motor-driver-l293d': any;
}
}