Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rebrand package names #3835

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion apps/prerender/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: [require.resolve('@lenster/config/eslint/react.js')]
extends: [require.resolve('@hey/config/eslint/react.js')]
};
12 changes: 6 additions & 6 deletions apps/prerender/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lenster/prerender",
"name": "@hey/prerender",
"version": "0.0.0",
"private": true,
"license": "AGPL-3.0",
Expand All @@ -15,18 +15,18 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"@lenster/data": "workspace:*",
"@lenster/lens": "workspace:*",
"@lenster/lib": "workspace:*",
"@hey/data": "workspace:*",
"@hey/lens": "workspace:*",
"@hey/lib": "workspace:*",
"next": "^13.5.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-schemaorg": "^2.0.0",
"schema-dts": "^1.1.2"
},
"devDependencies": {
"@lenster/config": "workspace:*",
"@lenster/lens": "workspace:*",
"@hey/config": "workspace:*",
"@hey/lens": "workspace:*",
"@playwright/test": "^1.38.1",
"@types/react": "^18.2.22",
"typescript": "^5.2.2"
Expand Down
12 changes: 6 additions & 6 deletions apps/prerender/src/components/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { MediaSet, NftImage, Publication } from '@lenster/lens';
import { Profile } from '@lenster/lens';
import formatHandle from '@lenster/lib/formatHandle';
import getStampFyiURL from '@lenster/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@lenster/lib/sanitizeDStorageUrl';
import truncateByWords from '@lenster/lib/truncateByWords';
import type { MediaSet, NftImage, Publication } from '@hey/lens';
import { Profile } from '@hey/lens';
import formatHandle from '@hey/lib/formatHandle';
import getStampFyiURL from '@hey/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@hey/lib/sanitizeDStorageUrl';
import truncateByWords from '@hey/lib/truncateByWords';
import type { FC } from 'react';
import { JsonLd } from 'react-schemaorg';
import { BASE_URL } from 'src/constants';
Expand Down
12 changes: 6 additions & 6 deletions apps/prerender/src/components/Publication.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { DEFAULT_OG } from '@lenster/data/constants';
import type { Comment } from '@lenster/lens';
import { Publication } from '@lenster/lens';
import getStampFyiURL from '@lenster/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@lenster/lib/sanitizeDStorageUrl';
import truncateByWords from '@lenster/lib/truncateByWords';
import { DEFAULT_OG } from '@hey/data/constants';
import type { Comment } from '@hey/lens';
import { Publication } from '@hey/lens';
import getStampFyiURL from '@hey/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@hey/lib/sanitizeDStorageUrl';
import truncateByWords from '@hey/lib/truncateByWords';
import type { FC } from 'react';
import { BASE_URL } from 'src/constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/prerender/src/components/Shared/DefaultTags.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME, DEFAULT_OG, DESCRIPTION } from '@lenster/data/constants';
import { APP_NAME, DEFAULT_OG, DESCRIPTION } from '@hey/data/constants';
import type { FC } from 'react';
import { BASE_URL } from 'src/constants';

Expand Down
10 changes: 5 additions & 5 deletions apps/prerender/src/components/Shared/SinglePublication.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Publication } from '@lenster/lens';
import formatHandle from '@lenster/lib/formatHandle';
import getStampFyiURL from '@lenster/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@lenster/lib/sanitizeDStorageUrl';
import truncateByWords from '@lenster/lib/truncateByWords';
import type { Publication } from '@hey/lens';
import formatHandle from '@hey/lib/formatHandle';
import getStampFyiURL from '@hey/lib/getStampFyiURL';
import sanitizeDStorageUrl from '@hey/lib/sanitizeDStorageUrl';
import truncateByWords from '@hey/lib/truncateByWords';
import type { FC } from 'react';
import { BASE_URL } from 'src/constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/prerender/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IS_MAINNET } from '@lenster/data/constants';
import { IS_MAINNET } from '@hey/data/constants';

export const BASE_URL = IS_MAINNET
? 'https://lenster.xyz'
Expand Down
4 changes: 2 additions & 2 deletions apps/prerender/src/pages/posts/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
CommentRankingFilter,
CustomFiltersTypes,
PublicationDocument
} from '@lenster/lens';
import { lensApolloNodeClient } from '@lenster/lens/apollo';
} from '@hey/lens';
import { lensApolloNodeClient } from '@hey/lens/apollo';
import type { GetServerSidePropsContext } from 'next';

