Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
9bdbfcb1
Commit
9bdbfcb1
authored
Apr 24, 2023
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Apr 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update all imports to use main entry point of `frontend-shared`
The `lib/next` module is going away soon.
parent
2001eae6
Changes
61
Hide whitespace changes
Inline
Side-by-side
Showing
61 changed files
with
65 additions
and
106 deletions
+65
-106
AdderToolbar.tsx
src/annotator/components/AdderToolbar.tsx
+1
-1
Buckets.tsx
src/annotator/components/Buckets.tsx
+1
-1
ClusterToolbar.tsx
src/annotator/components/ClusterToolbar.tsx
+1
-1
ContentInfoBanner.tsx
src/annotator/components/ContentInfoBanner.tsx
+1
-1
NotebookModal.tsx
src/annotator/components/NotebookModal.tsx
+1
-1
ProfileModal.tsx
src/annotator/components/ProfileModal.tsx
+1
-1
Toolbar.tsx
src/annotator/components/Toolbar.tsx
+2
-2
WarningBanner.tsx
src/annotator/components/WarningBanner.tsx
+1
-1
BaseToastMessages.tsx
src/shared/components/BaseToastMessages.tsx
+1
-1
prompts.tsx
src/shared/prompts.tsx
+1
-1
Annotation.tsx
src/sidebar/components/Annotation/Annotation.tsx
+1
-1
AnnotationActionBar.tsx
src/sidebar/components/Annotation/AnnotationActionBar.tsx
+1
-1
AnnotationBody.tsx
src/sidebar/components/Annotation/AnnotationBody.tsx
+1
-5
AnnotationDocumentInfo.tsx
src/sidebar/components/Annotation/AnnotationDocumentInfo.tsx
+1
-1
AnnotationHeader.tsx
src/sidebar/components/Annotation/AnnotationHeader.tsx
+1
-1
AnnotationLicense.tsx
src/sidebar/components/Annotation/AnnotationLicense.tsx
+1
-5
AnnotationPublishControl.tsx
...idebar/components/Annotation/AnnotationPublishControl.tsx
+1
-1
AnnotationReplyToggle.tsx
src/sidebar/components/Annotation/AnnotationReplyToggle.tsx
+1
-1
AnnotationShareControl.tsx
src/sidebar/components/Annotation/AnnotationShareControl.tsx
+1
-1
AnnotationShareInfo.tsx
src/sidebar/components/Annotation/AnnotationShareInfo.tsx
+1
-5
AnnotationTimestamps.tsx
src/sidebar/components/Annotation/AnnotationTimestamps.tsx
+1
-1
AnnotationUser.tsx
src/sidebar/components/Annotation/AnnotationUser.tsx
+1
-1
AnnotationPublishControl-test.js
...mponents/Annotation/test/AnnotationPublishControl-test.js
+1
-5
AutocompleteList.tsx
src/sidebar/components/AutocompleteList.tsx
+1
-1
Excerpt.tsx
src/sidebar/components/Excerpt.tsx
+1
-1
FilterStatus.tsx
src/sidebar/components/FilterStatus.tsx
+1
-1
GroupList.tsx
src/sidebar/components/GroupList/GroupList.tsx
+1
-1
GroupListItem.tsx
src/sidebar/components/GroupList/GroupListItem.tsx
+1
-5
HelpPanel.tsx
src/sidebar/components/HelpPanel.tsx
+2
-5
LaunchErrorPanel.tsx
src/sidebar/components/LaunchErrorPanel.tsx
+1
-1
LoggedOutMessage.tsx
src/sidebar/components/LoggedOutMessage.tsx
+1
-1
LoginPromptPanel.tsx
src/sidebar/components/LoginPromptPanel.tsx
+1
-1
MarkdownEditor.tsx
src/sidebar/components/MarkdownEditor.tsx
+2
-6
Menu.tsx
src/sidebar/components/Menu.tsx
+1
-1
MenuArrow.tsx
src/sidebar/components/MenuArrow.tsx
+1
-4
MenuItem.tsx
src/sidebar/components/MenuItem.tsx
+1
-4
ModerationBanner.tsx
src/sidebar/components/ModerationBanner.tsx
+1
-5
NotebookFilters.tsx
src/sidebar/components/NotebookFilters.tsx
+1
-1
NotebookResultCount.tsx
src/sidebar/components/NotebookResultCount.tsx
+1
-1
NotebookView.tsx
src/sidebar/components/NotebookView.tsx
+1
-1
PaginationNavigation.tsx
src/sidebar/components/PaginationNavigation.tsx
+2
-2
PendingUpdatesButton.tsx
src/sidebar/components/PendingUpdatesButton.tsx
+1
-1
ProfileView.tsx
src/sidebar/components/ProfileView.tsx
+1
-1
SearchInput.tsx
src/sidebar/components/SearchInput.tsx
+1
-1
SelectionTabs.tsx
src/sidebar/components/SelectionTabs.tsx
+1
-1
ShareAnnotationsPanel.tsx
src/sidebar/components/ShareAnnotationsPanel.tsx
+1
-1
ShareLinks.tsx
src/sidebar/components/ShareLinks.tsx
+1
-1
SidebarContentError.tsx
src/sidebar/components/SidebarContentError.tsx
+1
-5
SidebarPanel.tsx
src/sidebar/components/SidebarPanel.tsx
+1
-1
SortMenu.tsx
src/sidebar/components/SortMenu.tsx
+1
-1
TagEditor.tsx
src/sidebar/components/TagEditor.tsx
+1
-1
TagListItem.tsx
src/sidebar/components/TagListItem.tsx
+1
-1
Thread.tsx
src/sidebar/components/Thread.tsx
+1
-1
ThreadCard.tsx
src/sidebar/components/ThreadCard.tsx
+1
-1
TopBar.tsx
src/sidebar/components/TopBar.tsx
+1
-1
Tutorial.tsx
src/sidebar/components/Tutorial.tsx
+1
-1
UserMenu.tsx
src/sidebar/components/UserMenu.tsx
+1
-1
VersionInfo.tsx
src/sidebar/components/VersionInfo.tsx
+1
-1
FilterSelect-test.js
src/sidebar/components/test/FilterSelect-test.js
+1
-1
MenuItem-test.js
src/sidebar/components/test/MenuItem-test.js
+1
-1
NotebookFilters-test.js
src/sidebar/components/test/NotebookFilters-test.js
+1
-1
No files found.
src/annotator/components/AdderToolbar.tsx
View file @
9bdbfcb1
...
...
@@ -4,7 +4,7 @@ import {
HighlightIcon
,
PointerDownIcon
,
PointerUpIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
...
...
src/annotator/components/Buckets.tsx
View file @
9bdbfcb1
import
{
PointerButton
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
PointerButton
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
Bucket
}
from
'../util/buckets'
;
...
...
src/annotator/components/ClusterToolbar.tsx
View file @
9bdbfcb1
...
...
@@ -6,7 +6,7 @@ import {
CaretRightIcon
,
HideIcon
,
HighlightIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useCallback
,
useState
}
from
'preact/hooks'
;
...
...
src/annotator/components/ContentInfoBanner.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
LinkBase
,
CaretLeftIcon
,
CaretRightIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
ContentInfoConfig
}
from
'../../types/annotator'
;
...
...
src/annotator/components/NotebookModal.tsx
View file @
9bdbfcb1
import
{
IconButton
,
CancelIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
IconButton
,
CancelIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/annotator/components/ProfileModal.tsx
View file @
9bdbfcb1
import
{
CancelIcon
,
IconButton
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
CancelIcon
,
IconButton
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/annotator/components/Toolbar.tsx
View file @
9bdbfcb1
import
type
{
ButtonCommonProps
}
from
'@hypothesis/frontend-shared/lib/components/input/ButtonBase'
;
import
{
ButtonBase
,
AnnotateIcon
,
...
...
@@ -8,7 +7,8 @@ import {
HideIcon
,
NoteIcon
,
ShowIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
ButtonCommonProps
}
from
'@hypothesis/frontend-shared/lib/components/input/ButtonBase'
;
import
type
{
IconComponent
,
PresentationalProps
,
...
...
src/annotator/components/WarningBanner.tsx
View file @
9bdbfcb1
import
{
CautionIcon
,
Link
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
CautionIcon
,
Link
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
/**
...
...
src/shared/components/BaseToastMessages.tsx
View file @
9bdbfcb1
...
...
@@ -4,7 +4,7 @@ import {
CancelIcon
,
CautionIcon
,
CheckIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
export
type
ToastMessage
=
{
...
...
src/shared/prompts.tsx
View file @
9bdbfcb1
import
{
Button
,
ModalDialog
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Button
,
ModalDialog
}
from
'@hypothesis/frontend-shared'
;
import
{
render
}
from
'preact'
;
import
{
createRef
}
from
'preact'
;
import
type
{
RefObject
}
from
'preact'
;
...
...
src/sidebar/components/Annotation/Annotation.tsx
View file @
9bdbfcb1
import
{
CardActions
,
Spinner
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
CardActions
,
Spinner
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useMemo
}
from
'preact/hooks'
;
...
...
src/sidebar/components/Annotation/AnnotationActionBar.tsx
View file @
9bdbfcb1
...
...
@@ -5,7 +5,7 @@ import {
FlagFilledIcon
,
ReplyIcon
,
TrashIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
{
confirm
}
from
'../../../shared/prompts'
;
import
type
{
SavedAnnotation
}
from
'../../../types/api'
;
...
...
src/sidebar/components/Annotation/AnnotationBody.tsx
View file @
9bdbfcb1
import
{
Button
,
CollapseIcon
,
ExpandIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
Button
,
CollapseIcon
,
ExpandIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useMemo
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/Annotation/AnnotationDocumentInfo.tsx
View file @
9bdbfcb1
import
{
Link
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Link
}
from
'@hypothesis/frontend-shared'
;
export
type
AnnotationDocumentInfoProps
=
{
/** The domain associated with the document */
...
...
src/sidebar/components/Annotation/AnnotationHeader.tsx
View file @
9bdbfcb1
...
...
@@ -2,7 +2,7 @@ import {
LinkButton
,
HighlightIcon
,
LockIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
{
useMemo
}
from
'preact/hooks'
;
import
type
{
Annotation
}
from
'../../../types/api'
;
...
...
src/sidebar/components/Annotation/AnnotationLicense.tsx
View file @
9bdbfcb1
import
{
Link
,
CcStdIcon
,
CcZeroIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
Link
,
CcStdIcon
,
CcZeroIcon
}
from
'@hypothesis/frontend-shared'
;
/**
* Render information about CC licensing
...
...
src/sidebar/components/Annotation/AnnotationPublishControl.tsx
View file @
9bdbfcb1
...
...
@@ -5,7 +5,7 @@ import {
GroupsIcon
,
LockIcon
,
MenuExpandIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
Group
}
from
'../../../types/api'
;
...
...
src/sidebar/components/Annotation/AnnotationReplyToggle.tsx
View file @
9bdbfcb1
import
{
ButtonBase
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
ButtonBase
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
export
type
AnnotationReplyToggleProps
=
{
...
...
src/sidebar/components/Annotation/AnnotationShareControl.tsx
View file @
9bdbfcb1
...
...
@@ -6,7 +6,7 @@ import {
InputGroup
,
CopyIcon
,
ShareIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/Annotation/AnnotationShareInfo.tsx
View file @
9bdbfcb1
import
{
LinkBase
,
GlobeIcon
,
GroupsIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
LinkBase
,
GlobeIcon
,
GroupsIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
Group
}
from
'../../../types/api'
;
...
...
src/sidebar/components/Annotation/AnnotationTimestamps.tsx
View file @
9bdbfcb1
import
{
LinkBase
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
LinkBase
}
from
'@hypothesis/frontend-shared'
;
import
{
useEffect
,
useMemo
,
useState
}
from
'preact/hooks'
;
import
{
...
...
src/sidebar/components/Annotation/AnnotationUser.tsx
View file @
9bdbfcb1
import
{
LinkBase
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
LinkBase
}
from
'@hypothesis/frontend-shared'
;
type
AnnotationUserProps
=
{
authorLink
?:
string
;
...
...
src/sidebar/components/Annotation/test/AnnotationPublishControl-test.js
View file @
9bdbfcb1
import
{
GlobeIcon
,
GroupsIcon
,
LockIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
GlobeIcon
,
GroupsIcon
,
LockIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
mount
}
from
'enzyme'
;
import
{
checkAccessibility
}
from
'../../../../test-util/accessibility'
;
...
...
src/sidebar/components/AutocompleteList.tsx
View file @
9bdbfcb1
import
{
Card
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Card
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useMemo
}
from
'preact/hooks'
;
...
...
src/sidebar/components/Excerpt.tsx
View file @
9bdbfcb1
import
{
LinkButton
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
LinkButton
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
}
from
'preact'
;
import
{
useCallback
,
useLayoutEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/FilterStatus.tsx
View file @
9bdbfcb1
...
...
@@ -4,7 +4,7 @@ import {
Card
,
CardContent
,
Spinner
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useMemo
}
from
'preact/hooks'
;
...
...
src/sidebar/components/GroupList/GroupList.tsx
View file @
9bdbfcb1
import
{
PlusIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
PlusIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useMemo
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/GroupList/GroupListItem.tsx
View file @
9bdbfcb1
import
{
CopyIcon
,
ExternalIcon
,
LeaveIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
CopyIcon
,
ExternalIcon
,
LeaveIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
confirm
}
from
'../../../shared/prompts'
;
...
...
src/sidebar/components/HelpPanel.tsx
View file @
9bdbfcb1
import
{
Link
,
LinkButton
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
ArrowRightIcon
,
ExternalIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
Link
,
LinkButton
}
from
'@hypothesis/frontend-shared'
;
import
{
ArrowRightIcon
,
ExternalIcon
}
from
'@hypothesis/frontend-shared'
;
import
type
{
ComponentChildren
as
Children
}
from
'preact'
;
import
{
useCallback
,
useMemo
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/LaunchErrorPanel.tsx
View file @
9bdbfcb1
import
{
Panel
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Panel
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
export
type
LaunchErrorPanelProps
=
{
...
...
src/sidebar/components/LoggedOutMessage.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
LinkBase
,
LinkButton
,
LogoIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
{
useSidebarStore
}
from
'../store'
;
...
...
src/sidebar/components/LoginPromptPanel.tsx
View file @
9bdbfcb1
...
...
@@ -2,7 +2,7 @@ import {
Button
,
CardActions
,
RestrictedIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
{
useSidebarStore
}
from
'../store'
;
import
SidebarPanel
from
'./SidebarPanel'
;
...
...
src/sidebar/components/MarkdownEditor.tsx
View file @
9bdbfcb1
import
{
ButtonBase
,
IconButton
,
LinkBase
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
ButtonBase
,
IconButton
,
LinkBase
}
from
'@hypothesis/frontend-shared'
;
import
{
EditorLatexIcon
,
EditorQuoteIcon
,
...
...
@@ -13,7 +9,7 @@ import {
LinkIcon
,
ListOrderedIcon
,
ListUnorderedIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
import
type
{
Ref
,
JSX
}
from
'preact'
;
...
...
src/sidebar/components/Menu.tsx
View file @
9bdbfcb1
import
{
useElementShouldClose
}
from
'@hypothesis/frontend-shared'
;
import
{
MenuExpandIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
MenuExpandIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
}
from
'preact'
;
import
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/MenuArrow.tsx
View file @
9bdbfcb1
import
{
PointerDownIcon
,
PointerUpIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
PointerDownIcon
,
PointerUpIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
type
MenuArrowProps
=
{
...
...
src/sidebar/components/MenuItem.tsx
View file @
9bdbfcb1
import
{
CaretUpIcon
,
MenuExpandIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
CaretUpIcon
,
MenuExpandIcon
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
,
Ref
}
from
'preact'
;
...
...
src/sidebar/components/ModerationBanner.tsx
View file @
9bdbfcb1
import
{
ButtonBase
,
FlagIcon
,
HideIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
ButtonBase
,
FlagIcon
,
HideIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
Annotation
}
from
'../../types/api'
;
...
...
src/sidebar/components/NotebookFilters.tsx
View file @
9bdbfcb1
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
useSidebarStore
}
from
'../store'
;
import
FilterSelect
from
'./FilterSelect'
;
...
...
src/sidebar/components/NotebookResultCount.tsx
View file @
9bdbfcb1
import
{
Spinner
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Spinner
}
from
'@hypothesis/frontend-shared'
;
import
{
countVisible
}
from
'../helpers/thread'
;
import
{
useRootThread
}
from
'./hooks/use-root-thread'
;
...
...
src/sidebar/components/NotebookView.tsx
View file @
9bdbfcb1
import
{
Link
,
Panel
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Link
,
Panel
}
from
'@hypothesis/frontend-shared'
;
import
{
useEffect
,
useLayoutEffect
,
useRef
,
useState
}
from
'preact/hooks'
;
import
scrollIntoView
from
'scroll-into-view'
;
...
...
src/sidebar/components/PaginationNavigation.tsx
View file @
9bdbfcb1
import
type
{
ButtonCommonProps
}
from
'@hypothesis/frontend-shared/lib/components/input/ButtonBase'
;
import
{
ButtonBase
,
ArrowLeftIcon
,
ArrowRightIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
ButtonCommonProps
}
from
'@hypothesis/frontend-shared/lib/components/input/ButtonBase'
;
import
type
{
PresentationalProps
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
import
type
{
JSX
}
from
'preact'
;
...
...
src/sidebar/components/PendingUpdatesButton.tsx
View file @
9bdbfcb1
import
{
IconButton
,
RefreshIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
IconButton
,
RefreshIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
useCallback
,
useEffect
}
from
'preact/hooks'
;
import
{
useShortcut
}
from
'../../shared/shortcut'
;
...
...
src/sidebar/components/ProfileView.tsx
View file @
9bdbfcb1
...
...
@@ -5,7 +5,7 @@ import {
CheckIcon
,
Scroll
,
SpinnerSpokesIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
PresentationalProps
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
,
JSX
}
from
'preact'
;
...
...
src/sidebar/components/SearchInput.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
Input
,
SearchIcon
,
Spinner
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
RefObject
}
from
'preact'
;
import
{
useCallback
,
useRef
,
useState
}
from
'preact/hooks'
;
...
...
src/sidebar/components/SelectionTabs.tsx
View file @
9bdbfcb1
...
...
@@ -5,7 +5,7 @@ import {
CardContent
,
LinkButton
,
PlusIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
}
from
'preact'
;
...
...
src/sidebar/components/ShareAnnotationsPanel.tsx
View file @
9bdbfcb1
...
...
@@ -5,7 +5,7 @@ import {
InputGroup
,
LockIcon
,
Spinner
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
{
pageSharingLink
}
from
'../helpers/annotation-sharing'
;
import
{
withServices
}
from
'../service-context'
;
...
...
src/sidebar/components/ShareLinks.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
EmailIcon
,
SocialFacebookIcon
,
SocialTwitterIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
type
ShareLinkProps
=
{
...
...
src/sidebar/components/SidebarContentError.tsx
View file @
9bdbfcb1
import
{
Button
,
Panel
,
RestrictedIcon
,
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
Button
,
Panel
,
RestrictedIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
useSidebarStore
}
from
'../store'
;
...
...
src/sidebar/components/SidebarPanel.tsx
View file @
9bdbfcb1
import
{
Dialog
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Dialog
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
type
{
ComponentChildren
}
from
'preact'
;
import
{
useCallback
,
useEffect
,
useRef
}
from
'preact/hooks'
;
...
...
src/sidebar/components/SortMenu.tsx
View file @
9bdbfcb1
import
{
SortIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
SortIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
useSidebarStore
}
from
'../store'
;
import
Menu
from
'./Menu'
;
...
...
src/sidebar/components/TagEditor.tsx
View file @
9bdbfcb1
import
{
useElementShouldClose
}
from
'@hypothesis/frontend-shared'
;
import
{
Input
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Input
}
from
'@hypothesis/frontend-shared'
;
import
{
useRef
,
useState
}
from
'preact/hooks'
;
import
{
withServices
}
from
'../service-context'
;
...
...
src/sidebar/components/TagListItem.tsx
View file @
9bdbfcb1
import
{
Link
,
CancelIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Link
,
CancelIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
export
type
TagListItemProps
=
{
...
...
src/sidebar/components/Thread.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
ButtonBase
,
CaretRightIcon
,
MenuExpandIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
{
useCallback
,
useMemo
}
from
'preact/hooks'
;
...
...
src/sidebar/components/ThreadCard.tsx
View file @
9bdbfcb1
import
{
Card
,
CardContent
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Card
,
CardContent
}
from
'@hypothesis/frontend-shared'
;
import
debounce
from
'lodash.debounce'
;
import
{
useCallback
,
useEffect
,
useMemo
,
useRef
}
from
'preact/hooks'
;
...
...
src/sidebar/components/TopBar.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
LinkButton
,
HelpIcon
,
ShareIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
SidebarSettings
}
from
'../../types/config'
;
...
...
src/sidebar/components/Tutorial.tsx
View file @
9bdbfcb1
...
...
@@ -3,7 +3,7 @@ import {
AnnotateIcon
,
HighlightIcon
,
ReplyIcon
,
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
}
from
'@hypothesis/frontend-shared'
;
import
type
{
IconComponent
}
from
'@hypothesis/frontend-shared/lib/types'
;
import
classnames
from
'classnames'
;
...
...
src/sidebar/components/UserMenu.tsx
View file @
9bdbfcb1
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
useState
}
from
'preact/hooks'
;
import
type
{
Service
,
SidebarSettings
}
from
'../../types/config'
;
...
...
src/sidebar/components/VersionInfo.tsx
View file @
9bdbfcb1
import
{
Button
,
CopyIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
Button
,
CopyIcon
}
from
'@hypothesis/frontend-shared'
;
import
classnames
from
'classnames'
;
import
type
{
ComponentChildren
}
from
'preact'
;
...
...
src/sidebar/components/test/FilterSelect-test.js
View file @
9bdbfcb1
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
mount
}
from
'enzyme'
;
import
{
checkAccessibility
}
from
'../../../test-util/accessibility'
;
...
...
src/sidebar/components/test/MenuItem-test.js
View file @
9bdbfcb1
import
{
EditIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
EditIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
mount
}
from
'enzyme'
;
import
{
act
}
from
'preact/test-utils'
;
...
...
src/sidebar/components/test/NotebookFilters-test.js
View file @
9bdbfcb1
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared
/lib/next
'
;
import
{
ProfileIcon
}
from
'@hypothesis/frontend-shared'
;
import
{
mount
}
from
'enzyme'
;
import
{
mockImportedComponents
}
from
'../../../test-util/mock-imported-components'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment