Skip to content

detectUIInteractions

reference
1 min readUpdated

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

ts
function detectUIInteractions(templateCode: string, stateMachines: StateMachine[], componentName: string): UIInteraction[]

Parameters

NameType
templateCodestring
stateMachinesStateMachine[]
componentNamestring

Returns: UIInteraction[]

Was this page helpful?

Download as PDF