Kind: Function
Source: atloria-monorepo/packages/tour-widget/src/targeting.ts
Is this experience eligible to AUTO-show right now? Considers only client-side state — URL/segment matching was already done server-side, so a present experience is on-page by definition.
Rules:
- trigger.mode must be 'auto' (beacon/launcher are user-initiated).
- a completed or dismissed experience never re-auto-shows.
- an answered NPS never re-shows.
- firstVisitOnly ⇒ only for a brand-new visitor's first session.
- maxShows caps the number of auto-appearances.
Signature
tsfunction isEligibleForAuto(exp: WidgetExperience, state: WidgetState): boolean
Parameters
| Name | Type |
|---|---|
exp | WidgetExperience |
state | WidgetState |
Returns: boolean
Was this page helpful?