Releases: NickDJM/accessible-menu
Releases · NickDJM/accessible-menu
3.0.1
3.0.1 (2021-10-18)
Bug Fixes
- accessibilty: replace click/touch events with pointer events (e88ae5f)
Documentation
- badges: add CodeQL badge (fdcbfb7)
- correct typo (7adac86)
- examples: use proper links to api in basic examples (9c1f075)
- github: add documentation issue template (f43cf42)
- github: add security policy (30915b5)
- github: update issue and pr templates (8f7b322)
- menu: correct documentation on handle click (c0c9894)
- release: update documentation to be accurate as to what happens on release (a95f86c)
- update contributing guidelines to reflect the current state of the project (8fde6b8)
- validate: add deprecation notice to isEventSupported() (04c7cbd)
Build System
3.0.0
3.0.0 (2021-08-03)
⚠ BREAKING CHANGES
- fields: renamed all class fields to start with _ to mark them as protected
- menus: changed the name of all menu event handler methods and toggle expand/collapse
methods to begin with _ - menu: merging and changing the names of the DOM element generation methods will require
any code referencing the old methods to be updated - disclosuremenu: Users expecting the default handling of the option keys will now need to set
optionalKeySupport to true - validation: merge isHTMLELement, isEvent, isKeyboardEvent, isMenu, and isMenuToggle into
isValidInstance and merge isBoolean, isString, and isNumber into isValidType - focus: custom menus extending BaseMenu and relying on the menubar's focus functionality
will need to extend Menubar. - dist: Removing all polyfills and reference to IE in the compiler will break all menus
when displayed in IE - menus: if any existing implementation relies on sub-menus and toggles to not inherit the root's properties, this will cause major functionality issues.
- Changing both the file and class names for MenuItem and MenuToggle will break
anything relying on those classes.
Features
- disclosure: add getter/setter for optionalKeySupport (f6ef2d4)
- disclosuremenu: add the ability to toggle optional keyboard support (18c0fa7), closes #104
- dist: add full esm support and kill IE support (8610728)
- hover: change isHoverable to hoverType to handle dynamic hovers (2cf40aa), closes #100
- initialization: add a flag to allow/disallow auto initialization for subclass menus (0fc701f)
- menu: add new method to focus a child of a given index (cea3352)
- menu: add shoudlFocus getter to control moving focus in the DOM (68ca8a6)
- menu: have focus follow hover when hover is set to dynamic (a2e7e1a), closes #100
- subclass: add Treeview subclass (e25c93f), closes #105
- toggle: allow expand and collapse methods to be silent (8282e93)
- implement browser module support (0bab26c)
Bug Fixes
- correct typo in error message during initialization (7190697)
- menubar: only change the root menubar's tabIndex on init (d993c13)
- menu: only change focusState on click of non-root menus (110e241)
- menu: only setTimout on mouseleave if hoverDelay is > 0 (1158090)
- menus: add textContent fallback to character functions (d6224cb)
- treeview: fix up and down arrow navigation when going through multiple menu levels (2caf071)
- treeview: handle escape key if the root menu can collapse (43d09bf)
- treeview: only trigger character event if no modifier is pressed (51b43a8)
- toggle: remove immediate initialization from _baseMenuToggle (d3fae61)
- event: make sure key is not a number before using .match() (d8b0f02)
- menu: add basic error prevention when setting the currentChild (ce1b431)
- menu: add blurSiblings method to menu items to fix click issues (5b1f7f2)
- menu: ensure proper event type is set for menus (a4f7505)
- menu: manually trigger click action on space/enter (559afc8)
- module: resolve circular dependencies (5278b1e), closes #95
- treeview: correct toggle class name (e96ffaa)
- validation: ensure error message only use constructor's name (80ccdcc)
- validation: fail isCSSSelector is null is passed (15c34a3)
- validation: make isEventSupported return false if either checks fail (ecd9f88)
- validation: make isValidClassList fail if array is passed instead of object (c401b70)
Performance Improvements
- validation: add custom validation for DisclosureMenus to handle _optionalSupport field (be4f370)
- toggle: simplify adding and removing of classes (5d21677), closes #113
- menu: clean up handeClick for all menus (6bdfdd0)
- validation: reduce validation functions into instance or type validation (42bf94e)
Documentation
- examples: link to new jsfiddles using 3.x (4df02fe), closes #124
- fix path to treeview (92b0501)
- properly mark fields as protected (7d43b50)
- treeview: correct reference to treeview in toggle (aaa4249)
- use docdash templates for api documentation (9433ddf), closes #123* add upgrade guide from v2 to v3 (c3ae67a), closes #107
- menubar: update docs to reflect tabIndex fix (480406f)
- README: add build status badge (00fabf3)
- use jsdoc to generate api documentation (a524ef8)
- classes: correct error in focus state for closing toggles (93cc9ca)
- add information about dist directory and what is provided (0865987)
- minor corrections to comments (9964af8)
- remove reference to open/close classes for menu toggles (247dff2)
- basics: update basic exmaples to reflect changes ([3a01856](3a018561506df22976e8...
3.0.0-alpha.3
3.0.0-alpha.3 (2021-07-23)
⚠ BREAKING CHANGES
- fields: renamed all class fields to start with _ to mark them as protected
Bug Fixes
- correct typo in error message during initialization (7190697)
Performance Improvements
- validation: add custom validation for DisclosureMenus to handle _optionalSupport field (be4f370)
Code Refactoring
Build System
- rollup: add cleanup plugin to remove comments from bundled code (8f15e77)
3.0.0-alpha.2
3.0.0-alpha.2 (2021-07-21)
Bug Fixes
- menubar: only change the root menubar's tabIndex on init (d993c13)
- menu: only change focusState on click of non-root menus (110e241)
- menu: only setTimout on mouseleave if hoverDelay is > 0 (1158090)
- menus: add textContent fallback to character functions (d6224cb)
- treeview: fix up and down arrow navigation when going through multiple menu levels (2caf071)
- treeview: handle escape key if the root menu can collapse (43d09bf)
- treeview: only trigger character event if no modifier is pressed (51b43a8)
Reverts
- click should still alter the focusState of menus (c56de2f)
Code Refactoring
- focus: set parent/child menu focus when setting menu's own focus (ae3b663)
Build System
- github: add action for running tests (9cc2de3)
- remove unused test directory and dependencies (a5e2e4b)
Documentation
3.0.0-alpha.1
3.0.0-alpha.1 (2021-06-23)
Bug Fixes
- toggle: remove immediate initialization from _baseMenuToggle (d3fae61)
Performance Improvements
3.0.0-alpha.0
3.0.0-alpha.0 (2021-06-18)
⚠ BREAKING CHANGES
- disclosuremenu: Users expecting the default handling of the option keys will now need to set
optionalKeySupport to true - validation: merge isHTMLELement, isEvent, isKeyboardEvent, isMenu, and isMenuToggle into
isValidInstance and merge isBoolean, isString, and isNumber into isValidType - focus: custom menus extending BaseMenu and relying on the menubar's focus functionality
will need to extend Menubar. - dist: Removing all polyfills and reference to IE in the compiler will break all menus
when displayed in IE - menus: if any existing implementation relies on sub-menus and toggles to not inherit the root's properties, this will cause major functionality issues.
- Changing both the file and class names for MenuItem and MenuToggle will break
anything relying on those classes.
Features
- disclosure: add getter/setter for optionalKeySupport (f6ef2d4)
- disclosuremenu: add the ability to toggle optional keyboard support (18c0fa7), closes #104
- dist: add full esm support and kill IE support (8610728)
- hover: change isHoverable to hoverType to handle dynamic hovers (2cf40aa), closes #100
- initialization: add a flag to allow/disallow auto initialization for subclass menus (0fc701f)
- menu: add new method to focus a child of a given index (cea3352)
- menu: add shoudlFocus getter to control moving focus in the DOM (68ca8a6)
- menu: have focus follow hover when hover is set to dynamic (a2e7e1a), closes #100
- subclass: add Treeview subclass (e25c93f), closes #105
- toggle: allow expand and collapse methods to be silent (8282e93)
- implement browser module support (0bab26c)
Bug Fixes
- event: make sure key is not a number before using .match() (d8b0f02)
- menu: add basic error prevention when setting the currentChild (ce1b431)
- menu: add blurSiblings method to menu items to fix click issues (5b1f7f2)
- menu: ensure proper event type is set for menus (a4f7505)
- menu: manually trigger click action on space/enter (559afc8)
- module: resolve circular dependencies (5278b1e), closes #95
- treeview: correct toggle class name (e96ffaa)
- validation: ensure error message only use constructor's name (80ccdcc)
- validation: fail isCSSSelector is null is passed (15c34a3)
- validation: make isEventSupported return false if either checks fail (ecd9f88)
- validation: make isValidClassList fail if array is passed instead of object (c401b70)
Performance Improvements
- menu: clean up handeClick for all menus (6bdfdd0)
- validation: reduce validation functions into instance or type validation (42bf94e)
Build System
- lint: pass ignore file to prettier during lint-staged (1cdfbd8)
- npm: package entire src directory (02bca65)
- use specific rollup file to allow multiple exports on index (82a3f48)
- editor: add specific editor config (fd44608)
- lint: use prettier as a stand-alone formatter (aedffb1)
- npm: add lint-staged for faster commits (1874fb3)
- npm: add new files to packaged files (135d7b2)
- npm: cleanup package and add files (9ec6ca6)
- npm: rename test build command (8bd9706)
- npm: upgrade husky to 6.0 (ab7579a)
- prettier: specifically set the prettier options that are cared about (4f7c5af)
Documentation
- classes: correct error in focus state for closing toggles (93cc9ca)
- add information about dist directory and what is provided (0865987)
- minor corrections to comments (9964af8)
- remove reference to open/close classes for menu toggles (247dff2)
- basics: update basic exmaples to reflect changes (3a01856)
- classes: update all class documentation to reflect changes made (b5f06d4)
- readme: update general information (ef079f1)
Code Refactoring
- focus: move focus methods for menubar into the menubar subclass (38230a8)
- menu: make sure all parameters are valid before initialization (ae694c7)
- menus: use root props for sub-menus and toggles (4aea368), closes #86
- toggle: rearrange actions in open, preview, and close to make more sense (f26e120)
- validation: make classlist validation more useful (f8edd77)
- validation: rework validation to be more descriptive and helpful (7456490)
- validation: use proper name for open/close class validation (6d5073c)
2.3.1
2.3.0
2.3.0 (2021-06-07)
Features
- menu: allow Menubar and DisclosureMenu to be imported individually (b168dd3)
Bug Fixes
- compile: properly run code through babel (e5bac70)
- menu: rewrite click events to resolve unresponiveness issue (12598fc), closes #109
Build System
- overhaul build and development config (be89706)
Documentation
2.2.0
2.2.0 (2021-03-24)
Features
Bug Fixes
- event: check if menu isHoverable before running event code (638778d), closes #84
- event: properly pass event object to keydown and keyup events (fc281bf)
- menubar: wait for menu to render before focussing child (21f50ee), closes #99
- polyfill: add CustomEvent constructor polyfill for IE (d08cb2d), closes #97
Documentation
- mention new expand/collapse events in the toggle documentation (f65ce32)
Build System
- npm: update dev dependencies to latest (accc5ba)