- Update: Using @peter.naydenov/notice v.2.3.1: Fix: Callback stop will stop the wildcard callbacks as well;
- Using @peter.naydenov/notice v.2.3.0: If action function returns a string 'stop' and execution of followed action functions will be stopped. Option to build a chain of conditional action functions before the main action function;
- Fix: Library works again;
- Mouse events don't have
preventDefault
by default anymore. Handle it in the action function if needed. Take a look onMouse Action Function
argument description. Objectevent
is available; - Plugin system where plugins role is to convert DOM events to shortcut strings, then the core part will trigger the action functions related to the shortcut.
- Plugin can be enable/disable;
- Plugin can be mute/unmute;
- Plugin prefix in shortcut description is required. Keyboard plugin will take care for events started with ‘key:’ for example. Required because we should know the plugin that will handle the event;
- Start a plugin: enablePlugin ( pluginCode, pluginOptions );
- Function to destroy(remove) a plugin - disablePlugin();
- Mute/unmute a plugin. It’s like disable all events for a specific plugin;
- Plugin system documentation;
- Plugin interface: getPrefix, shortcutName, contextChange, mute, unmute, destroy;
- Plugin options - specific for each plugin;
- Bug: Can't start the library
- Folder 'dist' was added to the project. Includes commonjs, umd and esm versions of the library;
- Package.json: "exports" section was added. Allows you to use package as commonjs or es6 module without additional configuration;
- Rollup was added to the project. Used to build the library versions;
- Method
setDependencies
to add more external objects available in all action functions; - Method
getDependencies
to look at existingdependencies
list;
- HTML attribute
data-quick-click
is available to speed up single click response; - Documentation on methods
pause
andresume
; - Method
listShortcuts
to get names of all shortcuts defined; - Arguments for
onShortcut
andstreamKeys
converted to named arguments; - Method
setDependencies
to add objects to the "dependencies" object available as named argument in all action functions; - Method
getDependencies
to look at existingdependencies
list; - Methods
onShortcut
andstreamKeys
have a new argumentdependencies
to pass dependencies to the callback; - Dependencies are aviailable for
emit
method as well as first argument; - JSdoc type description for public methods;
- Tag is always a target, regardless of argument 'data-click'. Tag is always a
data-quick-click
target also;
- Mouse faster response when maxClicks achived. (maxClicks is automatically calculated according shortcut definitions);
- Method
emit
was added. Not documented yet;
- Mouse click: preventDefault();
- Dependencies update: @peter.naydenov/notice - v.2.2.1
- Initial code;
- Test package;
- Documentation;