Version 1.6.0
Features/behavior
- The tag widget now supports functions as vocabulary init option. The function will get the current value of the tag input field as an argument, and must return either, a list of vocabulary terms, e.g.:
// Return an array of strings to serve as suggestions
return ['Animal', 'Person', 'Building'];
// Or return a list of objects with label/uri fields
return [
{ label: 'Animal', uri: 'http//example.com/vocab/Animal' },
{ label: 'Person', uri: 'http//example.com/vocab/Person' },
{ label: 'Building', uri: 'http//example.com/vocab/Building' }
];
Or it must return a Promise of vocabulary items.
Bugfixes
- Fixes a bug that prevented language switching, from any of the supported languages back to the default
en
(annotorious/annotorious-openseadragon#104)
Other
- Removed downshift dependency in favour of a lighter (and more hackable) custom implementation, reducing bundle size by ~20kB