mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 07:17:00 +08:00
chore: bump BlockSuite version (#910)
Co-authored-by: QiShaoXuan <qishaoxuan777@gmail.com> Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com> Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
@@ -77,5 +77,10 @@
|
|||||||
"**/__tests__/**",
|
"**/__tests__/**",
|
||||||
"**/tests/**"
|
"**/tests/**"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"patchedDependencies": {
|
||||||
|
"next@13.1.0": "patches/next@13.1.0.patch"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
"@affine/component": "workspace:*",
|
"@affine/component": "workspace:*",
|
||||||
"@affine/datacenter": "workspace:*",
|
"@affine/datacenter": "workspace:*",
|
||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@blocksuite/blocks": "0.4.0-alpha.2",
|
"@blocksuite/blocks": "0.4.0-alpha.3",
|
||||||
"@blocksuite/editor": "0.4.0-alpha.2",
|
"@blocksuite/editor": "0.4.0-alpha.3",
|
||||||
"@blocksuite/icons": "^2.0.2",
|
"@blocksuite/icons": "^2.0.2",
|
||||||
"@blocksuite/store": "0.4.0-alpha.2",
|
"@blocksuite/store": "0.4.0-alpha.3",
|
||||||
"@emotion/css": "^11.10.5",
|
"@emotion/css": "^11.10.5",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.5",
|
||||||
"@emotion/server": "^11.10.0",
|
"@emotion/server": "^11.10.0",
|
||||||
|
|||||||
@@ -22,15 +22,26 @@ export const Editor = ({ page, workspace, setEditor }: Props) => {
|
|||||||
const editorContainer = useRef<HTMLDivElement>(null);
|
const editorContainer = useRef<HTMLDivElement>(null);
|
||||||
// const { currentWorkspace, currentPage, setEditor } = useAppState();
|
// const { currentWorkspace, currentPage, setEditor } = useAppState();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
let blockHubElement: HTMLElement | null = null;
|
||||||
const ret = () => {
|
const ret = () => {
|
||||||
const node = editorContainer.current;
|
const node = editorContainer.current;
|
||||||
while (node?.firstChild) {
|
while (node?.firstChild) {
|
||||||
node.removeChild(node.firstChild);
|
node.removeChild(node.firstChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockHubElement?.remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
const editor = new EditorContainer();
|
const editor = new EditorContainer();
|
||||||
editor.page = page;
|
editor.page = page;
|
||||||
|
editor.createBlockHub().then(blockHub => {
|
||||||
|
const toolWrapper = document.querySelector('#toolWrapper');
|
||||||
|
if (!toolWrapper) {
|
||||||
|
throw new Error('Can not find toolWrapper');
|
||||||
|
}
|
||||||
|
blockHubElement = blockHub;
|
||||||
|
toolWrapper.appendChild(blockHub);
|
||||||
|
});
|
||||||
editorContainer.current?.appendChild(editor);
|
editorContainer.current?.appendChild(editor);
|
||||||
if (page.isEmpty) {
|
if (page.isEmpty) {
|
||||||
const isFirstPage = workspace?.meta.pageMetas.length === 1;
|
const isFirstPage = workspace?.meta.pageMetas.length === 1;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
export const HelpIcon = () => {
|
export const HelpIcon = () => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
width="24"
|
width="24"
|
||||||
height="24"
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
fillRule="evenodd"
|
fillRule="evenodd"
|
||||||
d="M12 3.8a8.2 8.2 0 1 0 0 16.4 8.2 8.2 0 0 0 0-16.4ZM2.2 12c0-5.412 4.388-9.8 9.8-9.8 5.412 0 9.8 4.388 9.8 9.8 0 5.412-4.388 9.8-9.8 9.8-5.412 0-9.8-4.388-9.8-9.8Zm9.978-3.18a1.448 1.448 0 0 0-1.61.948.8.8 0 1 1-1.51-.531 3.048 3.048 0 0 1 5.924 1.015c0 1.174-.87 1.945-1.48 2.351a6.082 6.082 0 0 1-1.275.642l-.027.01-.008.002-.003.001h-.002l-.254-.758.253.759a.8.8 0 0 1-.507-1.518h.001l.01-.004.055-.02a4.488 4.488 0 0 0 .869-.445c.513-.342.768-.696.768-1.02v-.002a1.449 1.449 0 0 0-1.204-1.43Zm-1.017 6.68a.8.8 0 0 1 .8-.8h.01a.8.8 0 1 1 0 1.6h-.01a.8.8 0 0 1-.8-.8Z"
|
|
||||||
clipRule="evenodd"
|
clipRule="evenodd"
|
||||||
|
d="M12.0041 3.8002C7.47536 3.8002 3.8041 7.47146 3.8041 12.0002C3.8041 13.311 4.1111 14.5479 4.65639 15.6449C4.92133 16.1779 4.91348 16.8471 4.85228 17.3998C4.7869 17.9901 4.63749 18.6238 4.47572 19.1908C4.3722 19.5537 4.26086 19.8987 4.1573 20.2002H12.0041C16.5328 20.2002 20.2041 16.5289 20.2041 12.0002C20.2041 7.47146 16.5328 3.8002 12.0041 3.8002ZM2.26631 20.6926L2.2668 20.6914L2.26948 20.685L2.28104 20.6567C2.29139 20.6312 2.30687 20.5928 2.32657 20.5429C2.36599 20.4431 2.42218 20.2979 2.48795 20.1192C2.61992 19.7607 2.78833 19.2734 2.93712 18.7519C3.08715 18.226 3.21054 17.6884 3.262 17.2236C3.31765 16.7212 3.2707 16.4518 3.22364 16.3571C2.57081 15.0438 2.2041 13.5637 2.2041 12.0002C2.2041 6.58781 6.59171 2.2002 12.0041 2.2002C17.4165 2.2002 21.8041 6.5878 21.8041 12.0002C21.8041 17.4126 17.4165 21.8002 12.0041 21.8002H3.0049C2.73745 21.8002 2.4876 21.6665 2.33922 21.444C2.19087 21.2215 2.16356 20.9395 2.26631 20.6926ZM11.9672 9.0502C11.4091 9.0502 10.9382 9.43186 10.8049 9.9496C10.6948 10.3775 10.2587 10.6351 9.83079 10.5249C9.40291 10.4148 9.14532 9.97867 9.25545 9.55079C9.56623 8.3433 10.6614 7.4502 11.9672 7.4502C13.5136 7.4502 14.7672 8.7038 14.7672 10.2502C14.7672 11.1058 14.3536 11.6751 13.8978 12.115C13.7108 12.2955 13.4978 12.4721 13.2997 12.6362C13.2705 12.6604 13.2416 12.6844 13.2132 12.7081C12.982 12.9004 12.7556 13.0932 12.5329 13.3159C12.2205 13.6283 11.7139 13.6283 11.4015 13.3159C11.0891 13.0035 11.0891 12.4969 11.4015 12.1845C11.6788 11.9072 11.9525 11.6756 12.19 11.478C12.2213 11.4519 12.2517 11.4267 12.2812 11.4022C12.4849 11.2332 12.6465 11.0991 12.7866 10.9638C13.0808 10.6799 13.1672 10.4992 13.1672 10.2502C13.1672 9.58745 12.6299 9.0502 11.9672 9.0502ZM11.9772 16.5502H11.9672C11.5254 16.5502 11.1672 16.192 11.1672 15.7502C11.1672 15.3084 11.5254 14.9502 11.9672 14.9502H11.9772C12.419 14.9502 12.7772 15.3084 12.7772 15.7502C12.7772 16.192 12.419 16.5502 11.9772 16.5502Z"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,85 +2,71 @@ import { useState } from 'react';
|
|||||||
import {
|
import {
|
||||||
StyledIsland,
|
StyledIsland,
|
||||||
StyledIconWrapper,
|
StyledIconWrapper,
|
||||||
StyledIslandWrapper,
|
StyledAnimateWrapper,
|
||||||
StyledTransformIcon,
|
StyledTriggerWrapper,
|
||||||
} from './style';
|
} from './style';
|
||||||
import { CloseIcon, ContactIcon, HelpIcon, KeyboardIcon } from './Icons';
|
import { CloseIcon, ContactIcon, HelpIcon, KeyboardIcon } from './Icons';
|
||||||
import { MuiGrow } from '@affine/component';
|
|
||||||
import { Tooltip } from '@affine/component';
|
import { Tooltip } from '@affine/component';
|
||||||
|
|
||||||
import { useTranslation } from '@affine/i18n';
|
import { useTranslation } from '@affine/i18n';
|
||||||
import { useModal } from '@/providers/GlobalModalProvider';
|
import { useModal } from '@/providers/GlobalModalProvider';
|
||||||
import { useTheme } from '@/providers/ThemeProvider';
|
import { MuiFade } from '@affine/component';
|
||||||
import useCurrentPageMeta from '@/hooks/use-current-page-meta';
|
|
||||||
export type IslandItemNames = 'contact' | 'shortcuts';
|
export type IslandItemNames = 'contact' | 'shortcuts';
|
||||||
export const HelpIsland = ({
|
export const HelpIsland = ({
|
||||||
showList = ['contact', 'shortcuts'],
|
showList = ['contact', 'shortcuts'],
|
||||||
}: {
|
}: {
|
||||||
showList?: IslandItemNames[];
|
showList?: IslandItemNames[];
|
||||||
}) => {
|
}) => {
|
||||||
const [showContent, setShowContent] = useState(false);
|
const [spread, setShowSpread] = useState(false);
|
||||||
const { mode } = useTheme();
|
|
||||||
const { mode: editorMode } = useCurrentPageMeta() || {};
|
|
||||||
const { triggerShortcutsModal, triggerContactModal } = useModal();
|
const { triggerShortcutsModal, triggerContactModal } = useModal();
|
||||||
const isEdgelessDark = mode === 'dark' && editorMode === 'edgeless';
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<>
|
<StyledIsland
|
||||||
<StyledIsland
|
spread={spread}
|
||||||
className=""
|
onClick={() => {
|
||||||
onMouseEnter={() => {
|
setShowSpread(!spread);
|
||||||
setShowContent(true);
|
}}
|
||||||
}}
|
>
|
||||||
onMouseLeave={() => {
|
<StyledAnimateWrapper spread={spread}>
|
||||||
setShowContent(false);
|
{showList.includes('contact') && (
|
||||||
}}
|
<Tooltip content={t('Contact Us')} placement="left-end">
|
||||||
>
|
<StyledIconWrapper
|
||||||
<MuiGrow in={showContent}>
|
data-testid="right-bottom-contact-us-icon"
|
||||||
<StyledIslandWrapper>
|
onClick={() => {
|
||||||
{showList.includes('contact') && (
|
setShowSpread(false);
|
||||||
<Tooltip content={t('Contact Us')} placement="left-end">
|
triggerContactModal();
|
||||||
<StyledIconWrapper
|
}}
|
||||||
data-testid="right-bottom-contact-us-icon"
|
>
|
||||||
isEdgelessDark={isEdgelessDark}
|
<ContactIcon />
|
||||||
onClick={() => {
|
</StyledIconWrapper>
|
||||||
setShowContent(false);
|
</Tooltip>
|
||||||
triggerContactModal();
|
)}
|
||||||
}}
|
{showList.includes('shortcuts') && (
|
||||||
>
|
<Tooltip content={t('Keyboard Shortcuts')} placement="left-end">
|
||||||
<ContactIcon />
|
<StyledIconWrapper
|
||||||
</StyledIconWrapper>
|
data-testid="shortcuts-icon"
|
||||||
</Tooltip>
|
onClick={() => {
|
||||||
)}
|
setShowSpread(false);
|
||||||
{showList.includes('shortcuts') && (
|
triggerShortcutsModal();
|
||||||
<Tooltip content={t('Keyboard Shortcuts')} placement="left-end">
|
}}
|
||||||
<StyledIconWrapper
|
>
|
||||||
data-testid="shortcuts-icon"
|
<KeyboardIcon />
|
||||||
isEdgelessDark={isEdgelessDark}
|
</StyledIconWrapper>
|
||||||
onClick={() => {
|
</Tooltip>
|
||||||
setShowContent(false);
|
)}
|
||||||
triggerShortcutsModal();
|
</StyledAnimateWrapper>
|
||||||
}}
|
|
||||||
>
|
|
||||||
<KeyboardIcon />
|
|
||||||
</StyledIconWrapper>
|
|
||||||
</Tooltip>
|
|
||||||
)}
|
|
||||||
</StyledIslandWrapper>
|
|
||||||
</MuiGrow>
|
|
||||||
|
|
||||||
<div style={{ position: 'relative' }}>
|
<MuiFade in={!spread} data-testid="faq-icon">
|
||||||
<StyledIconWrapper
|
<StyledTriggerWrapper>
|
||||||
isEdgelessDark={isEdgelessDark}
|
<HelpIcon />
|
||||||
data-testid="faq-icon"
|
</StyledTriggerWrapper>
|
||||||
>
|
</MuiFade>
|
||||||
<HelpIcon />
|
<MuiFade in={spread}>
|
||||||
</StyledIconWrapper>
|
<StyledTriggerWrapper>
|
||||||
<StyledTransformIcon in={showContent}>
|
<CloseIcon />
|
||||||
<CloseIcon />
|
</StyledTriggerWrapper>
|
||||||
</StyledTransformIcon>
|
</MuiFade>
|
||||||
</div>
|
</StyledIsland>
|
||||||
</StyledIsland>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,71 +1,77 @@
|
|||||||
import { displayFlex, styled } from '@affine/component';
|
import { displayFlex, positionAbsolute, styled } from '@affine/component';
|
||||||
|
|
||||||
export const StyledIsland = styled('div')(({ theme }) => {
|
export const StyledIsland = styled('div')<{
|
||||||
|
spread: boolean;
|
||||||
|
}>(({ theme, spread }) => {
|
||||||
return {
|
return {
|
||||||
width: '32px',
|
transition: 'box-shadow 0.2s',
|
||||||
height: '32px',
|
width: '44px',
|
||||||
color: theme.colors.iconColor,
|
position: 'relative',
|
||||||
position: 'fixed',
|
boxShadow: spread
|
||||||
right: '30px',
|
? '4px 4px 7px rgba(58, 76, 92, 0.04), -4px -4px 13px rgba(58, 76, 92, 0.02), 6px 6px 36px rgba(58, 76, 92, 0.06)'
|
||||||
bottom: '30px',
|
: 'unset',
|
||||||
borderRadius: '50%',
|
padding: '0 4px 44px',
|
||||||
zIndex: theme.zIndex.popover,
|
borderRadius: '10px',
|
||||||
};
|
backgroundColor: theme.colors.pageBackground,
|
||||||
});
|
|
||||||
export const StyledTransformIcon = styled('div', {
|
|
||||||
shouldForwardProp: prop => prop !== 'in',
|
|
||||||
})<{ in: boolean }>(({ in: isIn, theme }) => ({
|
|
||||||
height: '32px',
|
|
||||||
width: '32px',
|
|
||||||
borderRadius: '50%',
|
|
||||||
position: 'absolute',
|
|
||||||
left: '0',
|
|
||||||
right: '0',
|
|
||||||
bottom: '0',
|
|
||||||
top: '0',
|
|
||||||
margin: 'auto',
|
|
||||||
...displayFlex('center', 'center'),
|
|
||||||
opacity: isIn ? 1 : 0,
|
|
||||||
backgroundColor: isIn
|
|
||||||
? theme.colors.hoverBackground
|
|
||||||
: theme.colors.pageBackground,
|
|
||||||
}));
|
|
||||||
export const StyledIconWrapper = styled('div')<{ isEdgelessDark: boolean }>(
|
|
||||||
({ theme, isEdgelessDark }) => {
|
|
||||||
return {
|
|
||||||
color: isEdgelessDark
|
|
||||||
? theme.colors.popoverBackground
|
|
||||||
: theme.colors.iconColor,
|
|
||||||
marginBottom: '24px',
|
|
||||||
...displayFlex('center', 'center'),
|
|
||||||
cursor: 'pointer',
|
|
||||||
backgroundColor: isEdgelessDark
|
|
||||||
? 'transparent'
|
|
||||||
: theme.colors.pageBackground,
|
|
||||||
borderRadius: '50%',
|
|
||||||
width: '32px',
|
|
||||||
height: '32px',
|
|
||||||
transition: 'background-color 0.3s',
|
|
||||||
position: 'relative',
|
|
||||||
':hover': {
|
|
||||||
color: isEdgelessDark
|
|
||||||
? theme.colors.iconColor
|
|
||||||
: theme.colors.primaryColor,
|
|
||||||
backgroundColor: theme.colors.hoverBackground,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
export const StyledIslandWrapper = styled('div')(({ theme }) => {
|
|
||||||
return {
|
|
||||||
position: 'absolute',
|
|
||||||
bottom: '100%',
|
|
||||||
left: '0',
|
|
||||||
width: '100%',
|
|
||||||
color: theme.colors.iconColor,
|
|
||||||
':hover': {
|
':hover': {
|
||||||
color: theme.colors.popoverColor,
|
boxShadow:
|
||||||
|
'4px 4px 7px rgba(58, 76, 92, 0.04), -4px -4px 13px rgba(58, 76, 92, 0.02), 6px 6px 36px rgba(58, 76, 92, 0.06)',
|
||||||
|
},
|
||||||
|
'::after': {
|
||||||
|
content: '""',
|
||||||
|
width: '36px',
|
||||||
|
height: '1px',
|
||||||
|
background: spread ? theme.colors.borderColor : 'transparent',
|
||||||
|
...positionAbsolute({
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: '44px',
|
||||||
|
}),
|
||||||
|
margin: 'auto',
|
||||||
|
transition: 'background 0.15s',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
export const StyledIconWrapper = styled('div')(({ theme }) => {
|
||||||
|
return {
|
||||||
|
color: theme.colors.iconColor,
|
||||||
|
...displayFlex('center', 'center'),
|
||||||
|
cursor: 'pointer',
|
||||||
|
backgroundColor: theme.colors.pageBackground,
|
||||||
|
borderRadius: '5px',
|
||||||
|
width: '36px',
|
||||||
|
height: '36px',
|
||||||
|
margin: '4px auto 4px',
|
||||||
|
transition: 'background-color 0.2s',
|
||||||
|
position: 'relative',
|
||||||
|
':hover': {
|
||||||
|
color: theme.colors.primaryColor,
|
||||||
|
backgroundColor: theme.colors.hoverBackground,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
export const StyledAnimateWrapper = styled('div', {
|
||||||
|
shouldForwardProp: prop => prop !== 'spread',
|
||||||
|
})<{ spread: boolean }>(({ spread }) => ({
|
||||||
|
height: spread ? '88px' : '0',
|
||||||
|
transition: 'height 0.2s cubic-bezier(0, 0, 0.55, 1.6)',
|
||||||
|
overflow: 'hidden',
|
||||||
|
}));
|
||||||
|
|
||||||
|
export const StyledTriggerWrapper = styled('div')(({ theme }) => {
|
||||||
|
return {
|
||||||
|
width: '36px',
|
||||||
|
height: '36px',
|
||||||
|
cursor: 'pointer',
|
||||||
|
backgroundColor: theme.colors.pageBackground,
|
||||||
|
color: theme.colors.iconColor,
|
||||||
|
borderRadius: '5px',
|
||||||
|
...displayFlex('center', 'center'),
|
||||||
|
...positionAbsolute({ left: '4px', bottom: '4px' }),
|
||||||
|
':hover': {
|
||||||
|
color: theme.colors.primaryColor,
|
||||||
|
backgroundColor: theme.colors.hoverBackground,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import HelpIsland from '@/components/help-island';
|
import HelpIsland from '@/components/help-island';
|
||||||
import { WorkSpaceSliderBar } from '@/components/workspace-slider-bar';
|
import { WorkSpaceSliderBar } from '@/components/workspace-slider-bar';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { StyledPage, StyledWrapper } from './styles';
|
import { StyledPage, StyledToolWrapper, StyledWrapper } from './styles';
|
||||||
import { PropsWithChildren } from 'react';
|
import { PropsWithChildren } from 'react';
|
||||||
import useEnsureWorkspace from '@/hooks/use-ensure-workspace';
|
import useEnsureWorkspace from '@/hooks/use-ensure-workspace';
|
||||||
import { PageLoading } from '@/components/loading';
|
import { PageLoading } from '@/components/loading';
|
||||||
@@ -19,7 +19,14 @@ export const WorkspaceLayout = ({ children }: PropsWithChildren) => {
|
|||||||
<WorkSpaceSliderBar />
|
<WorkSpaceSliderBar />
|
||||||
<StyledWrapper>
|
<StyledWrapper>
|
||||||
{children}
|
{children}
|
||||||
<HelpIsland showList={router.query.pageId ? undefined : ['contact']} />
|
<StyledToolWrapper>
|
||||||
|
<div id="toolWrapper" style={{ marginBottom: '12px' }}>
|
||||||
|
{/* Slot for block hub */}
|
||||||
|
</div>
|
||||||
|
<HelpIsland
|
||||||
|
showList={router.query.pageId ? undefined : ['contact']}
|
||||||
|
/>
|
||||||
|
</StyledToolWrapper>
|
||||||
</StyledWrapper>
|
</StyledWrapper>
|
||||||
</StyledPage>
|
</StyledPage>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -16,3 +16,12 @@ export const StyledWrapper = styled('div')(() => {
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const StyledToolWrapper = styled('div')(({ theme }) => {
|
||||||
|
return {
|
||||||
|
position: 'fixed',
|
||||||
|
right: '30px',
|
||||||
|
bottom: '30px',
|
||||||
|
zIndex: theme.zIndex.popover,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|||||||
@@ -6,3 +6,10 @@
|
|||||||
.affine-default-page-block-container {
|
.affine-default-page-block-container {
|
||||||
width: 686px !important;
|
width: 686px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
affine-block-hub {
|
||||||
|
position: unset !important;
|
||||||
|
}
|
||||||
|
.block-hub-menu-container {
|
||||||
|
position: unset !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@blocksuite/editor": "0.4.0-alpha.2",
|
"@blocksuite/editor": "0.4.0-alpha.3",
|
||||||
"@blocksuite/icons": "^2.0.2",
|
"@blocksuite/icons": "^2.0.2",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.5",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.5",
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ import MuiCollapse from '@mui/material/Collapse';
|
|||||||
import MuiSlide from '@mui/material/Slide';
|
import MuiSlide from '@mui/material/Slide';
|
||||||
import MuiAvatar from '@mui/material/Avatar';
|
import MuiAvatar from '@mui/material/Avatar';
|
||||||
import MuiGrow from '@mui/material/Grow';
|
import MuiGrow from '@mui/material/Grow';
|
||||||
|
import MuiFade from '@mui/material/Fade';
|
||||||
|
|
||||||
export { MuiBreadcrumbs, MuiCollapse, MuiSlide, MuiAvatar, MuiGrow };
|
export { MuiBreadcrumbs, MuiCollapse, MuiSlide, MuiAvatar, MuiGrow, MuiFade };
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
"yjs": "^13.5.45"
|
"yjs": "^13.5.45"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blocksuite/blocks": "0.4.0-alpha.2",
|
"@blocksuite/blocks": "0.4.0-alpha.3",
|
||||||
"@blocksuite/store": "0.4.0-alpha.2",
|
"@blocksuite/store": "0.4.0-alpha.3",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"encoding": "^0.1.13",
|
"encoding": "^0.1.13",
|
||||||
"firebase": "^9.15.0",
|
"firebase": "^9.15.0",
|
||||||
|
|||||||
15
patches/next@13.1.0.patch
Normal file
15
patches/next@13.1.0.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/dist/server/config.js b/dist/server/config.js
|
||||||
|
index 3222d6521a5473994ad1d42914106d9c611e18b8..b9ea8fbd541c9ce1a8c33c25ab0f493981f9b3e3 100644
|
||||||
|
--- a/dist/server/config.js
|
||||||
|
+++ b/dist/server/config.js
|
||||||
|
@@ -180,8 +180,8 @@ const isAboveNodejs16 = (0, _semver).gte(process.version, NODE_16_VERSION);
|
||||||
|
const isAboveNodejs18 = (0, _semver).gte(process.version, NODE_18_VERSION);
|
||||||
|
const experimentalWarning = (0, _utils).execOnce((configFileName, features)=>{
|
||||||
|
const s = features.length > 1 ? "s" : "";
|
||||||
|
- Log.warn(_chalk.default.bold(`You have enabled experimental feature${s} (${features.join(", ")}) in ${configFileName}.`));
|
||||||
|
- Log.warn(`Experimental features are not covered by semver, and may cause unexpected or broken application behavior. ` + `Use at your own risk.`);
|
||||||
|
+ // Log.warn(_chalk.default.bold(`You have enabled experimental feature${s} (${features.join(", ")}) in ${configFileName}.`));
|
||||||
|
+ // Log.warn(`Experimental features are not covered by semver, and may cause unexpected or broken application behavior. ` + `Use at your own risk.`);
|
||||||
|
if (features.includes("appDir")) {
|
||||||
|
Log.info(`Thank you for testing \`appDir\` please leave your feedback at https://nextjs.link/app-feedback`);
|
||||||
|
}
|
||||||
155
pnpm-lock.yaml
generated
155
pnpm-lock.yaml
generated
@@ -1,5 +1,10 @@
|
|||||||
lockfileVersion: 5.4
|
lockfileVersion: 5.4
|
||||||
|
|
||||||
|
patchedDependencies:
|
||||||
|
next@13.1.0:
|
||||||
|
hash: rdilrli7uexa22ralt77ekax24
|
||||||
|
path: patches/next@13.1.0.patch
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
.:
|
.:
|
||||||
@@ -47,10 +52,10 @@ importers:
|
|||||||
'@affine/component': workspace:*
|
'@affine/component': workspace:*
|
||||||
'@affine/datacenter': workspace:*
|
'@affine/datacenter': workspace:*
|
||||||
'@affine/i18n': workspace:*
|
'@affine/i18n': workspace:*
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2
|
'@blocksuite/blocks': 0.4.0-alpha.3
|
||||||
'@blocksuite/editor': 0.4.0-alpha.2
|
'@blocksuite/editor': 0.4.0-alpha.3
|
||||||
'@blocksuite/icons': ^2.0.2
|
'@blocksuite/icons': ^2.0.2
|
||||||
'@blocksuite/store': 0.4.0-alpha.2
|
'@blocksuite/store': 0.4.0-alpha.3
|
||||||
'@emotion/css': ^11.10.5
|
'@emotion/css': ^11.10.5
|
||||||
'@emotion/react': ^11.10.5
|
'@emotion/react': ^11.10.5
|
||||||
'@emotion/server': ^11.10.0
|
'@emotion/server': ^11.10.0
|
||||||
@@ -89,10 +94,10 @@ importers:
|
|||||||
'@affine/component': link:../component
|
'@affine/component': link:../component
|
||||||
'@affine/datacenter': link:../data-center
|
'@affine/datacenter': link:../data-center
|
||||||
'@affine/i18n': link:../i18n
|
'@affine/i18n': link:../i18n
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
|
'@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45
|
||||||
'@blocksuite/editor': 0.4.0-alpha.2_yjs@13.5.45
|
'@blocksuite/editor': 0.4.0-alpha.3_yjs@13.5.45
|
||||||
'@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34
|
'@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45
|
||||||
'@emotion/css': 11.10.5
|
'@emotion/css': 11.10.5
|
||||||
'@emotion/react': 11.10.5_w5j4k42lgipnm43s3brx6h3c34
|
'@emotion/react': 11.10.5_w5j4k42lgipnm43s3brx6h3c34
|
||||||
'@emotion/server': 11.10.0_@emotion+css@11.10.5
|
'@emotion/server': 11.10.0_@emotion+css@11.10.5
|
||||||
@@ -107,7 +112,7 @@ importers:
|
|||||||
css-spring: 4.1.0
|
css-spring: 4.1.0
|
||||||
dayjs: 1.11.7
|
dayjs: 1.11.7
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
next: 13.1.0_biqbaboplfbrettd7655fr4n2y
|
next: 13.1.0_rdilrli7uexa22ralt77ekax24_biqbaboplfbrettd7655fr4n2y
|
||||||
next-debug-local: 0.1.5
|
next-debug-local: 0.1.5
|
||||||
prettier: 2.7.1
|
prettier: 2.7.1
|
||||||
quill: 1.3.7
|
quill: 1.3.7
|
||||||
@@ -132,7 +137,7 @@ importers:
|
|||||||
packages/component:
|
packages/component:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@affine/i18n': workspace:*
|
'@affine/i18n': workspace:*
|
||||||
'@blocksuite/editor': 0.4.0-alpha.2
|
'@blocksuite/editor': 0.4.0-alpha.3
|
||||||
'@blocksuite/icons': ^2.0.2
|
'@blocksuite/icons': ^2.0.2
|
||||||
'@emotion/react': ^11.10.5
|
'@emotion/react': ^11.10.5
|
||||||
'@emotion/styled': ^11.10.5
|
'@emotion/styled': ^11.10.5
|
||||||
@@ -156,7 +161,7 @@ importers:
|
|||||||
webpack: ^5.75.0
|
webpack: ^5.75.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@affine/i18n': link:../i18n
|
'@affine/i18n': link:../i18n
|
||||||
'@blocksuite/editor': 0.4.0-alpha.2
|
'@blocksuite/editor': 0.4.0-alpha.3
|
||||||
'@blocksuite/icons': 2.0.4_3stiutgnnbnfnf3uowm5cip22i
|
'@blocksuite/icons': 2.0.4_3stiutgnnbnfnf3uowm5cip22i
|
||||||
'@emotion/react': 11.10.5_3stiutgnnbnfnf3uowm5cip22i
|
'@emotion/react': 11.10.5_3stiutgnnbnfnf3uowm5cip22i
|
||||||
'@emotion/styled': 11.10.5_jrh5enlbqfbnumycmktdqgd6se
|
'@emotion/styled': 11.10.5_jrh5enlbqfbnumycmktdqgd6se
|
||||||
@@ -182,8 +187,8 @@ importers:
|
|||||||
|
|
||||||
packages/data-center:
|
packages/data-center:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2
|
'@blocksuite/blocks': 0.4.0-alpha.3
|
||||||
'@blocksuite/store': 0.4.0-alpha.2
|
'@blocksuite/store': 0.4.0-alpha.3
|
||||||
'@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
|
||||||
@@ -201,8 +206,8 @@ importers:
|
|||||||
y-protocols: ^1.0.5
|
y-protocols: ^1.0.5
|
||||||
yjs: ^13.5.45
|
yjs: ^13.5.45
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
|
'@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/store': 0.4.0-alpha.3_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
|
||||||
@@ -2615,21 +2620,21 @@ packages:
|
|||||||
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
|
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@blocksuite/blocks/0.4.0-alpha.2:
|
/@blocksuite/blocks/0.4.0-alpha.3:
|
||||||
resolution: {integrity: sha512-rsG1wXNmZpZrCQeADLYkJyFQJ6tTW5QutmN9kr5e1HI3cZgV6n1szcDBh+/32xp6xFn1q1RgknYVNS6jHsbd+A==}
|
resolution: {integrity: sha512-DKRWJmNhaCLQSMYRdVMR6okuWRjvU3o+NZcrnXitNzEH2jes7gl9DxpCI4kfAWTGHKLtblDqkMwRtKJhhxE8ng==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/phasor': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/phasor': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/virgo': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/virgo': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@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
|
||||||
hotkeys-js: 3.10.1
|
hotkeys-js: 3.10.1
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
quill: 1.3.7
|
quill: 1.3.7
|
||||||
quill-cursors: 4.0.0
|
quill-cursors: 4.0.2
|
||||||
zod: 3.20.2
|
zod: 3.20.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -2637,21 +2642,21 @@ packages:
|
|||||||
- yjs
|
- yjs
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/blocks/0.4.0-alpha.2_yjs@13.5.45:
|
/@blocksuite/blocks/0.4.0-alpha.3_yjs@13.5.45:
|
||||||
resolution: {integrity: sha512-rsG1wXNmZpZrCQeADLYkJyFQJ6tTW5QutmN9kr5e1HI3cZgV6n1szcDBh+/32xp6xFn1q1RgknYVNS6jHsbd+A==}
|
resolution: {integrity: sha512-DKRWJmNhaCLQSMYRdVMR6okuWRjvU3o+NZcrnXitNzEH2jes7gl9DxpCI4kfAWTGHKLtblDqkMwRtKJhhxE8ng==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/phasor': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/phasor': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45
|
||||||
'@blocksuite/virgo': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/virgo': 0.4.0-alpha.3_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
|
||||||
hotkeys-js: 3.10.1
|
hotkeys-js: 3.10.1
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
quill: 1.3.7
|
quill: 1.3.7
|
||||||
quill-cursors: 4.0.0
|
quill-cursors: 4.0.2
|
||||||
zod: 3.20.2
|
zod: 3.20.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -2659,12 +2664,12 @@ packages:
|
|||||||
- yjs
|
- yjs
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/editor/0.4.0-alpha.2:
|
/@blocksuite/editor/0.4.0-alpha.3:
|
||||||
resolution: {integrity: sha512-77+uY8ljus+W70sf3J5sjzS6jzfLXeA5wBnPVALtq7LBIzkQesFZ/FCewpPPaqDy3Up8rnq4mvWDB2GCbpmwuA==}
|
resolution: {integrity: sha512-PLF8apMEOzvwS8sliZFRyHrgWKwR5XgpeIoqZ3CTUXvmkZ2cX6d8UP+GjS6GWKZarbpGJNtvuABYTFraJycMig==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2
|
'@blocksuite/blocks': 0.4.0-alpha.3
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
marked: 4.2.12
|
marked: 4.2.12
|
||||||
turndown: 7.1.1
|
turndown: 7.1.1
|
||||||
@@ -2675,12 +2680,12 @@ packages:
|
|||||||
- yjs
|
- yjs
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/editor/0.4.0-alpha.2_yjs@13.5.45:
|
/@blocksuite/editor/0.4.0-alpha.3_yjs@13.5.45:
|
||||||
resolution: {integrity: sha512-77+uY8ljus+W70sf3J5sjzS6jzfLXeA5wBnPVALtq7LBIzkQesFZ/FCewpPPaqDy3Up8rnq4mvWDB2GCbpmwuA==}
|
resolution: {integrity: sha512-PLF8apMEOzvwS8sliZFRyHrgWKwR5XgpeIoqZ3CTUXvmkZ2cX6d8UP+GjS6GWKZarbpGJNtvuABYTFraJycMig==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/blocks': 0.4.0-alpha.2_yjs@13.5.45
|
'@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
'@blocksuite/store': 0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45
|
'@blocksuite/store': 0.4.0-alpha.3_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
|
||||||
@@ -2691,8 +2696,8 @@ packages:
|
|||||||
- yjs
|
- yjs
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/global/0.4.0-alpha.2_lit@2.6.1:
|
/@blocksuite/global/0.4.0-alpha.3_lit@2.6.1:
|
||||||
resolution: {integrity: sha512-LS58Itk+rrHmU51rEl6X4yqVpNRW9GCZBSrlLnlxSBaqqOwa7aE57vF2zfDiamjBXmCnwbcdAlucyMoHcuqrGA==}
|
resolution: {integrity: sha512-nCxWV8PoZNgoIMQjBX/c9x7BrvivCabY712bHy89K/QSNgXlKsPT0KN3tuLHdm96/q+3Suf6RhvB60SurPYv1g==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
lit: ^2.6
|
lit: ^2.6
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
@@ -2701,7 +2706,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ansi-colors: 4.1.3
|
ansi-colors: 4.1.3
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
zod: 3.20.2
|
zod: 3.20.5
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/icons/2.0.4_3stiutgnnbnfnf3uowm5cip22i:
|
/@blocksuite/icons/2.0.4_3stiutgnnbnfnf3uowm5cip22i:
|
||||||
@@ -2724,12 +2729,12 @@ packages:
|
|||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/phasor/0.4.0-alpha.2_lit@2.6.1:
|
/@blocksuite/phasor/0.4.0-alpha.3_lit@2.6.1:
|
||||||
resolution: {integrity: sha512-+T9hXOyadQh5A2TpzOvY7KntBImzt8fVMfgq0McGnPQP8whSDmgKmGn0N442ObUM09X9XwzmF1i2claYIiPW+g==}
|
resolution: {integrity: sha512-GLw+LPK5avc/fXZk9fxtAQtYxovTHMPrEs48OJtSlrVqvTAJwGQpK3W2BL7HKBhgHlsbOcaBQ2pAaqKAFypwEw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
fractional-indexing: 3.2.0
|
fractional-indexing: 3.2.0
|
||||||
nanoid: 4.0.1
|
nanoid: 4.0.1
|
||||||
perfect-freehand: 1.2.0
|
perfect-freehand: 1.2.0
|
||||||
@@ -2737,12 +2742,12 @@ packages:
|
|||||||
- lit
|
- lit
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/phasor/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
|
/@blocksuite/phasor/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45:
|
||||||
resolution: {integrity: sha512-+T9hXOyadQh5A2TpzOvY7KntBImzt8fVMfgq0McGnPQP8whSDmgKmGn0N442ObUM09X9XwzmF1i2claYIiPW+g==}
|
resolution: {integrity: sha512-GLw+LPK5avc/fXZk9fxtAQtYxovTHMPrEs48OJtSlrVqvTAJwGQpK3W2BL7HKBhgHlsbOcaBQ2pAaqKAFypwEw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
fractional-indexing: 3.2.0
|
fractional-indexing: 3.2.0
|
||||||
nanoid: 4.0.1
|
nanoid: 4.0.1
|
||||||
perfect-freehand: 1.2.0
|
perfect-freehand: 1.2.0
|
||||||
@@ -2751,23 +2756,23 @@ packages:
|
|||||||
- lit
|
- lit
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/store/0.4.0-alpha.2_lit@2.6.1:
|
/@blocksuite/store/0.4.0-alpha.3_lit@2.6.1:
|
||||||
resolution: {integrity: sha512-Tezn9P5EoggO03lBAusYTldUW+twoXSfaU+mJoTSCbW4DC8aDpgFRZgZlxjon2MC1aZnz1sShjFa6zKkNerRFg==}
|
resolution: {integrity: sha512-Ib8vjhMIC4PeWrbfz7usiXKIgw0VYPujfWwDZ3fDq+OWHbb2KzfnXBQ93W5oDZhv0tVpxoT2RYCtVSvrh7sY5A==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_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.61
|
lib0: 0.2.62
|
||||||
merge: 2.1.1
|
merge: 2.1.1
|
||||||
nanoid: 4.0.1
|
nanoid: 4.0.1
|
||||||
y-protocols: 1.0.5
|
y-protocols: 1.0.5
|
||||||
y-webrtc: 10.2.4
|
y-webrtc: 10.2.4
|
||||||
zod: 3.20.2
|
zod: 3.20.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- lit
|
- lit
|
||||||
@@ -2775,24 +2780,24 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/store/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
|
/@blocksuite/store/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45:
|
||||||
resolution: {integrity: sha512-Tezn9P5EoggO03lBAusYTldUW+twoXSfaU+mJoTSCbW4DC8aDpgFRZgZlxjon2MC1aZnz1sShjFa6zKkNerRFg==}
|
resolution: {integrity: sha512-Ib8vjhMIC4PeWrbfz7usiXKIgw0VYPujfWwDZ3fDq+OWHbb2KzfnXBQ93W5oDZhv0tVpxoT2RYCtVSvrh7sY5A==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_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.61
|
lib0: 0.2.62
|
||||||
merge: 2.1.1
|
merge: 2.1.1
|
||||||
nanoid: 4.0.1
|
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.45
|
yjs: 13.5.45
|
||||||
zod: 3.20.2
|
zod: 3.20.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- lit
|
- lit
|
||||||
@@ -2800,23 +2805,23 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/virgo/0.4.0-alpha.2_lit@2.6.1:
|
/@blocksuite/virgo/0.4.0-alpha.3_lit@2.6.1:
|
||||||
resolution: {integrity: sha512-ZLyQeBULa4yD0+wlP56miSZi4ljWYLvvZH54CEplVsOFqtYs0LruBsELc6z7cBkfJR1awdeJxNj/6qgKEwP5FA==}
|
resolution: {integrity: sha512-uEa2bH2XCNI5whF3LUJAOogmv+5gux4m80dge7dXslw+6UfbdS6tDTP268a0k7FCPiV7suAcGbT/y5wZUbJ0ow==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
lit: ^2
|
lit: ^2
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@blocksuite/virgo/0.4.0-alpha.2_lit@2.6.1+yjs@13.5.45:
|
/@blocksuite/virgo/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45:
|
||||||
resolution: {integrity: sha512-ZLyQeBULa4yD0+wlP56miSZi4ljWYLvvZH54CEplVsOFqtYs0LruBsELc6z7cBkfJR1awdeJxNj/6qgKEwP5FA==}
|
resolution: {integrity: sha512-uEa2bH2XCNI5whF3LUJAOogmv+5gux4m80dge7dXslw+6UfbdS6tDTP268a0k7FCPiV7suAcGbT/y5wZUbJ0ow==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
lit: ^2
|
lit: ^2
|
||||||
yjs: ^13
|
yjs: ^13
|
||||||
dependencies:
|
dependencies:
|
||||||
'@blocksuite/global': 0.4.0-alpha.2_lit@2.6.1
|
'@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1
|
||||||
lit: 2.6.1
|
lit: 2.6.1
|
||||||
yjs: 13.5.45
|
yjs: 13.5.45
|
||||||
dev: false
|
dev: false
|
||||||
@@ -12871,6 +12876,13 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
isomorphic.js: 0.2.5
|
isomorphic.js: 0.2.5
|
||||||
|
|
||||||
|
/lib0/0.2.62:
|
||||||
|
resolution: {integrity: sha512-DY0G8AaQloUvpiss7EpAo/t4R82b9m/AydbQRNAa9Khssn9oGDJnSN8Q1qQ8u82Wog4iaT1O8yM+DfhzGCrrpQ==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
dependencies:
|
||||||
|
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==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@@ -13645,7 +13657,7 @@ packages:
|
|||||||
babel-loader: 8.3.0
|
babel-loader: 8.3.0
|
||||||
clean-webpack-plugin: 4.0.0
|
clean-webpack-plugin: 4.0.0
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
next: 13.1.0_biqbaboplfbrettd7655fr4n2y
|
next: 13.1.0_rdilrli7uexa22ralt77ekax24_biqbaboplfbrettd7655fr4n2y
|
||||||
terser-webpack-plugin: 5.3.6
|
terser-webpack-plugin: 5.3.6
|
||||||
workbox-webpack-plugin: 6.5.4
|
workbox-webpack-plugin: 6.5.4
|
||||||
workbox-window: 6.5.4
|
workbox-window: 6.5.4
|
||||||
@@ -13704,7 +13716,7 @@ packages:
|
|||||||
- babel-plugin-macros
|
- babel-plugin-macros
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/next/13.1.0_biqbaboplfbrettd7655fr4n2y:
|
/next/13.1.0_rdilrli7uexa22ralt77ekax24_biqbaboplfbrettd7655fr4n2y:
|
||||||
resolution: {integrity: sha512-lQMZH1V94L5IL/WaihQkTYabSY73aqgrkGPJB5uz+2O3ES4I3losV/maXLY7l7x5e+oNyE9N81upNQ8uRsR5/A==}
|
resolution: {integrity: sha512-lQMZH1V94L5IL/WaihQkTYabSY73aqgrkGPJB5uz+2O3ES4I3losV/maXLY7l7x5e+oNyE9N81upNQ8uRsR5/A==}
|
||||||
engines: {node: '>=14.6.0'}
|
engines: {node: '>=14.6.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -13746,6 +13758,7 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@babel/core'
|
- '@babel/core'
|
||||||
- babel-plugin-macros
|
- babel-plugin-macros
|
||||||
|
patched: true
|
||||||
|
|
||||||
/nice-try/1.0.5:
|
/nice-try/1.0.5:
|
||||||
resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}
|
resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}
|
||||||
@@ -14972,6 +14985,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-nCwCZtQPl4EnxJSheHtb067Jo48A6mc8/t7waGSLqXvbE68a5vHBFfMOQPZI7jxjksbDhpfzQta3a3/MoPvKzQ==}
|
resolution: {integrity: sha512-nCwCZtQPl4EnxJSheHtb067Jo48A6mc8/t7waGSLqXvbE68a5vHBFfMOQPZI7jxjksbDhpfzQta3a3/MoPvKzQ==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/quill-cursors/4.0.2:
|
||||||
|
resolution: {integrity: sha512-/5mEfB6rDXwBy9rt3XieMKmQE8+OMnMBi2DFwea3t06QXH6i/NsICpteEoC++WGkQ/qyurIACUNnY7eBVh4Bmg==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/quill-delta/3.6.3:
|
/quill-delta/3.6.3:
|
||||||
resolution: {integrity: sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==}
|
resolution: {integrity: sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==}
|
||||||
engines: {node: '>=0.10'}
|
engines: {node: '>=0.10'}
|
||||||
@@ -18046,7 +18063,7 @@ packages:
|
|||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
lib0: 0.2.61
|
lib0: 0.2.62
|
||||||
simple-peer: 9.11.1
|
simple-peer: 9.11.1
|
||||||
y-protocols: 1.0.5
|
y-protocols: 1.0.5
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
@@ -18160,8 +18177,8 @@ packages:
|
|||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/zod/3.20.2:
|
/zod/3.20.5:
|
||||||
resolution: {integrity: sha512-1MzNQdAvO+54H+EaK5YpyEy0T+Ejo/7YLHS93G3RnYWh5gaotGHwGeN/ZO687qEDU2y4CdStQYXVHIgrUl5UVQ==}
|
resolution: {integrity: sha512-BTAAliwfoB9dWf2hC+TXlyWKk/YTqRGZjHQR0WLC2A2pzierWo7KuQ1ebjS4SNaFaxg/lDItzl9/QTgLjcHbgw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/zwitch/1.0.5:
|
/zwitch/1.0.5:
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ test.describe('Open contact us', () => {
|
|||||||
const faqIcon = page.locator('[data-testid=faq-icon]');
|
const faqIcon = page.locator('[data-testid=faq-icon]');
|
||||||
const box = await faqIcon.boundingBox();
|
const box = await faqIcon.boundingBox();
|
||||||
expect(box?.x).not.toBeUndefined();
|
expect(box?.x).not.toBeUndefined();
|
||||||
|
await faqIcon.click();
|
||||||
|
|
||||||
await page.mouse.move((box?.x ?? 0) + 10, (box?.y ?? 0) + 10);
|
await page.mouse.move((box?.x ?? 0) + 10, (box?.y ?? 0) + 10);
|
||||||
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ test.describe('Shortcuts Modal', () => {
|
|||||||
const box = await faqIcon.boundingBox();
|
const box = await faqIcon.boundingBox();
|
||||||
expect(box?.x).not.toBeUndefined();
|
expect(box?.x).not.toBeUndefined();
|
||||||
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
||||||
|
await faqIcon.click();
|
||||||
|
|
||||||
const shortcutsIcon = page.locator('[data-testid=shortcuts-icon]');
|
const shortcutsIcon = page.locator('[data-testid=shortcuts-icon]');
|
||||||
expect(await shortcutsIcon.isVisible()).toEqual(true);
|
expect(await shortcutsIcon.isVisible()).toEqual(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user