### Changelog @mopinion/deploy

#### 2.7.0
- Implement user interaction trail tracking (clicks, scroll depth, pageviews and Mopinion form events)
- Expose `trackEvent` and `getTrail` on the public API
- Add trail enable/disable config support via deployment response
- Pass trail data to condition handlers

#### 2.6.5
- Use `schedule` function to apply event listeners instead of `setTimeout`, fixes an issue where event listeners were not being applied in certain cases

#### 2.6.4
- Fix an issue where regex strings were not always parsed correctly in `parseRegex`
- Pass assistant token to validateAssistant function and only set cookie if the token is valid
- Use CSSStyleSheet to apply styles to Assistant

#### 2.6.3
- Fix an issue where regex strings were not always parsed correctly in `strContains`
-  check if to compare value passed in from the is actually a number in if so convert to number before comparing `rules/utils/testCondition`
- Wait for next tick before adding event listener for form events, fixes an issue where the event listener was sometimes not applied

#### 2.6.1
- Fix an issue where event listeners selector formatting issues exceptions where not caught in `createRule`
- Make sure that url strings are parsed correctly in `utils/parseUrlString`

#### 2.6.0
- Implement new 'time after valid' condition
- Include 'event_listeners' condition in the condition session
- Handle form_event listeners properly when service is not loaded yet

#### 2.5.2
- Fix an issue where `localStorage` was not being updated correctly

#### 2.5.1
- Align behavior of referrer condition with other conditions 
- Manually get location.search from url
- Fix an issue in the DA where failed conditions were not being shown correctly

#### 2.5.0
- Implements new condition for form interaction
- Implement new condition for page interaction
- Fixes issue with time on page check
- Implement new conditions in DA
- Handle array values inside testCondition

#### 2.4.1
- Fix an issue with the time on page instantly returning valid in certain cases
- Use proxy domains from mopinion config in Deployment Assistant

#### 2.4.0
- Re-implements perf improvements which were implemented previously but got rolled back
- Have location checks follow the same structure as other or/and condition
- Implement 'matches exactly' check for location conditions
- Implement 'form events' condition, and/or conditions for shown, closed and feedback_sent events from other/current form (saved in session)
- Implement 'event listener' condition, and/or conditions for click, input and hover events (not saved in session)

#### 2.3.0
- Implement Allow initialisation of different deployment versions
- Implement draft deployment initialisation
- Implement version switch in Assistant

#### 2.2.4
- Refresh refresh property on handleTrigger


#### 2.2.3
- Pass refresh property to service

#### 2.2.2
- Re-mount entire deployment when load is called with refresh property

#### 2.2.1
- Handle removed rules that were previously initialised when updating from server state

#### 2.2.0
- Implement refresh property to force cache bypass
- Catch errors in setConditionState

#### 2.1.2
- Fix an issue with setting the MOP_assistant cookie on multile tlds (co.uk etc)
- Add chip indicator for (in)active state deployment

#### 2.1.1
- Fix an issue with date/time comparisons
- Improve cache handling when in Deployment Assistant

#### 2.1.0
- Add recursive search to `getJsFromString`, making it possible to search a value in an object, using multiple wildcards ([*]/[*LAST]) to reach values deeper in the object
- Import `getCookie` in `Condition` component, fixes an issue where the function couldn't be found in the Deployment Assistant
- Improve "force show" flow for embedded forms

#### 2.0.0
- Implement Deployment assistant UI for easily testing deployment settings
- Add preact dependency, note that this dependency is only used and loaded in via dynamic import if the Deployment Assistant is activated
- Implement request response caching in sessionStorage
- Re-implement timer conditions as separate conditions to be validated
- Fix earlier and later date comparisons in rules

#### 1.0.3
- Fixes an issue with percentage setting + 0 day sessions
- Include to and from date when comparing between operator for date/time conditions
- 
#### 1.0.2
- Various perf improvements
#### 1.0.1
- Include version in config
- Pass `formOpen` prop when intialising surveys with exit and proactive trigger

#### 1.0.0
- Initial release