• Robert Knight's avatar
    Move `useElementShouldClose` and `normalizeKeyName` into frontend-shared package · 9aa02026
    Robert Knight authored
    `useElementShouldClose` is a useful generic hook for implementing non-modal dialogs. We
    also use it in the LMS frontend, so it makes sense to share the implementation.
    
    This function depends on `normalizeKeyName`, so I moved that as well.
    
    `useElementShouldClose` also depended on a `listen` helper. This helper
    is not currently used by any other code so I moved it into
    `use-element-should-close.js` as a non-exported helper function and
    simplified it.
    
    In the process I found it was necessary to change the gulp task that
    builds the frontend-shared/lib/ directory to handle subdirectories under
    frontend-shared/src/.
    9aa02026
Name
Last commit
Last update
..
test Loading commit data...
collections.js Loading commit data...
copy-to-clipboard.js Loading commit data...
date.js Loading commit data...
disable-opener-for-external-links.js Loading commit data...
dom.js Loading commit data...
immutable.js Loading commit data...
memoize.js Loading commit data...
oauth-client.js Loading commit data...
observe-element-size.js Loading commit data...
postmessage-json-rpc.js Loading commit data...
random.js Loading commit data...
retry.js Loading commit data...
search-filter.js Loading commit data...
sentry.js Loading commit data...
time.js Loading commit data...
typing.js Loading commit data...
unicode.js Loading commit data...
url.js Loading commit data...
watch.js Loading commit data...