Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts
Extract UI interactions from component template code
Analyzes HTML/JSX templates to find interactive elements (buttons, links) and maps them to state machine transitions.
Signature
tsfunction detectUIInteractions(templateCode: string, stateMachines: StateMachine[], componentName: string): UIInteraction[]
Parameters
| Name | Type |
|---|---|
templateCode | string |
stateMachines | StateMachine[] |
componentName | string |
Returns: UIInteraction[]
Was this page helpful?