• 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
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
ga.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
ui-constants.js Loading commit data...
websocket.js Loading commit data...