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
+6 -6
View File
@@ -19,13 +19,13 @@
"@affine/jotai": "workspace:*",
"@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/block-std": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/icons": "^2.1.24",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly",
"@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^7.0.2",
"@emotion/cache": "^11.11.0",
@@ -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,
@@ -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;
@@ -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]
);
@@ -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;
@@ -6,7 +6,7 @@ import { useAtom } from 'jotai';
*/
export function useCurrentPageId(): [
string | null,
(newId: string | null) => void
(newId: string | null) => void,
] {
return useAtom(rootCurrentPageIdAtom);
}
@@ -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);