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