UNPKG

@mopinion/survey

Version:

Collect customer feedback with the Mopinion survey library

172 lines (113 loc) 5.91 kB
# Changelog @mopinion/survey #### 1.6.4 - Improvements for style handling #### 1.6.3 - Remove title from link element wrapper div - Fix business email validation in conversational forms - Fix screenshot button aria-label text & add alt title to camera icon svg - Improvements for form width sizing and prevent conversational forms on mobile from sliding out of the window #### 1.6.2 - Fixed checkbox color reverting to default when unselected - Fixed checkbox hover color reverting to default blue after deselection - Enhanced keyboard navigation support for autopost functionality in multi-page forms - Fixed autopost behavior with checkbox elements - Improved keyboard navigation for checkboxes when using autopost - Added form element hiding when form is closed to prevent screenreader conflicts - Removed automatic scroll behavior for embedded forms to prevent unexpected scrolling with autofocus - Removed conversational form requirement for screenreader helper - Updated legacy themes to fix close-modal button focus offset - Improved error message accessibility with updated aria-live regions - Implemented Selectable component for Screenshot element in webview forms #### 1.6.1 - Fix issue with links with show_as_button showing as a `<button>` instead of an `<a>` - Fix autofocus for proactive forms by giving the ref a small timeout to set before trying to autofocus - Fix handle temporary values when using keyboard in `Rating` and `DropDown` components - fix a small bug with the `singleKeyPressed` function, where `e.key` was not always defined #### 1.6.0 - Implement WCAG compliance for conversational forms - Various accessibility alignment changes and fixes - Implement the possibility of multiple (or) conditions for starting logic and open comment values - Handle 'is not empty' operator in logic - Fix issue with phone validation blocking submit if an input was touched #### 1.5.0 - In screenshots get all non cross domain styles from document.stylesSheets - In screenshots get all remove all script tags from the cloned document - In screenshots get all remove all < > and characters which decode to < > from attributes #### 1.4.2 - handle refreshing of state in form manager #### 1.4.1 - Implement refresh cache property #### 1.4.0 - Fix for form completion completion percentage being off by 1 page - Also send 'shown' metric events for webview forms - Implement reset form method - Remove selected checkmark from category types #### 1.3.1 - Also anonymize value attributes when making screenshots - Improvements for focus handling #### 1.3.0 - implement `getMetaData` from `window.__mopinionMetaData`, bypass need for website data block - Various accessability enhancents: - Improved aria and role attributes - Align `DropDown` component with native select element - Improve focus trap for modal forms - clean up deprecated `e.keyCode` events - remove tabindex on native interactive HTML elements #### 1.2.1 - disable 'loaded' event for integrations #### 1.2.0 - include all JS events in analytics and metrics - Implement [*LAST] operator and multiple array search wildcards ([*]) in `_get` - get Contentsquare replay link from integrations_handler prop - Implement tabbing/accessibility in screenshot functionality #### 1.1.11 - Fix an issue in conversational forms where in certain cases the ending element would not be shown #### 1.1.10 - Fix issue where `useLastVisibleBlock` could return an empty object - Add type interface for `forceType` prop #### 1.1.9 - Disable autoposting for open input types, fixes an issue with single letters posted as feedback for autoposting fields - Set completed state for conversational forms, fixes an issue where the same feedback item could be updated - Add `question_answered` event for conversational - Add `feedback_sent` event for conversational - Move `feedback_sent` event callback to success callback of the actual POST request #### 1.1.8 - Fix for showing other field based on value instead of label #### 1.1.7 - Send shown event metrics for embedded forms #### 1.1.6 - Post data if page skips occurred while initialising #### 1.1.5 - Only clear nested state values in logic when hiding a block - Fix an issue with extracting the root domain from the hostname #### 1.1.4 - Show correct label for selected state 'other' option in dropdown element - Render customized error message as aria-label and add attributes for WCAG compliancy - Always sort logic in the same order - Refactor and cleanup label captions for Rating component - Add type declarations file for TS compatability - Scroll to top on navigation - Only use custom isFontLoaded check instead of document.fonts.check, fixes an issue where document.fonts.check always returns true in Chrome - don't take other input value into account when validating min/max options checkbox #### 1.1.3 - Fix an issue where translated values where posted for dropdown elements - Handle incompatability with CapacitorJS HTTP plugin due to their monkey patching of xhr request responseText - Prevent dropdown element inheriting extra element placeholders #### 1.1.2 - Fix an issue with 'always' logic on non-`question` elements #### 1.1.1 - Fix an issue with possible undefined value in starting logic applied to thanks page elements - handle possible encoded or unencoded url params for website data #### 1.1.0 - Debounce all requests to prevent duplicates - Implement Honeypot feature for preventing bot feedback #### 1.0.3 - don't inherit `formOpen` prop from previous init #### 1.0.2 - Fix an issue which may cause the hidden event to fire too often - Prevent an issue which could cause duplicate feedback items for conversational forms ### 1.0.1 - Fix an issue with the value with logic for 'other' fields in radio and checkbox blocks not always being executed - Added a 'mopinion_loaded' event ### 1.0.0 - Initial release