export const config = {
Expand Down
6 changes: 3 additions & 3 deletions apps/prerender/src/pages/u/[handle].tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Profile from '@components/Profile';
import { HANDLE_SUFFIX, LENSPROTOCOL_HANDLE } from '@lenster/data/constants';
import { HANDLE_SUFFIX, LENSPROTOCOL_HANDLE } from '@hey/data/constants';
import {
CustomFiltersTypes,
ProfileDocument,
ProfileFeedDocument
} from '@lenster/lens';
import { lensApolloNodeClient } from '@lenster/lens/apollo';
} from '@hey/lens';
import { lensApolloNodeClient } from '@hey/lens/apollo';
import type { GetServerSidePropsContext } from 'next';

export const config = {
Expand Down
2 changes: 1 addition & 1 deletion apps/prerender/tests/profile.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME } from '@lenster/data/constants';
import { APP_NAME } from '@hey/data/constants';
import { expect, test } from '@playwright/test';
import { PRERENDER_BASE_URL } from 'tests/constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/prerender/tests/publication.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME } from '@lenster/data/constants';
import { APP_NAME } from '@hey/data/constants';
import { expect, test } from '@playwright/test';
import { PRERENDER_BASE_URL } from 'tests/constants';

Expand Down
2 changes: 1 addition & 1 deletion apps/prerender/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@lenster/config/react.tsconfig.json",
"extends": "@hey/config/react.tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: [require.resolve('@lenster/config/eslint/react.js')]
extends: [require.resolve('@hey/config/eslint/react.js')]
};
20 changes: 10 additions & 10 deletions apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lenster/web",
"name": "@hey/web",
"version": "0.0.0",
"private": true,
"license": "AGPL-3.0",
Expand All @@ -22,15 +22,15 @@
"@dnd-kit/sortable": "^7.0.2",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@hey/abis": "workspace:*",
"@hey/data": "workspace:*",
"@hey/image-cropper": "workspace:*",
"@hey/lens": "workspace:*",
"@hey/lib": "workspace:*",
"@hey/snapshot": "workspace:*",
"@hey/types": "workspace:*",
"@hey/ui": "workspace:*",
"@lens-protocol/sdk-gated": "^1.2.0",
"@lenster/abis": "workspace:*",
"@lenster/data": "workspace:*",
"@lenster/image-cropper": "workspace:*",
"@lenster/lens": "workspace:*",
"@lenster/lib": "workspace:*",
"@lenster/snapshot": "workspace:*",
"@lenster/types": "workspace:*",
"@lenster/ui": "workspace:*",
"@lexical/code": "^0.12.2",
"@lexical/hashtag": "^0.12.2",
"@lexical/link": "^0.12.2",
Expand Down Expand Up @@ -83,7 +83,7 @@
"zustand": "^4.4.1"
},
"devDependencies": {
"@lenster/config": "workspace:*",
"@hey/config": "workspace:*",
"@lingui/cli": "^4.5.0",
"@playwright/test": "^1.38.1",
"@tailwindcss/aspect-ratio": "^0.4.2",
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/Bookmarks/Feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import type {
Publication,
PublicationMainFocus,
PublicationsProfileBookmarkedQueryRequest
} from '@lenster/lens';
import { usePublicationsProfileBookmarksQuery } from '@lenster/lens';
import { Card, EmptyState, ErrorMessage } from '@lenster/ui';
} from '@hey/lens';
import { usePublicationsProfileBookmarksQuery } from '@hey/lens';
import { Card, EmptyState, ErrorMessage } from '@hey/ui';
import { t } from '@lingui/macro';
import type { FC } from 'react';
import { useInView } from 'react-cool-inview';
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/Bookmarks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import Trending from '@components/Home/Trending';
import FeedFocusType from '@components/Shared/FeedFocusType';
import Footer from '@components/Shared/Footer';
import NotLoggedIn from '@components/Shared/NotLoggedIn';
import { APP_NAME } from '@lenster/data/constants';
import { PAGEVIEW } from '@lenster/data/tracking';
import type { PublicationMainFocus } from '@lenster/lens';
import { GridItemEight, GridItemFour, GridLayout } from '@lenster/ui';
import { APP_NAME } from '@hey/data/constants';
import { PAGEVIEW } from '@hey/data/tracking';
import type { PublicationMainFocus } from '@hey/lens';
import { GridItemEight, GridItemFour, GridLayout } from '@hey/ui';
import { Leafwatch } from '@lib/leafwatch';
import { t } from '@lingui/macro';
import type { NextPage } from 'next';
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/Channel/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Markup from '@components/Shared/Markup';
import Slug from '@components/Shared/Slug';
import { ClockIcon } from '@heroicons/react/24/outline';
import { FireIcon } from '@heroicons/react/24/solid';
import { STATIC_IMAGES_URL } from '@lenster/data/constants';
import formatHandle from '@lenster/lib/formatHandle';
import type { Channel } from '@lenster/types/lenster';
import { Image, LightBox, Tooltip } from '@lenster/ui';
import { STATIC_IMAGES_URL } from '@hey/data/constants';
import formatHandle from '@hey/lib/formatHandle';
import type { Channel } from '@hey/types/lenster';
import { Image, LightBox, Tooltip } from '@hey/ui';
import { formatDate } from '@lib/formatTime';
import { t } from '@lingui/macro';
import Link from 'next/link';
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/Channel/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import SinglePublication from '@components/Publication/SinglePublication';
import PublicationsShimmer from '@components/Shared/Shimmer/PublicationsShimmer';
import { RectangleStackIcon } from '@heroicons/react/24/outline';
import type { ExplorePublicationRequest, Publication } from '@lenster/lens';
import type { ExplorePublicationRequest, Publication } from '@hey/lens';
import {
PublicationSortCriteria,
PublicationTypes,
useExploreFeedQuery
} from '@lenster/lens';
import type { Channel } from '@lenster/types/lenster';
import { Card, EmptyState, ErrorMessage } from '@lenster/ui';
} from '@hey/lens';
import type { Channel } from '@hey/types/lenster';
import { Card, EmptyState, ErrorMessage } from '@hey/ui';
import { t } from '@lingui/macro';
import type { FC } from 'react';
import { useInView } from 'react-cool-inview';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Channel/Members.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import humanize from '@lenster/lib/humanize';
import humanize from '@hey/lib/humanize';
import { Plural } from '@lingui/macro';
import type { FC } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Channel/Shimmer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PublicationsShimmer from '@components/Shared/Shimmer/PublicationsShimmer';
import { GridItemEight, GridItemFour, GridLayout } from '@lenster/ui';
import { GridItemEight, GridItemFour, GridLayout } from '@hey/ui';
import type { FC } from 'react';

