• 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
..
Annotation-test.js Loading commit data...
AnnotationActionBar-test.js Loading commit data...
AnnotationBody-test.js Loading commit data...
AnnotationDocumentInfo-test.js Loading commit data...
AnnotationEditor-test.js Loading commit data...
AnnotationHeader-test.js Loading commit data...
AnnotationMissing-test.js Loading commit data...
AnnotationPublishControl-test.js Loading commit data...
AnnotationQuote-test.js Loading commit data...
AnnotationReplyToggle-test.js Loading commit data...
AnnotationShareControl-test.js Loading commit data...
AnnotationShareInfo-test.js Loading commit data...
AnnotationTimestamps-test.js Loading commit data...
AnnotationUser-test.js Loading commit data...
AnnotationView-test.js Loading commit data...
AutocompletList-test.js Loading commit data...
Button-test.js Loading commit data...
Excerpt-test.js Loading commit data...
FilterSelect-test.js Loading commit data...
FilterStatus-test.js Loading commit data...
GroupList-test.js Loading commit data...
GroupListItem-test.js Loading commit data...
GroupListSection-test.js Loading commit data...
HelpPanel-test.js Loading commit data...
HypothesisApp-test.js Loading commit data...
LoggedOutMessage-test.js Loading commit data...
LoginPromptPanel-test.js Loading commit data...
MarkdownEditor-test.js Loading commit data...
MarkdownView-test.js Loading commit data...
Menu-test.js Loading commit data...
MenuItem-test.js Loading commit data...
MenuKeyboardNavigation-test.js Loading commit data...
MenuSection-test.js Loading commit data...
ModerationBanner-test.js Loading commit data...
NewNoteBtn-test.js Loading commit data...
NotebookFilters-test.js Loading commit data...
NotebookResultCount-test.js Loading commit data...
NotebookView-test.js Loading commit data...
SearchInput-test.js Loading commit data...
SelectionTabs-test.js Loading commit data...
ShareAnnotationsPanel-test.js Loading commit data...
ShareLinks-test.js Loading commit data...
SidebarContentError-test.js Loading commit data...
SidebarPanel-test.js Loading commit data...
SidebarView-test.js Loading commit data...
SortMenu-test.js Loading commit data...
Spinner-test.js Loading commit data...
StreamSearchInput-test.js Loading commit data...
StreamView-test.js Loading commit data...
TagEditor-test.js Loading commit data...
TagList-test.js Loading commit data...
Thread-test.js Loading commit data...
ThreadCard-test.js Loading commit data...
ThreadList-test.js Loading commit data...
ToastMessages-test.js Loading commit data...
TopBar-test.js Loading commit data...
Tutorial-test.js Loading commit data...
UserMenu-test.js Loading commit data...
VersionInfo-test.js Loading commit data...
slider-test.js Loading commit data...