Merge branch 'master' of github.com:toeverything/AFFiNE into fix/downhill-bugs

This commit is contained in:
QiShaoXuan
2023-02-07 14:15:06 +08:00
34 changed files with 404 additions and 560 deletions

View File

@@ -67,18 +67,16 @@ jobs:
lint: lint:
name: Lint and E2E Test name: Lint and E2E Test
runs-on: ubuntu-latest runs-on: self-hosted
environment: development environment: development
needs: build needs: build
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
with: with:
version: 'latest' version: 'latest'
- uses: actions/setup-node@v3
- name: Use Node.js
uses: actions/setup-node@v2
with: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'
@@ -96,8 +94,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@@ -105,20 +101,40 @@ jobs:
name: artifact name: artifact
path: packages/app/.next/ path: packages/app/.next/
- name: Lint & E2E Test - name: Lint & E2E Test & Unit Test
run: | run: |
pnpm lint --max-warnings=0 pnpm lint --max-warnings=0
PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium npx playwright install chromium
PLAYWRIGHT_BROWSERS_PATH=0 pnpm test pnpm run test:coverage
PLAYWRIGHT_BROWSERS_PATH=0 pnpm test:dc pnpm run test:unit
env: # env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }} # NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }} # NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }} # NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }} # NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }} # NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }} # NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }} # NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Collect code coverage report
run: pnpm exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov
- name: Upload e2e test coverage results
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage/lcov.info
flags: e2etest
name: affine
fail_ci_if_error: true
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: test-results-main
path: ./test-results
if-no-files-found: ignore
build-community: build-community:
name: Build Community name: Build Community

View File

@@ -1,88 +0,0 @@
name: Unit Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
e2e-test:
timeout-minutes: 60
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.cjs
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Install Playwright browsers
run: npx playwright install chromium
- name: Run E2E tests
run: pnpm run test:coverage
# env:
# NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
# NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
# NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
# NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
# NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
# NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
# NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Collect code coverage report
run: pnpm exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov
- name: Upload e2e test coverage results
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage/lcov.info
flags: e2etest
name: affine
fail_ci_if_error: true
unit-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.cjs
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Install Playwright browsers
run: npx playwright install chromium
- name: Run Unit tests
run: pnpm run test:unit

View File

@@ -1,45 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
For answers to common questions about this code of conduct, see <https://www.contributor-covenant.org/faq>

View File

