Commit 9bdbfcb1 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update all imports to use main entry point of `frontend-shared`

The `lib/next` module is going away soon.
parent 2001eae6
......@@ -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';
......
import { PointerButton } from '@hypothesis/frontend-shared/lib/next';
import { PointerButton } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
import type { Bucket } from '../util/buckets';
......
......@@ -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';
......
......@@ -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';
......
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';
......
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';
......
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,
......
import { CautionIcon, Link } from '@hypothesis/frontend-shared/lib/next';
import { CautionIcon, Link } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
/**
......
......@@ -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 = {
......
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';
......
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';
......
......@@ -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';
......
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';
......
import { Link } from '@hypothesis/frontend-shared/lib/next';
import { Link } from '@hypothesis/frontend-shared';
export type AnnotationDocumentInfoProps = {
/** The domain associated with the document */
......
......@@ -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';
......
import {
Link,
CcStdIcon,
CcZeroIcon,
} from '@hypothesis/frontend-shared/lib/next';
import { Link, CcStdIcon, CcZeroIcon } from '@hypothesis/frontend-shared';
/**
* Render information about CC licensing
......
......@@ -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';
......
import { ButtonBase } from '@hypothesis/frontend-shared/lib/next';
import { ButtonBase } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
export type AnnotationReplyToggleProps = {
......
......@@ -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';
......
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';
......
import { LinkBase } from '@hypothesis/frontend-shared/lib/next';
import { LinkBase } from '@hypothesis/frontend-shared';
import { useEffect, useMemo, useState } from 'preact/hooks';
import {
......
import { LinkBase } from '@hypothesis/frontend-shared/lib/next';
import { LinkBase } from '@hypothesis/frontend-shared';
type AnnotationUserProps = {
authorLink?: string;
......
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';
......
import { Card } from '@hypothesis/frontend-shared/lib/next';
import { Card } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
import { useMemo } from 'preact/hooks';
......
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';
......
......@@ -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';
......
import { PlusIcon } from '@hypothesis/frontend-shared/lib/next';
import { PlusIcon } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
import { useMemo, useState } from 'preact/hooks';
......
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';
......
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';
......
import { Panel } from '@hypothesis/frontend-shared/lib/next';
import { Panel } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
export type LaunchErrorPanelProps = {
......
......@@ -3,7 +3,7 @@ import {
LinkBase,
LinkButton,
LogoIcon,
} from '@hypothesis/frontend-shared/lib/next';
} from '@hypothesis/frontend-shared';
import { useSidebarStore } from '../store';
......
......@@ -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';
......
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';
......
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';
......
import {
PointerDownIcon,
PointerUpIcon,
} from '@hypothesis/frontend-shared/lib/next';
import { PointerDownIcon, PointerUpIcon } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
type MenuArrowProps = {
......
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';
......
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';
......
import { ProfileIcon } from '@hypothesis/frontend-shared/lib/next';
import { ProfileIcon } from '@hypothesis/frontend-shared';
import { useSidebarStore } from '../store';
import FilterSelect from './FilterSelect';
......
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';
......
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';
......
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';
......
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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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 = {
......
import {
Button,
Panel,
RestrictedIcon,
} from '@hypothesis/frontend-shared/lib/next';
import { Button, Panel, RestrictedIcon } from '@hypothesis/frontend-shared';
import { useSidebarStore } from '../store';
......
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';
......
import { SortIcon } from '@hypothesis/frontend-shared/lib/next';
import { SortIcon } from '@hypothesis/frontend-shared';
import { useSidebarStore } from '../store';
import Menu from './Menu';
......
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';
......
import { Link, CancelIcon } from '@hypothesis/frontend-shared/lib/next';
import { Link, CancelIcon } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
export type TagListItemProps = {
......
......@@ -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';
......
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';
......
......@@ -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';
......
......@@ -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';
......
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';
......
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';
......
import { ProfileIcon } from '@hypothesis/frontend-shared/lib/next';
import { ProfileIcon } from '@hypothesis/frontend-shared';
import { mount } from 'enzyme';
import { checkAccessibility } from '../../../test-util/accessibility';
......
import { EditIcon } from '@hypothesis/frontend-shared/lib/next';
import { EditIcon } from '@hypothesis/frontend-shared';
import { mount } from 'enzyme';
import { act } from 'preact/test-utils';
......
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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment