chore: bump version (#3041)

(cherry picked from commit fa1cd87348)
This commit is contained in:
Alex Yang
2023-07-06 11:49:17 +08:00
parent e2d6d5548f
commit aa31043871
44 changed files with 508 additions and 495 deletions

View File

@@ -23,7 +23,7 @@ export type WorkspaceSettingDetailProps = {
onDeleteWorkspace: (id: string) => Promise<void>;
onTransferWorkspace: <
From extends WorkspaceFlavour,
To extends WorkspaceFlavour
To extends WorkspaceFlavour,
>(
from: From,
to: To,

View File

@@ -35,7 +35,7 @@ import * as styles from './styles.css';
import { OSWarningMessage, shouldShowWarning } from './utils';
export type BaseHeaderProps<
Workspace extends AffineOfficialWorkspace = AffineOfficialWorkspace
Workspace extends AffineOfficialWorkspace = AffineOfficialWorkspace,
> = {
workspace: Workspace;
currentPage: Page | null;

View File

@@ -16,10 +16,13 @@ export const FavoriteList = ({ currentWorkspace }: FavoriteListProps) => {
const metaMapping = useMemo(
() =>
metas.reduce((acc, meta) => {
acc[meta.id] = meta;
return acc;
}, {} as Record<string, PageMeta>),
metas.reduce(
(acc, meta) => {
acc[meta.id] = meta;
return acc;
},
{} as Record<string, PageMeta>
),
[metas]
);

View File

@@ -56,22 +56,22 @@ export const StyledNewPageButton = styled('button')(() => {
},
};
});
export const StyledSliderModalBackground = styled('div')<{ active: boolean }>(
({ active }) => {
return {
transition: 'opacity .15s',
pointerEvents: active ? 'auto' : 'none',
opacity: active ? 1 : 0,
position: 'fixed',
top: 0,
left: 0,
right: active ? 0 : '100%',
bottom: 0,
zIndex: parseInt(baseTheme.zIndexModal) - 1,
background: 'var(--affine-background-modal-color)',
};
}
);
export const StyledSliderModalBackground = styled('div')<{ active: boolean }>(({
active,
}) => {
return {
transition: 'opacity .15s',
pointerEvents: active ? 'auto' : 'none',
opacity: active ? 1 : 0,
position: 'fixed',
top: 0,
left: 0,
right: active ? 0 : '100%',
bottom: 0,
zIndex: parseInt(baseTheme.zIndexModal) - 1,
background: 'var(--affine-background-modal-color)',
};
});
export const StyledScrollWrapper = styled('div')<{
showTopBorder: boolean;

View File

@@ -6,7 +6,7 @@ import { useAtom } from 'jotai';
*/
export function useCurrentPageId(): [
string | null,
(newId: string | null) => void
(newId: string | null) => void,
] {
return useAtom(rootCurrentPageIdAtom);
}

View File

@@ -11,7 +11,7 @@ import type { AllWorkspace } from '../../shared';
export function useCurrentWorkspace(): [
AllWorkspace,
(id: string | null) => void
(id: string | null) => void,
] {
const currentWorkspace = useAtomValue(rootCurrentWorkspaceAtom);
const [, setId] = useAtom(rootCurrentWorkspaceIdAtom);