@@ -1,3 +0,0 @@
# Contributing to AFFiNE
For information related to contributing to AFFiNE, please check out the [Contributing to AFFiNE](https://docs.affine.pro/affine/developer-docs/contributions) section of the documentation at the AFFiNE site.

View File

@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
Examples of behavior that contributes to creating a positive environment include: Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language - Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences - Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism - Gracefully accepting constructive criticism
- Focusing on what is best for the community - Focusing on what is best for the community
- Showing empathy towards other community members - Showing empathy towards other community members
Examples of unacceptable behavior by participants include: Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances - The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks - Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment - Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission - Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting - Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities ## Our Responsibilities

View File

@@ -43,7 +43,7 @@
"lint-staged": "^13.1.0", "lint-staged": "^13.1.0",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,

View File

@@ -7,6 +7,21 @@ if (process.env.NODE_ENV === 'development' || process.env.COVERAGE === 'true') {
plugins.push('istanbul'); plugins.push('istanbul');
} }
plugins.push([
'@emotion',
{
// See https://emotion.sh/docs/@emotion/babel-plugin
importMap: {
'@/styles': {
styled: {
canonicalImport: ['@emotion/styled', 'default'],
styledBaseImport: ['@/styles', 'styled'],
},
},
},
},
]);
module.exports = { module.exports = {
presets: ['next/babel'], presets: ['next/babel'],
plugins, plugins,

View File

@@ -11,10 +11,10 @@
"dependencies": { "dependencies": {
"@affine/datacenter": "workspace:*", "@affine/datacenter": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.4.0-20230203030233-b22bea7", "@blocksuite/blocks": "0.4.0-alpha.2",
"@blocksuite/editor": "0.4.0-20230203030233-b22bea7", "@blocksuite/editor": "0.4.0-alpha.2",
"@blocksuite/icons": "^2.0.2", "@blocksuite/icons": "^2.0.2",
"@blocksuite/store": "0.4.0-20230203030233-b22bea7", "@blocksuite/store": "0.4.0-alpha.2",
"@emotion/css": "^11.10.0", "@emotion/css": "^11.10.0",
"@emotion/react": "^11.10.4", "@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0", "@emotion/server": "^11.10.0",
@@ -28,7 +28,7 @@
"cmdk": "^0.1.20", "cmdk": "^0.1.20",
"css-spring": "^4.1.0", "css-spring": "^4.1.0",
"dayjs": "^1.11.7", "dayjs": "^1.11.7",
"lit": "^2.3.1", "lit": "^2.6.1",
"next": "13.1.0", "next": "13.1.0",
"next-debug-local": "^0.1.5", "next-debug-local": "^0.1.5",
"prettier": "^2.7.1", "prettier": "^2.7.1",
@@ -36,9 +36,10 @@
"quill-cursors": "^4.0.0", "quill-cursors": "^4.0.0",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"yjs": "^13.5.44" "yjs": "^13.5.45"
}, },
"devDependencies": { "devDependencies": {
"@emotion/babel-plugin": "^11.10.5",
"@types/node": "18.7.18", "@types/node": "18.7.18",
"@types/react": "18.0.20", "@types/react": "18.0.20",
"@types/react-dom": "18.0.6", "@types/react-dom": "18.0.6",
@@ -50,7 +51,7 @@
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"next-pwa": "^5.6.0", "next-pwa": "^5.6.0",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"typescript": "4.8.3" "typescript": "^4.9.5"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [

View File

@@ -7,7 +7,7 @@ export const NotfoundPage = () => {
const router = useRouter(); const router = useRouter();
return ( return (
<PageContainer> <PageContainer>
<NotFoundTitle> <NotFoundTitle data-testid="notFound">
{t('404 - Page Not Found')} {t('404 - Page Not Found')}
<p> <p>
<Button <Button

View File

@@ -1,5 +1,6 @@
import { PropsWithChildren, ReactNode } from 'react'; import { PropsWithChildren, ReactNode } from 'react';
import Header from './Header'; import Header from './Header';
import QuickSearchButton from './QuickSearchButton';
import { StyledPageListTittleWrapper } from './styles'; import { StyledPageListTittleWrapper } from './styles';
// import QuickSearchButton from './QuickSearchButton'; // import QuickSearchButton from './QuickSearchButton';
@@ -12,7 +13,7 @@ export const PageListHeader = ({ icon, children }: PageListHeaderProps) => {
<StyledPageListTittleWrapper> <StyledPageListTittleWrapper>
{icon} {icon}
{children} {children}
{/* <QuickSearchButton style={{ marginLeft: '5px' }} /> */} <QuickSearchButton />
</StyledPageListTittleWrapper> </StyledPageListTittleWrapper>
</Header> </Header>
); );

View File

@@ -14,7 +14,6 @@ export const PageListEmpty = (props: { listType?: string }) => {
{listType === 'all' && <p>{t('emptyAllPages')}</p>} {listType === 'all' && <p>{t('emptyAllPages')}</p>}
{listType === 'favorite' && <p>{t('emptyFavourite')}</p>} {listType === 'favorite' && <p>{t('emptyFavourite')}</p>}
{listType === 'trash' && <p>{t('emptyTrash')}</p>} {listType === 'trash' && <p>{t('emptyTrash')}</p>}
<p>{t('still designed')}</p>
</div> </div>
); );
}; };

View File

@@ -1,26 +1,23 @@
import React from 'react'; import React from 'react';
import { AddIcon } from '@blocksuite/icons'; import { AddIcon } from '@blocksuite/icons';
import { StyledModalFooterContent } from './style'; import { StyledModalFooterContent } from './style';
import { useModal } from '@/providers/GlobalModalProvider';
import { Command } from 'cmdk'; import { Command } from 'cmdk';
import { usePageHelper } from '@/hooks/use-page-helper'; import { usePageHelper } from '@/hooks/use-page-helper';
import { useTranslation } from '@affine/i18n'; import { useTranslation } from '@affine/i18n';
export const Footer = (props: { query: string }) => { export const Footer = (props: { query: string; onClose: () => void }) => {
const { triggerQuickSearchModal } = useModal();
const { openPage, createPage } = usePageHelper(); const { openPage, createPage } = usePageHelper();
const { t } = useTranslation(); const { t } = useTranslation();
const query = props.query; const { query, onClose } = props;
return ( return (
<Command.Item <Command.Item
data-testid="quickSearch-addNewPage" data-testid="quickSearch-addNewPage"
onSelect={async () => { onSelect={async () => {
onClose();
const pageId = await createPage({ title: query }); const pageId = await createPage({ title: query });
if (pageId) { if (pageId) {
openPage(pageId); openPage(pageId);
} }
triggerQuickSearchModal();
}} }}
> >
<StyledModalFooterContent> <StyledModalFooterContent>

View File

@@ -28,12 +28,9 @@ export const Input = (props: {
}, },
true true
); );
setInputValue(props.query);
return inputRef.current?.focus(); return inputRef.current?.focus();
}, [inputRef]); }, [inputRef, props.query]);
useEffect(() => {
return setInputValue(props.query);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return ( return (
<StyledInputContent> <StyledInputContent>
<StyledLabel htmlFor=":r5:"> <StyledLabel htmlFor=":r5:">

View File

@@ -1,6 +1,5 @@
import { Command } from 'cmdk'; import { Command } from 'cmdk';
import { StyledListItem, StyledNotFound } from './style'; import { StyledListItem, StyledNotFound } from './style';
import { useModal } from '@/providers/GlobalModalProvider';
import { PaperIcon, EdgelessIcon } from '@blocksuite/icons'; import { PaperIcon, EdgelessIcon } from '@blocksuite/icons';
import { Dispatch, SetStateAction, useEffect, useState } from 'react'; import { Dispatch, SetStateAction, useEffect, useState } from 'react';
import { useAppState } from '@/providers/app-state-provider'; import { useAppState } from '@/providers/app-state-provider';
@@ -12,14 +11,11 @@ import usePageHelper from '@/hooks/use-page-helper';
export const Results = (props: { export const Results = (props: {
query: string; query: string;
loading: boolean; loading: boolean;
onClose: () => void;
setLoading: Dispatch<SetStateAction<boolean>>; setLoading: Dispatch<SetStateAction<boolean>>;
setShowCreatePage: Dispatch<SetStateAction<boolean>>; setShowCreatePage: Dispatch<SetStateAction<boolean>>;
}) => { }) => {
const query = props.query; const { query, loading, setLoading, setShowCreatePage, onClose } = props;
const loading = props.loading;
const setLoading = props.setLoading;
const setShowCreatePage = props.setShowCreatePage;
const { triggerQuickSearchModal } = useModal();
const { openPage } = usePageHelper(); const { openPage } = usePageHelper();
const router = useRouter(); const router = useRouter();
const { currentWorkspace, pageList } = useAppState(); const { currentWorkspace, pageList } = useAppState();
@@ -55,8 +51,8 @@ export const Results = (props: {
<Command.Item <Command.Item
key={result.id} key={result.id}
onSelect={() => { onSelect={() => {
onClose();
openPage(result.id); openPage(result.id);
triggerQuickSearchModal();
}} }}
value={result.id} value={result.id}
> >
@@ -86,8 +82,8 @@ export const Results = (props: {
key={link.title} key={link.title}
value={link.title} value={link.title}
onSelect={() => { onSelect={() => {
onClose();
router.push(link.href); router.push(link.href);
triggerQuickSearchModal();
}} }}
> >
<StyledListItem> <StyledListItem>

View File

@@ -1,5 +1,10 @@
import { FC, SVGProps } from 'react'; import { FC, SVGProps } from 'react';
import { AllPagesIcon, FavouritesIcon, TrashIcon } from '@blocksuite/icons'; import {
AllPagesIcon,
FavouritesIcon,
TrashIcon,
SettingsIcon,
} from '@blocksuite/icons';
import { useTranslation } from '@affine/i18n'; import { useTranslation } from '@affine/i18n';
export const useSwitchToConfig = ( export const useSwitchToConfig = (
@@ -23,6 +28,13 @@ export const useSwitchToConfig = (
: '', : '',
icon: FavouritesIcon, icon: FavouritesIcon,
}, },
{
title: t('Settings'),
href: currentWorkspaceId
? `/workspace/${currentWorkspaceId}/setting`
: '',
icon: SettingsIcon,
},
{ {
title: t('Trash'), title: t('Trash'),
href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/trash` : '', href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/trash` : '',

View File

@@ -31,11 +31,16 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
const [showCreatePage, setShowCreatePage] = useState(true); const [showCreatePage, setShowCreatePage] = useState(true);
const { triggerQuickSearchModal } = useModal(); const { triggerQuickSearchModal } = useModal();
const handleClose = () => {
setQuery('');
onClose();
};
// Add ‘⌘+K’ shortcut keys as switches // Add ‘⌘+K’ shortcut keys as switches
useEffect(() => { useEffect(() => {
const down = (e: KeyboardEvent) => { const down = (e: KeyboardEvent) => {
if ((e.key === 'k' && e.metaKey) || (e.key === 'k' && e.ctrlKey)) { if ((e.key === 'k' && e.metaKey) || (e.key === 'k' && e.ctrlKey)) {
const selection = window.getSelection(); const selection = window.getSelection();
setQuery('');
if (selection?.toString()) { if (selection?.toString()) {
triggerQuickSearchModal(false); triggerQuickSearchModal(false);
return; return;
@@ -45,9 +50,6 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
} }
} }
}; };
if (!open) {
setQuery('');
}
document.addEventListener('keydown', down, { capture: true }); document.addEventListener('keydown', down, { capture: true });
return () => return () =>
document.removeEventListener('keydown', down, { capture: true }); document.removeEventListener('keydown', down, { capture: true });
@@ -64,7 +66,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
return ( return (
<Modal <Modal
open={open} open={open}
onClose={onClose} onClose={handleClose}
wrapperPosition={['top', 'center']} wrapperPosition={['top', 'center']}
data-testid="quickSearch" data-testid="quickSearch"
> >
@@ -108,6 +110,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
query={query} query={query}
loading={loading} loading={loading}
setLoading={setLoading} setLoading={setLoading}
onClose={handleClose}
setShowCreatePage={setShowCreatePage} setShowCreatePage={setShowCreatePage}
/> />
) : ( ) : (
@@ -115,7 +118,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
query={query} query={query}
loading={loading} loading={loading}
setLoading={setLoading} setLoading={setLoading}
onClose={onClose} onClose={handleClose}
setPublishWorkspaceName={setPublishWorkspaceName} setPublishWorkspaceName={setPublishWorkspaceName}
/> />
)} )}
@@ -125,7 +128,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
<> <>
<StyledModalDivider /> <StyledModalDivider />
<StyledModalFooter> <StyledModalFooter>
<Footer query={query} /> <Footer query={query} onClose={handleClose} />
</StyledModalFooter> </StyledModalFooter>
</> </>
) : null ) : null

View File

@@ -23,6 +23,7 @@ export const WorkspaceCard = ({
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<StyledCard <StyledCard
data-testid="workspace-card"
onClick={() => { onClick={() => {
onClick(workspaceData); onClick(workspaceData);
}} }}

View File

@@ -32,7 +32,6 @@ import { EnableWorkspaceButton } from '@/components/enable-workspace';
export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => { export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
const [isInviteModalShow, setIsInviteModalShow] = useState(false); const [isInviteModalShow, setIsInviteModalShow] = useState(false);
const { members, removeMember, loaded } = useMembers(); const { members, removeMember, loaded } = useMembers();
const { t } = useTranslation(); const { t } = useTranslation();
const { confirm } = useConfirm(); const { confirm } = useConfirm();
@@ -94,41 +93,45 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
: t('Pending')} : t('Pending')}
</StyledMemberRoleContainer> </StyledMemberRoleContainer>
<StyledMoreVerticalButton> <StyledMoreVerticalButton>
<Menu {member.type === 99 ? (
content={ <></>
<> ) : (
<MenuItem <Menu
onClick={async () => { content={
const confirmRemove = await confirm({ <>
title: t('Delete Member?'), <MenuItem
content: t('will delete member'), onClick={async () => {
confirmText: t('Delete'), const confirmRemove = await confirm({
confirmType: 'danger', title: t('Delete Member?'),
}); content: t('will delete member'),
confirmText: t('Delete'),
confirmType: 'danger',
});
if (!confirmRemove) { if (!confirmRemove) {
return; return;
} }
await removeMember(member.id); await removeMember(member.id);
toast( toast(
t('Member has been removed', { t('Member has been removed', {
name: user.name, name: user.name,
}) })
); );
}} }}
icon={<TrashIcon />} icon={<TrashIcon />}
> >
{t('Delete')} {t('Delete')}
</MenuItem> </MenuItem>
</> </>
} }
placement="bottom-end" placement="bottom-end"
disablePortal={true} disablePortal={true}
> >
<IconButton> <IconButton>
<MoreVerticalIcon /> <MoreVerticalIcon />
</IconButton> </IconButton>
</Menu> </Menu>
)}
</StyledMoreVerticalButton> </StyledMoreVerticalButton>
</StyledMemberListItem> </StyledMemberListItem>
); );

View File

@@ -32,13 +32,13 @@ export const WorkspaceSelector = () => {
> >
<WorkspaceUnitAvatar <WorkspaceUnitAvatar
size={28} size={28}
name={currentWorkspace?.name ?? 'AFFiNE'} name={currentWorkspace?.name ?? 'AFFiNE Test'}
workspaceUnit={currentWorkspace} workspaceUnit={currentWorkspace}
/> />
</div> </div>
</Avatar> </Avatar>
<WorkspaceName data-testid="workspace-name"> <WorkspaceName data-testid="workspace-name">
{currentWorkspace?.name ?? 'AFFiNE'} {currentWorkspace?.name ?? 'AFFiNE Test'}
</WorkspaceName> </WorkspaceName>
</SelectorWrapper> </SelectorWrapper>
<WorkspaceModal <WorkspaceModal

View File

@@ -67,8 +67,8 @@ const App = ({ Component, pageProps }: AppPropsWithLayout) => {
}; };
const AppDefender = ({ children }: PropsWithChildren) => { const AppDefender = ({ children }: PropsWithChildren) => {
const { synced } = useAppState();
const router = useRouter(); const router = useRouter();
const { synced } = useAppState();
useEffect(() => { useEffect(() => {
if (router.asPath === '/') { if (router.asPath === '/') {
@@ -76,6 +76,11 @@ const AppDefender = ({ children }: PropsWithChildren) => {
} }
}, [router]); }, [router]);
// if you visit /404, you will see the children directly
if (router.route === '/404') {
return <div>{children}</div>;
}
return <div>{synced ? children : <PageLoading />}</div>; return <div>{synced ? children : <PageLoading />}</div>;
}; };

View File

@@ -1,6 +1,6 @@
import { DataCenter } from '@affine/datacenter'; import { DataCenter } from '@affine/datacenter';
const DEFAULT_WORKSPACE_NAME = 'AFFINE Test'; const DEFAULT_WORKSPACE_NAME = 'AFFiNE Test';
export const createDefaultWorkspace = async (dataCenter: DataCenter) => { export const createDefaultWorkspace = async (dataCenter: DataCenter) => {
return dataCenter.createWorkspace({ return dataCenter.createWorkspace({

View File

@@ -6,7 +6,6 @@
"main": "dist/src/index.js", "main": "dist/src/index.js",
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",
"exports": { "exports": {
"./src/*": "./dist/src/*.js",
".": "./dist/src/index.js" ".": "./dist/src/index.js"
}, },
"scripts": { "scripts": {
@@ -23,12 +22,13 @@
"@playwright/test": "^1.29.1", "@playwright/test": "^1.29.1",
"@types/debug": "^4.1.7", "@types/debug": "^4.1.7",
"fake-indexeddb": "4.0.1", "fake-indexeddb": "4.0.1",
"typescript": "^4.8.4", "typescript": "^4.9.5",
"yjs": "^13.5.44" "yjs": "^13.5.45",
"lit": "^2.6.1"
}, },
"dependencies": { "dependencies": {
"@blocksuite/blocks": "0.4.0-20230203030233-b22bea7", "@blocksuite/blocks": "0.4.0-alpha.2",
"@blocksuite/store": "0.4.0-20230203030233-b22bea7", "@blocksuite/store": "0.4.0-alpha.2",
"debug": "^4.3.4", "debug": "^4.3.4",
"encoding": "^0.1.13", "encoding": "^0.1.13",
"firebase": "^9.15.0", "firebase": "^9.15.0",

View File

@@ -6,7 +6,6 @@
"type": "module", "type": "module",
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",
"exports": { "exports": {
"./src/*": "./dist/src/*.js",
".": "./dist/src/index.js" ".": "./dist/src/index.js"
}, },
"scripts": { "scripts": {
@@ -28,6 +27,6 @@
"devDependencies": { "devDependencies": {
"@types/prettier": "^2.7.2", "@types/prettier": "^2.7.2",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^4.8.4" "typescript": "^4.9.5"
} }
} }

View File

@@ -5,7 +5,6 @@
"main": "dist/src/index.js", "main": "dist/src/index.js",
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",
"exports": { "exports": {
"./src/*": "./dist/src/*.js",
".": "./dist/src/index.js" ".": "./dist/src/index.js"
}, },
"scripts": { "scripts": {
@@ -24,6 +23,6 @@
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.0.21", "@types/react": "^18.0.21",
"typescript": "^4.8.4" "typescript": "^4.9.5"
} }
} }

View File

@@ -17,6 +17,7 @@ const config: PlaywrightTestConfig = {
browserName: 'chromium', browserName: 'chromium',
viewport: { width: 1440, height: 800 }, viewport: { width: 1440, height: 800 },
actionTimeout: 5 * 1000, actionTimeout: 5 * 1000,
locale: 'en-US',
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer // Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
// You can open traces locally(`npx playwright show-trace trace.zip`) // You can open traces locally(`npx playwright show-trace trace.zip`)
// or in your browser on [Playwright Trace Viewer](https://trace.playwright.dev/). // or in your browser on [Playwright Trace Viewer](https://trace.playwright.dev/).
@@ -27,7 +28,7 @@ const config: PlaywrightTestConfig = {
fullyParallel: true, fullyParallel: true,
forbidOnly: !!process.env.CI, forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0, retries: process.env.CI ? 3 : 0,
workers: process.env.CI ? '100%' : undefined, workers: process.env.CI ? '100%' : undefined,
webServer: { webServer: {
@@ -39,6 +40,11 @@ const config: PlaywrightTestConfig = {
COVERAGE: process.env.COVERAGE || 'false', COVERAGE: process.env.COVERAGE || 'false',
}, },
}, },
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
// default 'list' when running locally
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
reporter: process.env.CI ? 'github' : 'list',
}; };
export default config; export default config;

View File

@@ -23,6 +23,11 @@ const config: PlaywrightTestConfig = {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry', trace: 'on-first-retry',
}, },
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
// default 'list' when running locally
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
reporter: process.env.CI ? 'github' : 'list',
}; };
export default config; export default config;

417
pnpm-lock.yaml generated
View File

@@ -22,18 +22,18 @@ importers:
lint-staged: ^13.1.0 lint-staged: ^13.1.0
nyc: ^15.1.0 nyc: ^15.1.0
prettier: ^2.7.1 prettier: ^2.7.1
typescript: ^4.9.3 typescript: ^4.9.5
devDependencies: devDependencies:
'@changesets/cli': 2.26.0 '@changesets/cli': 2.26.0
'@playwright/test': 1.29.1 '@playwright/test': 1.29.1
'@types/eslint': 8.4.10 '@types/eslint': 8.4.10
'@types/node': 18.11.18 '@types/node': 18.11.18
'@typescript-eslint/eslint-plugin': 5.48.0_wxmz6cyorqfuzhhglktlvr5lve '@typescript-eslint/eslint-plugin': 5.48.0_vqm4js66qtp4h6afqe3btrngbi
'@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/parser': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
babel-plugin-istanbul: 6.1.1 babel-plugin-istanbul: 6.1.1
cross-env: 7.0.3 cross-env: 7.0.3
eslint: 8.31.0 eslint: 8.31.0
eslint-config-next: 12.3.1_p4cjf2r47dnfiqufepc5hp43sq eslint-config-next: 12.3.1_ifw3q4r6iq3gw7cspzs2siycvu
eslint-config-prettier: 8.5.0_eslint@8.31.0 eslint-config-prettier: 8.5.0_eslint@8.31.0
eslint-plugin-prettier: 4.2.1_vkmhlldugy3fnk7p2bqhsfnaiq eslint-plugin-prettier: 4.2.1_vkmhlldugy3fnk7p2bqhsfnaiq
fake-indexeddb: 4.0.1 fake-indexeddb: 4.0.1
@@ -42,16 +42,17 @@ importers:
lint-staged: 13.1.0 lint-staged: 13.1.0
nyc: 15.1.0 nyc: 15.1.0
prettier: 2.7.1 prettier: 2.7.1
typescript: 4.9.3 typescript: 4.9.5
packages/app: packages/app:
specifiers: specifiers:
'@affine/datacenter': workspace:* '@affine/datacenter': workspace:*
'@affine/i18n': workspace:* '@affine/i18n': workspace:*
'@blocksuite/blocks': 0.4.0-20230203030233-b22bea7 '@blocksuite/blocks': 0.4.0-alpha.2
'@blocksuite/editor': 0.4.0-20230203030233-b22bea7 '@blocksuite/editor': 0.4.0-alpha.2
'@blocksuite/icons': ^2.0.2 '@blocksuite/icons': ^2.0.2
'@blocksuite/store': 0.4.0-20230203030233-b22bea7 '@blocksuite/store': 0.4.0-alpha.2
'@emotion/babel-plugin': ^11.10.5
'@emotion/css': ^11.10.0 '@emotion/css': ^11.10.0
'@emotion/react': ^11.10.4 '@emotion/react': ^11.10.4
'@emotion/server': ^11.10.0 '@emotion/server': ^11.10.0
@@ -74,7 +75,7 @@ importers:
eslint-config-next: 12.3.1 eslint-config-next: 12.3.1
eslint-config-prettier: ^8.5.0 eslint-config-prettier: ^8.5.0
eslint-plugin-prettier: ^4.2.1 eslint-plugin-prettier: ^4.2.1
lit: ^2.3.1 lit: ^2.6.1
next: 13.1.0 next: 13.1.0
next-debug-local: ^0.1.5 next-debug-local: ^0.1.5
next-pwa: ^5.6.0 next-pwa: ^5.6.0
@@ -84,15 +85,15 @@ importers:
raw-loader: ^4.0.2 raw-loader: ^4.0.2
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0 react-dom: 18.2.0
typescript: 4.8.3 typescript: ^4.9.5
yjs: ^13.5.44 yjs: ^13.5.45
dependencies: dependencies:
'@affine/datacenter': link:../data-center '@affine/datacenter': link:../data-center
'@affine/i18n': link:../i18n '@affine/i18n': link:../i18n
'@blocksuite/blocks': 0.4.0-20230203030233-b22bea7_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
'@blocksuite/editor': 0.4.0-20230203030233-b22bea7_yjs@13.5.44 '@blocksuite/editor': 0.4.0-alpha.2_yjs@13.5.45
'@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34 '@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34
'@blocksuite/store': 0.4.0-20230203030233-b22bea7_lit@2.4.0+yjs@13.5.44 '@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
'@emotion/css': 11.10.0 '@emotion/css': 11.10.0
'@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34 '@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34
'@emotion/server': 11.10.0_@emotion+css@11.10.0 '@emotion/server': 11.10.0_@emotion+css@11.10.0
@@ -106,7 +107,7 @@ importers:
cmdk: 0.1.21_7ey2zzynotv32rpkwno45fsx4e cmdk: 0.1.21_7ey2zzynotv32rpkwno45fsx4e
css-spring: 4.1.0 css-spring: 4.1.0
dayjs: 1.11.7 dayjs: 1.11.7
lit: 2.4.0 lit: 2.6.1
next: 13.1.0_biqbaboplfbrettd7655fr4n2y next: 13.1.0_biqbaboplfbrettd7655fr4n2y
next-debug-local: 0.1.5 next-debug-local: 0.1.5
prettier: 2.7.1 prettier: 2.7.1
@@ -114,25 +115,26 @@ importers:
quill-cursors: 4.0.0 quill-cursors: 4.0.0
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0_react@18.2.0 react-dom: 18.2.0_react@18.2.0
yjs: 13.5.44 yjs: 13.5.45
devDependencies: devDependencies:
'@emotion/babel-plugin': 11.10.5
'@types/node': 18.7.18 '@types/node': 18.7.18
'@types/react': 18.0.20 '@types/react': 18.0.20
'@types/react-dom': 18.0.6 '@types/react-dom': 18.0.6
'@types/wicg-file-system-access': 2020.9.5 '@types/wicg-file-system-access': 2020.9.5
chalk: 4.1.2 chalk: 4.1.2
eslint: 8.22.0 eslint: 8.22.0
eslint-config-next: 12.3.1_76twfck5d7crjqrmw4yltga7zm eslint-config-next: 12.3.1_hp3n5f6hao4yyg55iy34n6oive
eslint-config-prettier: 8.5.0_eslint@8.22.0 eslint-config-prettier: 8.5.0_eslint@8.22.0
eslint-plugin-prettier: 4.2.1_i2cojdczqdiurzgttlwdgf764e eslint-plugin-prettier: 4.2.1_i2cojdczqdiurzgttlwdgf764e
next-pwa: 5.6.0_next@13.1.0 next-pwa: 5.6.0_next@13.1.0
raw-loader: 4.0.2 raw-loader: 4.0.2
typescript: 4.8.3 typescript: 4.9.5
packages/data-center: packages/data-center:
specifiers: specifiers:
'@blocksuite/blocks': 0.4.0-20230203030233-b22bea7 '@blocksuite/blocks': 0.4.0-alpha.2
'@blocksuite/store': 0.4.0-20230203030233-b22bea7 '@blocksuite/store': 0.4.0-alpha.2
'@playwright/test': ^1.29.1 '@playwright/test': ^1.29.1
'@types/debug': ^4.1.7 '@types/debug': ^4.1.7
debug: ^4.3.4 debug: ^4.3.4
@@ -143,13 +145,14 @@ importers:
ky: ^0.33.0 ky: ^0.33.0
ky-universal: ^0.11.0 ky-universal: ^0.11.0
lib0: ^0.2.58 lib0: ^0.2.58
lit: ^2.6.1
swr: ^2.0.0 swr: ^2.0.0
typescript: ^4.8.4 typescript: ^4.9.5
y-protocols: ^1.0.5 y-protocols: ^1.0.5
yjs: ^13.5.44 yjs: ^13.5.45
dependencies: dependencies:
'@blocksuite/blocks': 0.4.0-20230203030233-b22bea7_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
'@blocksuite/store': 0.4.0-20230203030233-b22bea7_yjs@13.5.44 '@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
debug: 4.3.4 debug: 4.3.4
encoding: 0.1.13 encoding: 0.1.13
firebase: 9.15.0_encoding@0.1.13 firebase: 9.15.0_encoding@0.1.13
@@ -163,8 +166,9 @@ importers:
'@playwright/test': 1.29.1 '@playwright/test': 1.29.1
'@types/debug': 4.1.7 '@types/debug': 4.1.7
fake-indexeddb: 4.0.1 fake-indexeddb: 4.0.1
typescript: 4.9.3 lit: 2.6.1
yjs: 13.5.44 typescript: 4.9.5
yjs: 13.5.45
packages/i18n: packages/i18n:
specifiers: specifiers:
@@ -173,15 +177,15 @@ importers:
prettier: ^2.7.1 prettier: ^2.7.1
react-i18next: ^11.18.4 react-i18next: ^11.18.4
ts-node: ^10.9.1 ts-node: ^10.9.1
typescript: ^4.8.4 typescript: ^4.9.5
dependencies: dependencies:
i18next: 21.10.0 i18next: 21.10.0
prettier: 2.7.1 prettier: 2.7.1
react-i18next: 11.18.6_i18next@21.10.0 react-i18next: 11.18.6_i18next@21.10.0
devDependencies: devDependencies:
'@types/prettier': 2.7.2 '@types/prettier': 2.7.2
ts-node: 10.9.1_typescript@4.9.3 ts-node: 10.9.1_typescript@4.9.5
typescript: 4.9.3 typescript: 4.9.5
packages/logger: packages/logger:
specifiers: specifiers:
@@ -189,14 +193,14 @@ importers:
next: ^12.3.1 next: ^12.3.1
react: ^18.2.0 react: ^18.2.0
react-dom: ^18.2.0 react-dom: ^18.2.0
typescript: ^4.8.4 typescript: ^4.9.5
dependencies: dependencies:
next: 12.3.1_biqbaboplfbrettd7655fr4n2y next: 12.3.1_biqbaboplfbrettd7655fr4n2y
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0_react@18.2.0 react-dom: 18.2.0_react@18.2.0
devDependencies: devDependencies:
'@types/react': 18.0.21 '@types/react': 18.0.21
typescript: 4.8.4 typescript: 4.9.5
packages: packages:
@@ -441,11 +445,11 @@ packages:
/@babel/helper-plugin-utils/7.19.0: /@babel/helper-plugin-utils/7.19.0:
resolution: {integrity: sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==} resolution: {integrity: sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-plugin-utils/7.20.2: /@babel/helper-plugin-utils/7.20.2:
resolution: {integrity: sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==} resolution: {integrity: sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
dev: true
/@babel/helper-remap-async-to-generator/7.18.9_@babel+core@7.20.5: /@babel/helper-remap-async-to-generator/7.18.9_@babel+core@7.20.5:
resolution: {integrity: sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==} resolution: {integrity: sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==}
@@ -834,8 +838,7 @@ packages:
peerDependencies: peerDependencies:
'@babel/core': ^7.0.0-0 '@babel/core': ^7.0.0-0
dependencies: dependencies:
'@babel/helper-plugin-utils': 7.19.0 '@babel/helper-plugin-utils': 7.20.2
dev: false
/@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.20.5: /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.20.5:
resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}
@@ -1463,13 +1466,13 @@ packages:
to-fast-properties: 2.0.0 to-fast-properties: 2.0.0
dev: true dev: true
/@blocksuite/blocks/0.4.0-20230203030233-b22bea7_yjs@13.5.44: /@blocksuite/blocks/0.4.0-alpha.2_yjs@13.5.45:
resolution: {integrity: sha512-mHRk7bT50Tct/Oltm2YrwjOOnlp6XOGsy4UCg7rVkKsW9n02HY+9RaDqXzRF934YR1ujl/ofr00k6ghFAH8XDw==} resolution: {integrity: sha512-rsG1wXNmZpZrCQeADLYkJyFQJ6tTW5QutmN9kr5e1HI3cZgV6n1szcDBh+/32xp6xFn1q1RgknYVNS6jHsbd+A==}
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.6.1 '@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
'@blocksuite/phasor': 0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44 '@blocksuite/phasor': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
'@blocksuite/store': 0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44 '@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
'@blocksuite/virgo': 0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44 '@blocksuite/virgo': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
'@popperjs/core': 2.11.6 '@popperjs/core': 2.11.6
autosize: 5.0.2 autosize: 5.0.2
highlight.js: 11.7.0 highlight.js: 11.7.0
@@ -1485,12 +1488,12 @@ packages:
- yjs - yjs
dev: false dev: false
/@blocksuite/editor/0.4.0-20230203030233-b22bea7_yjs@13.5.44: /@blocksuite/editor/0.4.0-alpha.2_yjs@13.5.45:
resolution: {integrity: sha512-PYP6uW432lIJFhYr1OEfNFQBl0xNqCGa/CYanj4Dw18/tYj3BD25sBAAEGwW0ixY08gfolbglQTJj59qOccCxg==} resolution: {integrity: sha512-77+uY8ljus+W70sf3J5sjzS6jzfLXeA5wBnPVALtq7LBIzkQesFZ/FCewpPPaqDy3Up8rnq4mvWDB2GCbpmwuA==}
dependencies: dependencies:
'@blocksuite/blocks': 0.4.0-20230203030233-b22bea7_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.6.1 '@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
'@blocksuite/store': 0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44 '@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
lit: 2.6.1 lit: 2.6.1
marked: 4.2.12 marked: 4.2.12
turndown: 7.1.1 turndown: 7.1.1
@@ -1501,33 +1504,8 @@ packages:
- yjs - yjs
dev: false dev: false
/@blocksuite/global/0.4.0-20230203030233-b22bea7: /@blocksuite/global/0.4.0-alpha.2_lit@2.6.1:
resolution: {integrity: sha512-y1FJoRvocYQRi6zju5dPC9T/acN9Zxqe7Qy0/0wo3nHE9p/3wSGhoisJlTHKSuejW6oYp3fgOS+bOWpfHdhA6g==} resolution: {integrity: sha512-LS58Itk+rrHmU51rEl6X4yqVpNRW9GCZBSrlLnlxSBaqqOwa7aE57vF2zfDiamjBXmCnwbcdAlucyMoHcuqrGA==}
peerDependencies:
lit: ^2.6
peerDependenciesMeta:
lit:
optional: true
dependencies:
ansi-colors: 4.1.3
zod: 3.20.2
dev: false
/@blocksuite/global/0.4.0-20230203030233-b22bea7_lit@2.4.0:
resolution: {integrity: sha512-y1FJoRvocYQRi6zju5dPC9T/acN9Zxqe7Qy0/0wo3nHE9p/3wSGhoisJlTHKSuejW6oYp3fgOS+bOWpfHdhA6g==}
peerDependencies:
lit: ^2.6
peerDependenciesMeta:
lit:
optional: true
dependencies:
ansi-colors: 4.1.3
lit: 2.4.0
zod: 3.20.2
dev: false
/@blocksuite/global/0.4.0-20230203030233-b22bea7_lit@2.6.1:
resolution: {integrity: sha512-y1FJoRvocYQRi6zju5dPC9T/acN9Zxqe7Qy0/0wo3nHE9p/3wSGhoisJlTHKSuejW6oYp3fgOS+bOWpfHdhA6g==}
peerDependencies: peerDependencies:
lit: ^2.6 lit: ^2.6
peerDependenciesMeta: peerDependenciesMeta:
@@ -1549,37 +1527,37 @@ packages:
react: 18.2.0 react: 18.2.0
dev: false dev: false
/@blocksuite/phasor/0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44: /@blocksuite/phasor/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
resolution: {integrity: sha512-C4eH4vJIImhisSCgi6WnNItU/Ed89FghYn1naqZvShp5QMBAWN0Ze9CgM7esXALcmxDpxN+Z45uY32yVqPYXRA==} resolution: {integrity: sha512-+T9hXOyadQh5A2TpzOvY7KntBImzt8fVMfgq0McGnPQP8whSDmgKmGn0N442ObUM09X9XwzmF1i2claYIiPW+g==}
peerDependencies: peerDependencies:
yjs: ^13 yjs: ^13
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.6.1 '@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
fractional-indexing: 3.1.0 fractional-indexing: 3.2.0
nanoid: 4.0.0 nanoid: 4.0.1
perfect-freehand: 1.2.0 perfect-freehand: 1.2.0
yjs: 13.5.44 yjs: 13.5.45
transitivePeerDependencies: transitivePeerDependencies:
- lit - lit
dev: false dev: false
/@blocksuite/store/0.4.0-20230203030233-b22bea7_lit@2.4.0+yjs@13.5.44: /@blocksuite/store/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
resolution: {integrity: sha512-RvgEM4o+QyXUKV1NVZC8HJO0vH4pE7ygr5U0b9Zu03RvErAdqdzy4HL/VkcI+gTzTHB72tQp9bPj8QxQ37dzow==} resolution: {integrity: sha512-Tezn9P5EoggO03lBAusYTldUW+twoXSfaU+mJoTSCbW4DC8aDpgFRZgZlxjon2MC1aZnz1sShjFa6zKkNerRFg==}
peerDependencies: peerDependencies:
yjs: ^13 yjs: ^13
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.4.0 '@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
'@types/flexsearch': 0.7.3 '@types/flexsearch': 0.7.3
buffer: 6.0.3 buffer: 6.0.3
flexsearch: 0.7.21 flexsearch: 0.7.21
idb-keyval: 6.2.0 idb-keyval: 6.2.0
ky: 0.33.2 ky: 0.33.2
lib0: 0.2.60 lib0: 0.2.61
merge: 2.1.1 merge: 2.1.1
nanoid: 4.0.0 nanoid: 4.0.1
y-protocols: 1.0.5 y-protocols: 1.0.5
y-webrtc: 10.2.4 y-webrtc: 10.2.4
yjs: 13.5.44 yjs: 13.5.45
zod: 3.20.2 zod: 3.20.2
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
@@ -1588,65 +1566,15 @@ packages:
- utf-8-validate - utf-8-validate
dev: false dev: false
/@blocksuite/store/0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44: /@blocksuite/virgo/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
resolution: {integrity: sha512-RvgEM4o+QyXUKV1NVZC8HJO0vH4pE7ygr5U0b9Zu03RvErAdqdzy4HL/VkcI+gTzTHB72tQp9bPj8QxQ37dzow==} resolution: {integrity: sha512-ZLyQeBULa4yD0+wlP56miSZi4ljWYLvvZH54CEplVsOFqtYs0LruBsELc6z7cBkfJR1awdeJxNj/6qgKEwP5FA==}
peerDependencies:
yjs: ^13
dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.6.1
'@types/flexsearch': 0.7.3
buffer: 6.0.3
flexsearch: 0.7.21
idb-keyval: 6.2.0
ky: 0.33.2
lib0: 0.2.60
merge: 2.1.1
nanoid: 4.0.0
y-protocols: 1.0.5
y-webrtc: 10.2.4
yjs: 13.5.44
zod: 3.20.2
transitivePeerDependencies:
- bufferutil
- lit
- supports-color
- utf-8-validate
dev: false
/@blocksuite/store/0.4.0-20230203030233-b22bea7_yjs@13.5.44:
resolution: {integrity: sha512-RvgEM4o+QyXUKV1NVZC8HJO0vH4pE7ygr5U0b9Zu03RvErAdqdzy4HL/VkcI+gTzTHB72tQp9bPj8QxQ37dzow==}
peerDependencies:
yjs: ^13
dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7
'@types/flexsearch': 0.7.3
buffer: 6.0.3
flexsearch: 0.7.21
idb-keyval: 6.2.0
ky: 0.33.2
lib0: 0.2.60
merge: 2.1.1
nanoid: 4.0.0
y-protocols: 1.0.5
y-webrtc: 10.2.4
yjs: 13.5.44
zod: 3.20.2
transitivePeerDependencies:
- bufferutil
- lit
- supports-color
- utf-8-validate
dev: false
/@blocksuite/virgo/0.4.0-20230203030233-b22bea7_lit@2.6.1+yjs@13.5.44:
resolution: {integrity: sha512-Jc7RpCkmBCj88xmtE9R9WFcbNBcl0X+NW+v42iYQ/1b3HuzWr2CaxxdHSMW/bXMQdXx/GrF8Ak0aYUYp6hQWDQ==}
peerDependencies: peerDependencies:
lit: ^2 lit: ^2
yjs: ^13 yjs: ^13
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230203030233-b22bea7_lit@2.6.1 '@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
lit: 2.6.1 lit: 2.6.1
yjs: 13.5.44 yjs: 13.5.45
dev: false dev: false
/@changesets/apply-release-plan/6.1.3: /@changesets/apply-release-plan/6.1.3:
@@ -1840,8 +1768,8 @@ packages:
'@jridgewell/trace-mapping': 0.3.9 '@jridgewell/trace-mapping': 0.3.9
dev: true dev: true
/@emotion/babel-plugin/11.10.2: /@emotion/babel-plugin/11.10.5:
resolution: {integrity: sha512-xNQ57njWTFVfPAc3cjfuaPdsgLp5QOSuRsj9MA6ndEhH/AzuZM86qIQzt6rq+aGBwj3n5/TkLmU5lhAfdRmogA==} resolution: {integrity: sha512-xE7/hyLHJac7D2Ve9dKroBBZqBT7WuPQmWcq7HSGb84sUuP4mlOWoB8dvVfD9yk5DHkU1m6RW7xSoDtnQHNQeA==}
peerDependencies: peerDependencies:
'@babel/core': ^7.0.0 '@babel/core': ^7.0.0
dependencies: dependencies:
@@ -1850,14 +1778,13 @@ packages:
'@babel/runtime': 7.20.7 '@babel/runtime': 7.20.7
'@emotion/hash': 0.9.0 '@emotion/hash': 0.9.0
'@emotion/memoize': 0.8.0 '@emotion/memoize': 0.8.0
'@emotion/serialize': 1.1.0 '@emotion/serialize': 1.1.1
babel-plugin-macros: 3.1.0 babel-plugin-macros: 3.1.0
convert-source-map: 1.9.0 convert-source-map: 1.9.0
escape-string-regexp: 4.0.0 escape-string-regexp: 4.0.0
find-root: 1.1.0 find-root: 1.1.0
source-map: 0.5.7 source-map: 0.5.7
stylis: 4.0.13 stylis: 4.1.3
dev: false
/@emotion/cache/11.10.3: /@emotion/cache/11.10.3:
resolution: {integrity: sha512-Psmp/7ovAa8appWh3g51goxu/z3iVms7JXOreq136D8Bbn6dYraPnmL6mdM8GThEx9vwSn92Fz+mGSjBzN8UPQ==} resolution: {integrity: sha512-Psmp/7ovAa8appWh3g51goxu/z3iVms7JXOreq136D8Bbn6dYraPnmL6mdM8GThEx9vwSn92Fz+mGSjBzN8UPQ==}
@@ -1887,7 +1814,7 @@ packages:
'@babel/core': '@babel/core':
optional: true optional: true
dependencies: dependencies:
'@emotion/babel-plugin': 11.10.2 '@emotion/babel-plugin': 11.10.5
'@emotion/cache': 11.10.3 '@emotion/cache': 11.10.3
'@emotion/serialize': 1.1.0 '@emotion/serialize': 1.1.0
'@emotion/sheet': 1.2.0 '@emotion/sheet': 1.2.0
@@ -1896,7 +1823,6 @@ packages:
/@emotion/hash/0.9.0: /@emotion/hash/0.9.0:
resolution: {integrity: sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==} resolution: {integrity: sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==}
dev: false
/@emotion/is-prop-valid/1.2.0: /@emotion/is-prop-valid/1.2.0:
resolution: {integrity: sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==} resolution: {integrity: sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==}
@@ -1906,7 +1832,6 @@ packages:
/@emotion/memoize/0.8.0: /@emotion/memoize/0.8.0:
resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==} resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==}
dev: false
/@emotion/react/11.10.4_w5j4k42lgipnm43s3brx6h3c34: /@emotion/react/11.10.4_w5j4k42lgipnm43s3brx6h3c34:
resolution: {integrity: sha512-j0AkMpr6BL8gldJZ6XQsQ8DnS9TxEQu1R+OGmDZiWjBAJtCcbt0tS3I/YffoqHXxH6MjgI7KdMbYKw3MEiU9eA==} resolution: {integrity: sha512-j0AkMpr6BL8gldJZ6XQsQ8DnS9TxEQu1R+OGmDZiWjBAJtCcbt0tS3I/YffoqHXxH6MjgI7KdMbYKw3MEiU9eA==}
@@ -1921,7 +1846,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
'@babel/runtime': 7.19.0 '@babel/runtime': 7.19.0
'@emotion/babel-plugin': 11.10.2 '@emotion/babel-plugin': 11.10.5
'@emotion/cache': 11.10.3 '@emotion/cache': 11.10.3
'@emotion/serialize': 1.1.0 '@emotion/serialize': 1.1.0
'@emotion/use-insertion-effect-with-fallbacks': 1.0.0_react@18.2.0 '@emotion/use-insertion-effect-with-fallbacks': 1.0.0_react@18.2.0
@@ -1942,6 +1867,15 @@ packages:
csstype: 3.1.1 csstype: 3.1.1
dev: false dev: false
/@emotion/serialize/1.1.1:
resolution: {integrity: sha512-Zl/0LFggN7+L1liljxXdsVSVlg6E/Z/olVWpfxUTxOAmi8NU7YoeWeLfi1RmnB2TATHoaWwIBRoL+FvAJiTUQA==}
dependencies:
'@emotion/hash': 0.9.0
'@emotion/memoize': 0.8.0
'@emotion/unitless': 0.8.0
'@emotion/utils': 1.2.0
csstype: 3.1.1
/@emotion/server/11.10.0_@emotion+css@11.10.0: /@emotion/server/11.10.0_@emotion+css@11.10.0:
resolution: {integrity: sha512-MTvJ21JPo9aS02GdjFW4nhdwOi2tNNpMmAM/YED0pkxzjDNi5WbiTwXqaCnvLc2Lr8NFtjhT0az1vTJyLIHYcw==} resolution: {integrity: sha512-MTvJ21JPo9aS02GdjFW4nhdwOi2tNNpMmAM/YED0pkxzjDNi5WbiTwXqaCnvLc2Lr8NFtjhT0az1vTJyLIHYcw==}
peerDependencies: peerDependencies:
@@ -1979,7 +1913,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
'@babel/runtime': 7.19.0 '@babel/runtime': 7.19.0
'@emotion/babel-plugin': 11.10.2 '@emotion/babel-plugin': 11.10.5
'@emotion/is-prop-valid': 1.2.0 '@emotion/is-prop-valid': 1.2.0
'@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34 '@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34
'@emotion/serialize': 1.1.0 '@emotion/serialize': 1.1.0
@@ -1991,7 +1925,6 @@ packages:
/@emotion/unitless/0.8.0: /@emotion/unitless/0.8.0:
resolution: {integrity: sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==} resolution: {integrity: sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==}
dev: false
/@emotion/use-insertion-effect-with-fallbacks/1.0.0_react@18.2.0: /@emotion/use-insertion-effect-with-fallbacks/1.0.0_react@18.2.0:
resolution: {integrity: sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==} resolution: {integrity: sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==}
@@ -2003,7 +1936,6 @@ packages:
/@emotion/utils/1.2.0: /@emotion/utils/1.2.0:
resolution: {integrity: sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==} resolution: {integrity: sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==}
dev: false
/@emotion/weak-memoize/0.3.0: /@emotion/weak-memoize/0.3.0:
resolution: {integrity: sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==} resolution: {integrity: sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==}
@@ -2649,21 +2581,11 @@ packages:
/@lit-labs/ssr-dom-shim/1.0.0: /@lit-labs/ssr-dom-shim/1.0.0:
resolution: {integrity: sha512-ic93MBXfApIFTrup4a70M/+ddD8xdt2zxxj9sRwHQzhS9ag/syqkD8JPdTXsc1gUy2K8TTirhlCqyTEM/sifNw==} resolution: {integrity: sha512-ic93MBXfApIFTrup4a70M/+ddD8xdt2zxxj9sRwHQzhS9ag/syqkD8JPdTXsc1gUy2K8TTirhlCqyTEM/sifNw==}
dev: false
/@lit/reactive-element/1.4.1:
resolution: {integrity: sha512-qDv4851VFSaBWzpS02cXHclo40jsbAjRXnebNXpm0uVg32kCneZPo9RYVQtrTNICtZ+1wAYHu1ZtxWSWMbKrBw==}
dev: false
/@lit/reactive-element/1.5.0:
resolution: {integrity: sha512-fQh9FDK0LPTwDk+0HhSZEtb8K0LTN1wXerwpGrWA+a8tWulYRDLI4vQDWp4GOIsewn0572KYV/oZ3+492D7osA==}
dev: false
/@lit/reactive-element/1.6.1: /@lit/reactive-element/1.6.1:
resolution: {integrity: sha512-va15kYZr7KZNNPZdxONGQzpUr+4sxVu7V/VG7a8mRfPPXUyhEYj5RzXCQmGrlP3tAh0L3HHm5AjBMFYRqlM9SA==} resolution: {integrity: sha512-va15kYZr7KZNNPZdxONGQzpUr+4sxVu7V/VG7a8mRfPPXUyhEYj5RzXCQmGrlP3tAh0L3HHm5AjBMFYRqlM9SA==}
dependencies: dependencies:
'@lit-labs/ssr-dom-shim': 1.0.0 '@lit-labs/ssr-dom-shim': 1.0.0
dev: false
/@manypkg/find-root/1.1.0: /@manypkg/find-root/1.1.0:
resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==}
@@ -3541,7 +3463,6 @@ packages:
/@types/parse-json/4.0.0: /@types/parse-json/4.0.0:
resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==}
dev: false
/@types/prettier/2.7.2: /@types/prettier/2.7.2:
resolution: {integrity: sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==} resolution: {integrity: sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==}
@@ -3614,7 +3535,7 @@ packages:
resolution: {integrity: sha512-UYK244awtmcUYQfs7FR8710MJcefL2WvkyHMjA8yJzxd1mo0Gfn88sRZ1Bls7hiUhA2w7ne1gpJ9T5g3G0wOyA==} resolution: {integrity: sha512-UYK244awtmcUYQfs7FR8710MJcefL2WvkyHMjA8yJzxd1mo0Gfn88sRZ1Bls7hiUhA2w7ne1gpJ9T5g3G0wOyA==}
dev: true dev: true
/@typescript-eslint/eslint-plugin/5.48.0_wxmz6cyorqfuzhhglktlvr5lve: /@typescript-eslint/eslint-plugin/5.48.0_vqm4js66qtp4h6afqe3btrngbi:
resolution: {integrity: sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==} resolution: {integrity: sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3625,23 +3546,23 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/parser': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
'@typescript-eslint/scope-manager': 5.48.0 '@typescript-eslint/scope-manager': 5.48.0
'@typescript-eslint/type-utils': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/type-utils': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
'@typescript-eslint/utils': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/utils': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
debug: 4.3.4 debug: 4.3.4
eslint: 8.31.0 eslint: 8.31.0
ignore: 5.2.0 ignore: 5.2.0
natural-compare-lite: 1.4.0 natural-compare-lite: 1.4.0
regexpp: 3.2.0 regexpp: 3.2.0
semver: 7.3.7 semver: 7.3.7
tsutils: 3.21.0_typescript@4.9.3 tsutils: 3.21.0_typescript@4.9.5
typescript: 4.9.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/parser/5.48.0_76twfck5d7crjqrmw4yltga7zm: /@typescript-eslint/parser/5.48.0_hp3n5f6hao4yyg55iy34n6oive:
resolution: {integrity: sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==} resolution: {integrity: sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3653,15 +3574,15 @@ packages:
dependencies: dependencies:
'@typescript-eslint/scope-manager': 5.48.0 '@typescript-eslint/scope-manager': 5.48.0
'@typescript-eslint/types': 5.48.0 '@typescript-eslint/types': 5.48.0
'@typescript-eslint/typescript-estree': 5.48.0_typescript@4.8.3 '@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.5
debug: 4.3.4 debug: 4.3.4
eslint: 8.22.0 eslint: 8.22.0
typescript: 4.8.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/parser/5.48.0_p4cjf2r47dnfiqufepc5hp43sq: /@typescript-eslint/parser/5.48.0_ifw3q4r6iq3gw7cspzs2siycvu:
resolution: {integrity: sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==} resolution: {integrity: sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3673,10 +3594,10 @@ packages:
dependencies: dependencies:
'@typescript-eslint/scope-manager': 5.48.0 '@typescript-eslint/scope-manager': 5.48.0
'@typescript-eslint/types': 5.48.0 '@typescript-eslint/types': 5.48.0
'@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.3 '@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.5
debug: 4.3.4 debug: 4.3.4
eslint: 8.31.0 eslint: 8.31.0
typescript: 4.9.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@@ -3689,7 +3610,7 @@ packages:
'@typescript-eslint/visitor-keys': 5.48.0 '@typescript-eslint/visitor-keys': 5.48.0
dev: true dev: true
/@typescript-eslint/type-utils/5.48.0_p4cjf2r47dnfiqufepc5hp43sq: /@typescript-eslint/type-utils/5.48.0_ifw3q4r6iq3gw7cspzs2siycvu:
resolution: {integrity: sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==} resolution: {integrity: sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3699,12 +3620,12 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.3 '@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.5
'@typescript-eslint/utils': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/utils': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
debug: 4.3.4 debug: 4.3.4
eslint: 8.31.0 eslint: 8.31.0
tsutils: 3.21.0_typescript@4.9.3 tsutils: 3.21.0_typescript@4.9.5
typescript: 4.9.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@@ -3714,7 +3635,7 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true dev: true
/@typescript-eslint/typescript-estree/5.48.0_typescript@4.8.3: /@typescript-eslint/typescript-estree/5.48.0_typescript@4.9.5:
resolution: {integrity: sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==} resolution: {integrity: sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3729,34 +3650,13 @@ packages:
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.3.7 semver: 7.3.7
tsutils: 3.21.0_typescript@4.8.3 tsutils: 3.21.0_typescript@4.9.5
typescript: 4.8.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/typescript-estree/5.48.0_typescript@4.9.3: /@typescript-eslint/utils/5.48.0_ifw3q4r6iq3gw7cspzs2siycvu:
resolution: {integrity: sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
'@typescript-eslint/types': 5.48.0
'@typescript-eslint/visitor-keys': 5.48.0
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
semver: 7.3.7
tsutils: 3.21.0_typescript@4.9.3
typescript: 4.9.3
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/utils/5.48.0_p4cjf2r47dnfiqufepc5hp43sq:
resolution: {integrity: sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==} resolution: {integrity: sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@@ -3766,7 +3666,7 @@ packages:
'@types/semver': 7.3.13 '@types/semver': 7.3.13
'@typescript-eslint/scope-manager': 5.48.0 '@typescript-eslint/scope-manager': 5.48.0
'@typescript-eslint/types': 5.48.0 '@typescript-eslint/types': 5.48.0
'@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.3 '@typescript-eslint/typescript-estree': 5.48.0_typescript@4.9.5
eslint: 8.31.0 eslint: 8.31.0
eslint-scope: 5.1.1 eslint-scope: 5.1.1
eslint-utils: 3.0.0_eslint@8.31.0 eslint-utils: 3.0.0_eslint@8.31.0
@@ -4061,7 +3961,6 @@ packages:
'@babel/runtime': 7.20.7 '@babel/runtime': 7.20.7
cosmiconfig: 7.0.1 cosmiconfig: 7.0.1
resolve: 1.22.1 resolve: 1.22.1
dev: false
/babel-plugin-polyfill-corejs2/0.3.3_@babel+core@7.20.5: /babel-plugin-polyfill-corejs2/0.3.3_@babel+core@7.20.5:
resolution: {integrity: sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==} resolution: {integrity: sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==}
@@ -4428,7 +4327,6 @@ packages:
parse-json: 5.2.0 parse-json: 5.2.0
path-type: 4.0.0 path-type: 4.0.0
yaml: 1.10.2 yaml: 1.10.2
dev: false
/create-require/1.1.1: /create-require/1.1.1:
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
@@ -4835,7 +4733,7 @@ packages:
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'} engines: {node: '>=10'}
/eslint-config-next/12.3.1_76twfck5d7crjqrmw4yltga7zm: /eslint-config-next/12.3.1_hp3n5f6hao4yyg55iy34n6oive:
resolution: {integrity: sha512-EN/xwKPU6jz1G0Qi6Bd/BqMnHLyRAL0VsaQaWA7F3KkjAgZHi4f1uL1JKGWNxdQpHTW/sdGONBd0bzxUka/DJg==} resolution: {integrity: sha512-EN/xwKPU6jz1G0Qi6Bd/BqMnHLyRAL0VsaQaWA7F3KkjAgZHi4f1uL1JKGWNxdQpHTW/sdGONBd0bzxUka/DJg==}
peerDependencies: peerDependencies:
eslint: ^7.23.0 || ^8.0.0 eslint: ^7.23.0 || ^8.0.0
@@ -4846,7 +4744,7 @@ packages:
dependencies: dependencies:
'@next/eslint-plugin-next': 12.3.1 '@next/eslint-plugin-next': 12.3.1
'@rushstack/eslint-patch': 1.2.0 '@rushstack/eslint-patch': 1.2.0
'@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zm '@typescript-eslint/parser': 5.48.0_hp3n5f6hao4yyg55iy34n6oive
eslint: 8.22.0 eslint: 8.22.0
eslint-import-resolver-node: 0.3.6 eslint-import-resolver-node: 0.3.6
eslint-import-resolver-typescript: 2.7.1_2iahngt3u2tkbdlu6s4gkur3pu eslint-import-resolver-typescript: 2.7.1_2iahngt3u2tkbdlu6s4gkur3pu
@@ -4854,13 +4752,13 @@ packages:
eslint-plugin-jsx-a11y: 6.6.1_eslint@8.22.0 eslint-plugin-jsx-a11y: 6.6.1_eslint@8.22.0
eslint-plugin-react: 7.31.8_eslint@8.22.0 eslint-plugin-react: 7.31.8_eslint@8.22.0
eslint-plugin-react-hooks: 4.6.0_eslint@8.22.0 eslint-plugin-react-hooks: 4.6.0_eslint@8.22.0
typescript: 4.8.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- eslint-import-resolver-webpack - eslint-import-resolver-webpack
- supports-color - supports-color
dev: true dev: true
/eslint-config-next/12.3.1_p4cjf2r47dnfiqufepc5hp43sq: /eslint-config-next/12.3.1_ifw3q4r6iq3gw7cspzs2siycvu:
resolution: {integrity: sha512-EN/xwKPU6jz1G0Qi6Bd/BqMnHLyRAL0VsaQaWA7F3KkjAgZHi4f1uL1JKGWNxdQpHTW/sdGONBd0bzxUka/DJg==} resolution: {integrity: sha512-EN/xwKPU6jz1G0Qi6Bd/BqMnHLyRAL0VsaQaWA7F3KkjAgZHi4f1uL1JKGWNxdQpHTW/sdGONBd0bzxUka/DJg==}
peerDependencies: peerDependencies:
eslint: ^7.23.0 || ^8.0.0 eslint: ^7.23.0 || ^8.0.0
@@ -4871,7 +4769,7 @@ packages:
dependencies: dependencies:
'@next/eslint-plugin-next': 12.3.1 '@next/eslint-plugin-next': 12.3.1
'@rushstack/eslint-patch': 1.2.0 '@rushstack/eslint-patch': 1.2.0
'@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/parser': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
eslint: 8.31.0 eslint: 8.31.0
eslint-import-resolver-node: 0.3.6 eslint-import-resolver-node: 0.3.6
eslint-import-resolver-typescript: 2.7.1_ol7jqilc3wemtdbq3nzhywgxq4 eslint-import-resolver-typescript: 2.7.1_ol7jqilc3wemtdbq3nzhywgxq4
@@ -4879,7 +4777,7 @@ packages:
eslint-plugin-jsx-a11y: 6.6.1_eslint@8.31.0 eslint-plugin-jsx-a11y: 6.6.1_eslint@8.31.0
eslint-plugin-react: 7.31.8_eslint@8.31.0 eslint-plugin-react: 7.31.8_eslint@8.31.0
eslint-plugin-react-hooks: 4.6.0_eslint@8.31.0 eslint-plugin-react-hooks: 4.6.0_eslint@8.31.0
typescript: 4.9.3 typescript: 4.9.5
transitivePeerDependencies: transitivePeerDependencies:
- eslint-import-resolver-webpack - eslint-import-resolver-webpack
- supports-color - supports-color
@@ -4969,7 +4867,7 @@ packages:
eslint-import-resolver-webpack: eslint-import-resolver-webpack:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/parser': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
debug: 3.2.7 debug: 3.2.7
eslint: 8.31.0 eslint: 8.31.0
eslint-import-resolver-node: 0.3.6 eslint-import-resolver-node: 0.3.6
@@ -4999,7 +4897,7 @@ packages:
eslint-import-resolver-webpack: eslint-import-resolver-webpack:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zm '@typescript-eslint/parser': 5.48.0_hp3n5f6hao4yyg55iy34n6oive
debug: 3.2.7 debug: 3.2.7
eslint: 8.22.0 eslint: 8.22.0
eslint-import-resolver-node: 0.3.6 eslint-import-resolver-node: 0.3.6
@@ -5018,7 +4916,7 @@ packages:
'@typescript-eslint/parser': '@typescript-eslint/parser':
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq '@typescript-eslint/parser': 5.48.0_ifw3q4r6iq3gw7cspzs2siycvu
array-includes: 3.1.5 array-includes: 3.1.5
array.prototype.flat: 1.3.0 array.prototype.flat: 1.3.0
debug: 2.6.9 debug: 2.6.9
@@ -5049,7 +4947,7 @@ packages:
'@typescript-eslint/parser': '@typescript-eslint/parser':
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zm '@typescript-eslint/parser': 5.48.0_hp3n5f6hao4yyg55iy34n6oive
array-includes: 3.1.5 array-includes: 3.1.5
array.prototype.flat: 1.3.0 array.prototype.flat: 1.3.0
debug: 2.6.9 debug: 2.6.9
@@ -5531,7 +5429,6 @@ packages:
/find-root/1.1.0: /find-root/1.1.0:
resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==}
dev: false
/find-up/4.1.0: /find-up/4.1.0:
resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
@@ -5631,8 +5528,8 @@ packages:
fetch-blob: 3.2.0 fetch-blob: 3.2.0
dev: false dev: false
/fractional-indexing/3.1.0: /fractional-indexing/3.2.0:
resolution: {integrity: sha512-j5mtGgQxuEH6pI8n1N9xmAamb9WRwc5JcLYXidKc6IQ6HP8WvGePHxuilhAogglGA6qeafgFiXslVn4yAtNHsQ==} resolution: {integrity: sha512-PcOxmqwYCW7O2ovKRU8OoQQj2yqTfEB/yeTYk4gPid6dN5ODRfU1hXd9tTVZzax/0NkO7AxpHykvZnT1aYp/BQ==}
engines: {node: ^14.13.1 || >=16.0.0} engines: {node: ^14.13.1 || >=16.0.0}
dev: false dev: false
@@ -6582,13 +6479,13 @@ packages:
engines: {node: '>=14'} engines: {node: '>=14'}
dependencies: dependencies:
isomorphic.js: 0.2.5 isomorphic.js: 0.2.5
dev: false
/lib0/0.2.60: /lib0/0.2.61:
resolution: {integrity: sha512-vzhtdUXBV8HyJnJWIZxUSH/aUVo1U4jUFRFDPVY245zFtzCl9Gld/EgvA8Jhnrio7Jn0HmGswErbPjsabYd7ow==} resolution: {integrity: sha512-yVhT0uMXNWk50KqBgsZPxmcoO7Yft341wDTByKjXIzBpkhUjEzXl/M9b/GfqyDFBdiLCGg19Cv26NHUEnbL1pA==}
engines: {node: '>=14'} engines: {node: '>=14'}
dependencies: dependencies:
isomorphic.js: 0.2.5 isomorphic.js: 0.2.5
dev: false
/lilconfig/2.0.6: /lilconfig/2.0.6:
resolution: {integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==} resolution: {integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==}
@@ -6643,35 +6540,13 @@ packages:
/lit-element/3.2.2: /lit-element/3.2.2:
resolution: {integrity: sha512-6ZgxBR9KNroqKb6+htkyBwD90XGRiqKDHVrW/Eh0EZ+l+iC+u+v+w3/BA5NGi4nizAVHGYvQBHUDuSmLjPp7NQ==} resolution: {integrity: sha512-6ZgxBR9KNroqKb6+htkyBwD90XGRiqKDHVrW/Eh0EZ+l+iC+u+v+w3/BA5NGi4nizAVHGYvQBHUDuSmLjPp7NQ==}
dependencies: dependencies:
'@lit/reactive-element': 1.5.0 '@lit/reactive-element': 1.6.1
lit-html: 2.5.0 lit-html: 2.6.1
dev: false
/lit-html/2.4.0:
resolution: {integrity: sha512-G6qXu4JNUpY6aaF2VMfaszhO9hlWw0hOTRFDmuMheg/nDYGB+2RztUSOyrzALAbr8Nh0Y7qjhYkReh3rPnplVg==}
dependencies:
'@types/trusted-types': 2.0.2
dev: false
/lit-html/2.5.0:
resolution: {integrity: sha512-bLHosg1XL3JRUcKdSVI0sLCs0y1wWrj2sqqAN3cZ7bDDPNgmDHH29RV48x6Wz3ZmkxIupaE+z7uXSZ/pXWAO1g==}
dependencies:
'@types/trusted-types': 2.0.2
dev: false
/lit-html/2.6.1: /lit-html/2.6.1:
resolution: {integrity: sha512-Z3iw+E+3KKFn9t2YKNjsXNEu/LRLI98mtH/C6lnFg7kvaqPIzPn124Yd4eT/43lyqrejpc5Wb6BHq3fdv4S8Rw==} resolution: {integrity: sha512-Z3iw+E+3KKFn9t2YKNjsXNEu/LRLI98mtH/C6lnFg7kvaqPIzPn124Yd4eT/43lyqrejpc5Wb6BHq3fdv4S8Rw==}
dependencies: dependencies:
'@types/trusted-types': 2.0.2 '@types/trusted-types': 2.0.2
dev: false
/lit/2.4.0:
resolution: {integrity: sha512-fdgzxEtLrZFQU/BqTtxFQCLwlZd9bdat+ltzSFjvWkZrs7eBmeX0L5MHUMb3kYIkuS8Xlfnii/iI5klirF8/Xg==}
dependencies:
'@lit/reactive-element': 1.4.1
lit-element: 3.2.2
lit-html: 2.4.0
dev: false
/lit/2.6.1: /lit/2.6.1:
resolution: {integrity: sha512-DT87LD64f8acR7uVp7kZfhLRrHkfC/N4BVzAtnw9Yg8087mbBJ//qedwdwX0kzDbxgPccWRW6mFwGbRQIxy0pw==} resolution: {integrity: sha512-DT87LD64f8acR7uVp7kZfhLRrHkfC/N4BVzAtnw9Yg8087mbBJ//qedwdwX0kzDbxgPccWRW6mFwGbRQIxy0pw==}
@@ -6679,7 +6554,6 @@ packages:
'@lit/reactive-element': 1.6.1 '@lit/reactive-element': 1.6.1
lit-element: 3.2.2 lit-element: 3.2.2
lit-html: 2.6.1 lit-html: 2.6.1
dev: false
/load-yaml-file/0.2.0: /load-yaml-file/0.2.0:
resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==}
@@ -6938,8 +6812,8 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true hasBin: true
/nanoid/4.0.0: /nanoid/4.0.1:
resolution: {integrity: sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==} resolution: {integrity: sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==}
engines: {node: ^14 || ^16 || >=18} engines: {node: ^14 || ^16 || >=18}
hasBin: true hasBin: true
dev: false dev: false
@@ -8168,7 +8042,6 @@ packages:
/source-map/0.5.7: /source-map/0.5.7:
resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
dev: false
/source-map/0.6.1: /source-map/0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
@@ -8426,7 +8299,6 @@ packages:
/stylis/4.1.3: /stylis/4.1.3:
resolution: {integrity: sha512-GP6WDNWf+o403jrEp9c5jibKavrtLW+/qYGhFxFrG8maXhwTBI7gLLhiBb0o7uFccWN+EOS9aMO6cGHWAO07OA==} resolution: {integrity: sha512-GP6WDNWf+o403jrEp9c5jibKavrtLW+/qYGhFxFrG8maXhwTBI7gLLhiBb0o7uFccWN+EOS9aMO6cGHWAO07OA==}
dev: false
/supports-color/5.5.0: /supports-color/5.5.0:
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
@@ -8578,7 +8450,7 @@ packages:
engines: {node: '>=8'} engines: {node: '>=8'}
dev: true dev: true
/ts-node/10.9.1_typescript@4.9.3: /ts-node/10.9.1_typescript@4.9.5:
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@@ -8603,7 +8475,7 @@ packages:
create-require: 1.1.1 create-require: 1.1.1
diff: 4.0.2 diff: 4.0.2
make-error: 1.3.6 make-error: 1.3.6
typescript: 4.9.3 typescript: 4.9.5
v8-compile-cache-lib: 3.0.1 v8-compile-cache-lib: 3.0.1
yn: 3.1.1 yn: 3.1.1
dev: true dev: true
@@ -8624,24 +8496,14 @@ packages:
/tslib/2.4.0: /tslib/2.4.0:
resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==}
/tsutils/3.21.0_typescript@4.8.3: /tsutils/3.21.0_typescript@4.9.5:
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
peerDependencies: peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies: dependencies:
tslib: 1.14.1 tslib: 1.14.1
typescript: 4.8.3 typescript: 4.9.5
dev: true
/tsutils/3.21.0_typescript@4.9.3:
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}
peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies:
tslib: 1.14.1
typescript: 4.9.3
dev: true dev: true
/tty-table/4.1.6: /tty-table/4.1.6:
@@ -8715,20 +8577,8 @@ packages:
is-typedarray: 1.0.0 is-typedarray: 1.0.0
dev: true dev: true
/typescript/4.8.3: /typescript/4.9.5:
resolution: {integrity: sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==} resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
/typescript/4.8.4:
resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
/typescript/4.9.3:
resolution: {integrity: sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==}
engines: {node: '>=4.2.0'} engines: {node: '>=4.2.0'}
hasBin: true hasBin: true
dev: true dev: true
@@ -9240,7 +9090,7 @@ packages:
engines: {node: '>=12'} engines: {node: '>=12'}
hasBin: true hasBin: true
dependencies: dependencies:
lib0: 0.2.60 lib0: 0.2.61
simple-peer: 9.11.1 simple-peer: 9.11.1
y-protocols: 1.0.5 y-protocols: 1.0.5
optionalDependencies: optionalDependencies:
@@ -9274,7 +9124,6 @@ packages:
/yaml/1.10.2: /yaml/1.10.2:
resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
dev: false
/yaml/2.2.1: /yaml/2.2.1:
resolution: {integrity: sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==} resolution: {integrity: sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==}
@@ -9342,10 +9191,10 @@ packages:
yargs-parser: 21.1.1 yargs-parser: 21.1.1
dev: true dev: true
/yjs/13.5.44: /yjs/13.5.45:
resolution: {integrity: sha512-UL+abIh2lQonqXfaJ+en7z9eGshpY11j1zNLc2kDYs0vrTjee4gZJUXC3ZsuhP6geQt0IRU04epCGRaVPQAVCA==} resolution: {integrity: sha512-9VUNDvb9oJHdYSMdzIpdM/agVm+EEFKRN+843CFqQuq5bo/BP3EAaxofRG9jQut3sqtGQT4A9YdQvOeeAjU6aA==}
dependencies: dependencies:
lib0: 0.2.58 lib0: 0.2.61
/yn/3.1.1: /yn/3.1.1:
resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==}

View File

@@ -1,2 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pnpm up "@blocksuite/*" "!@blocksuite/icons" -r -i # Usage:
# ./scripts/upgrade-blocksuite.sh
# ./scripts/upgrade-blocksuite.sh --latest
pnpm up "@blocksuite/*" "!@blocksuite/icons" -r -i "$@"

View File

@@ -8,8 +8,7 @@ loadPage();
test.describe('exception page', () => { test.describe('exception page', () => {
test('visit 404 page', async ({ page }) => { test('visit 404 page', async ({ page }) => {
await page.goto('http://localhost:8080/404'); await page.goto('http://localhost:8080/404');
await page.waitForTimeout(1000); const notFoundTip = page.locator('[data-testid=notFound]');
const notFoundTip = page.getByText('404 - Page Not Found'); await expect(notFoundTip).toBeVisible();
expect(await notFoundTip.isVisible()).toBe(true);
}); });
}); });

View File

@@ -0,0 +1,24 @@
import type { Page } from '@playwright/test';
interface CreateWorkspaceParams {
name: string;
}
export async function createWorkspace(
params: CreateWorkspaceParams,
page: Page
) {
// open workspace list modal
const workspaceName = page.getByTestId('workspace-name');
await workspaceName.click();
// open create workspace modal
await page.locator('.add-icon').click();
// input workspace name
await page.getByPlaceholder('Set a Workspace name').click();
await page.getByPlaceholder('Set a Workspace name').fill(params.name);
// click create button
await page.getByRole('button', { name: 'Create' }).click();
return page.waitForTimeout(300);
}

View File

@@ -0,0 +1,40 @@
import { expect } from '@playwright/test';
import { test } from './libs/playwright.js';
import { loadPage } from './libs/load-page.js';
import { createWorkspace } from './libs/workspace-logic.js';
loadPage();
test.describe('Local first workspace list', () => {
test('just one item in the workspace list at first', async ({ page }) => {
const workspaceName = page.getByTestId('workspace-name');
await workspaceName.click();
expect(
page
.locator('div')
.filter({ hasText: 'AFFiNE TestLocal WorkspaceAvailable Offline' })
.nth(3)
).not.toBeNull();
});
test.skip('create one workspace in the workspace list', async ({ page }) => {
const newWorkspaceNameStr = 'New Workspace';
await createWorkspace({ name: newWorkspaceNameStr }, page);
// check new workspace name
const newWorkspaceName = page.getByTestId('workspace-name');
expect(await newWorkspaceName.textContent()).toBe(newWorkspaceNameStr);
});
test('create multi workspace in the workspace list', async ({ page }) => {
await createWorkspace({ name: 'New Workspace 2' }, page);
await createWorkspace({ name: 'New Workspace 3' }, page);
// show workspace list
const workspaceName = page.getByTestId('workspace-name');
await workspaceName.click();
//check workspace list length
const workspaceCards = await page.$$('data-testid=workspace-card');
expect(workspaceCards.length).toBe(3);
});
});

View File

@@ -5,15 +5,15 @@ import { loadPage } from './libs/load-page.js';
loadPage(); loadPage();
test.describe('Local first default workspace', () => { test.describe('Local first default workspace', () => {
test.skip('Default workspace name', async ({ page }) => { test('preset workspace name', async ({ page }) => {
const workspaceName = page.getByTestId('workspace-name'); const workspaceName = page.getByTestId('workspace-name');
expect(await workspaceName.textContent()).toBe('AFFiNE'); expect(await workspaceName.textContent()).toBe('AFFiNE Test');
}); });
test.skip('Default workspace avatar', async ({ page }) => { test('default workspace avatar', async ({ page }) => {
const workspaceAvatar = page.getByTestId('workspace-avatar'); const workspaceAvatar = page.getByTestId('workspace-avatar');
expect(await workspaceAvatar.innerHTML()).toBe( expect(
'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="39" height="39" rx="19.5" stroke="#6880FF" fill="#FFF"></rect><path fillRule="evenodd" clipRule="evenodd" d="M18.6303 8.79688L11.2559 29.8393H15.5752L20.2661 15.2858L24.959 29.8393H29.2637L21.8881 8.79688H18.6303Z" fill="#6880FF"></path></svg>' await workspaceAvatar.locator('img').getAttribute('src')
); ).not.toBeNull();
}); });
}); });

View File

@@ -8,14 +8,19 @@ loadPage();
const openQuickSearchByShortcut = async (page: Page) => const openQuickSearchByShortcut = async (page: Page) =>
await withCtrlOrMeta(page, () => page.keyboard.press('k', { delay: 50 })); await withCtrlOrMeta(page, () => page.keyboard.press('k', { delay: 50 }));
async function assertTitleTexts(page: Page, texts: string) { async function assertTitleTexts(page: Page, texts: string, isSearch?: boolean) {
const actual = await page.evaluate(() => { if (isSearch) {
const titleElement = <HTMLTextAreaElement>( const actual = await page.evaluate(() => {
document.querySelector('.affine-default-page-block-title') const titleElement = <HTMLTextAreaElement>(
); document.querySelector('.affine-default-page-block-title')
return titleElement.value; );
}); return titleElement.value;
expect(actual).toEqual(texts); });
expect(actual).toEqual(texts);
} else {
const actual = await page.title();
expect(actual).toEqual(texts);
}
} }
async function assertResultList(page: Page, texts: string[]) { async function assertResultList(page: Page, texts: string[]) {
const actual = await page.locator('[cmdk-item]').allInnerTexts(); const actual = await page.locator('[cmdk-item]').allInnerTexts();
@@ -52,14 +57,13 @@ test.describe('Open quick search', () => {
}); });
test.describe('Add new page in quick search', () => { test.describe('Add new page in quick search', () => {
// FIXME: not working
test('Create a new page without keyword', async ({ page }) => { test('Create a new page without keyword', async ({ page }) => {
await newPage(page); await newPage(page);
await openQuickSearchByShortcut(page); await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]'); const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]');
await addNewPage.click(); await addNewPage.click();
await page.waitForTimeout(200); await page.waitForTimeout(300);
await assertTitleTexts(page, ''); await assertTitleTexts(page, 'Untitled');
}); });
test('Create a new page with keyword', async ({ page }) => { test('Create a new page with keyword', async ({ page }) => {
@@ -68,7 +72,7 @@ test.describe('Add new page in quick search', () => {
await page.keyboard.insertText('test123456'); await page.keyboard.insertText('test123456');
const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]'); const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]');
await addNewPage.click(); await addNewPage.click();
await page.waitForTimeout(200); await page.waitForTimeout(300);
await assertTitleTexts(page, 'test123456'); await assertTitleTexts(page, 'test123456');
}); });
}); });
@@ -80,11 +84,13 @@ test.describe('Search and select', () => {
await page.keyboard.insertText('test123456'); await page.keyboard.insertText('test123456');
const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]'); const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]');
await addNewPage.click(); await addNewPage.click();
await page.waitForTimeout(200); await page.waitForTimeout(300);
await assertTitleTexts(page, 'test123456');
await openQuickSearchByShortcut(page); await openQuickSearchByShortcut(page);
await page.keyboard.insertText('test123456'); await page.keyboard.insertText('test123456');
await assertResultList(page, ['test123456']); await assertResultList(page, ['test123456']);
await page.keyboard.press('Enter', { delay: 50 }); await page.keyboard.press('Enter');
await assertTitleTexts(page, 'test123456'); await page.waitForTimeout(300);
await assertTitleTexts(page, 'test123456', true);
}); });
}); });

View File

@@ -17,7 +17,10 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"],
"@affine/datacenter": ["packages/datacenter/src"],
"@affine/i18n": ["packages/i18n/src"],
"@affine/logger": ["packages/logger/src"]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],