const ChannelPageShimmer: FC = () => {
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/Channel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import MetaTags from '@components/Common/MetaTags';
import { APP_NAME, CHANNELS_WORKER_URL } from '@lenster/data/constants';
import { PAGEVIEW } from '@lenster/data/tracking';
import type { Channel } from '@lenster/types/lenster';
import { GridItemEight, GridItemFour, GridLayout } from '@lenster/ui';
import { APP_NAME, CHANNELS_WORKER_URL } from '@hey/data/constants';
import { PAGEVIEW } from '@hey/data/tracking';
import type { Channel } from '@hey/types/lenster';
import { GridItemEight, GridItemFour, GridLayout } from '@hey/ui';
import { Leafwatch } from '@lib/leafwatch';
import { useQuery } from '@tanstack/react-query';
import axios from 'axios';
Expand Down
10 changes: 3 additions & 7 deletions apps/web/src/components/Comment/Feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ import QueuedPublication from '@components/Publication/QueuedPublication';
import SinglePublication from '@components/Publication/SinglePublication';
import PublicationsShimmer from '@components/Shared/Shimmer/PublicationsShimmer';
import { ChatBubbleLeftRightIcon } from '@heroicons/react/24/outline';
import type {
Comment,
Publication,
PublicationsQueryRequest
} from '@lenster/lens';
import type { Comment, Publication, PublicationsQueryRequest } from '@hey/lens';
import {
CommentOrderingTypes,
CommentRankingFilter,
CustomFiltersTypes,
useCommentFeedQuery
} from '@lenster/lens';
import { Card, EmptyState, ErrorMessage } from '@lenster/ui';
} from '@hey/lens';
import { Card, EmptyState, ErrorMessage } from '@hey/ui';
import { t } from '@lingui/macro';
import type { FC } from 'react';
import { useInView } from 'react-cool-inview';
Expand Down
10 changes: 3 additions & 7 deletions apps/web/src/components/Comment/NoneRelevantFeed.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import SinglePublication from '@components/Publication/SinglePublication';
import type {
Comment,
Publication,
PublicationsQueryRequest
} from '@lenster/lens';
import type { Comment, Publication, PublicationsQueryRequest } from '@hey/lens';
import {
CommentOrderingTypes,
CommentRankingFilter,
CustomFiltersTypes,
useCommentFeedQuery
} from '@lenster/lens';
import { Card } from '@lenster/ui';
} from '@hey/lens';
import { Card } from '@hey/ui';
import { Trans } from '@lingui/macro';
import type { FC } from 'react';
import { useState } from 'react';
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/Common/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import GlobalAlerts from '@components/Shared/GlobalAlerts';
import GlobalBanners from '@components/Shared/GlobalBanners';
import BottomNavigation from '@components/Shared/Navbar/BottomNavigation';
import type { Profile } from '@lenster/lens';
import { useUserProfilesWithGuardianInformationQuery } from '@lenster/lens';
import resetAuthData from '@lenster/lib/resetAuthData';
import type { Profile } from '@hey/lens';
import { useUserProfilesWithGuardianInformationQuery } from '@hey/lens';
import resetAuthData from '@hey/lib/resetAuthData';
import getIsAuthTokensAvailable from '@lib/getIsAuthTokensAvailable';
import getToastOptions from '@lib/getToastOptions';
import Head from 'next/head';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Common/MetaTags.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME, DEFAULT_OG, DESCRIPTION } from '@lenster/data/constants';
import { APP_NAME, DEFAULT_OG, DESCRIPTION } from '@hey/data/constants';
import Head from 'next/head';
import type { FC } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CHANNELS_WORKER_URL } from '@lenster/data/constants';
import { CHANNELS_WORKER_URL } from '@hey/data/constants';
import { useQuery } from '@tanstack/react-query';
import axios from 'axios';
import type { FC } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Localstorage } from '@lenster/data/storage';
import { Localstorage } from '@hey/data/storage';
import { i18n } from '@lingui/core';
import { detect, fromStorage } from '@lingui/detect-locale';
import { I18nProvider } from '@lingui/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PREFERENCES_WORKER_URL } from '@lenster/data/constants';
import { PREFERENCES_WORKER_URL } from '@hey/data/constants';
import { useQuery } from '@tanstack/react-query';
import axios from 'axios';
import type { FC } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useUserSigNoncesQuery } from '@lenster/lens';
import { useUserSigNoncesQuery } from '@hey/lens';
import type { FC } from 'react';
import { isSupported, share } from 'shared-zustand';
import { useAppPersistStore } from 'src/store/app';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APP_NAME, WALLETCONNECT_PROJECT_ID } from '@lenster/data/constants';
import { APP_NAME, WALLETCONNECT_PROJECT_ID } from '@hey/data/constants';
import { CoinbaseWalletConnector } from '@wagmi/connectors/coinbaseWallet';
import { InjectedConnector } from '@wagmi/connectors/injected';
import { WalletConnectConnector } from '@wagmi/connectors/walletConnect';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Common/Providers/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloProvider, lensApolloWebClient } from '@lenster/lens/apollo';
import { ApolloProvider, lensApolloWebClient } from '@hey/lens/apollo';
import getLivepeerTheme from '@lib/getLivepeerTheme';
import {
createReactClient,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ToggleWithHelper from '@components/Shared/ToggleWithHelper';
import { RectangleStackIcon, UsersIcon } from '@heroicons/react/24/outline';
import { CollectModules } from '@lenster/lens';
import { Button, Card } from '@lenster/ui';
import { CollectModules } from '@hey/lens';
import { Button, Card } from '@hey/ui';
import { t, Trans } from '@lingui/macro';
import type { Dispatch, FC, SetStateAction } from 'react';
import toast from 'react-hot-toast';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LockClosedIcon } from '@heroicons/react/24/outline';
import { HelpTooltip, Modal, Tooltip } from '@lenster/ui';
import cn from '@lenster/ui/cn';
import { HelpTooltip, Modal, Tooltip } from '@hey/ui';
import cn from '@hey/ui/cn';
import { t, Trans } from '@lingui/macro';
import { motion } from 'framer-motion';
import type { FC } from 'react';
Expand Down
Loading
Loading