chore: bump version (#3041)

This commit is contained in:
Alex Yang 2023-07-06 11:49:17 +08:00 committed by GitHub
parent e95d28e136
commit fa1cd87348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 508 additions and 495 deletions

View File

@ -50,12 +50,12 @@ jobs:
- name: Run Type Check - name: Run Type Check
run: yarn typecheck run: yarn typecheck
- name: Run ESLint - name: Run ESLint
run: yarn lint --max-warnings=0 --cache run: yarn lint:eslint --max-warnings=0
- name: Run Prettier - name: Run Prettier
# Set nmMode in `actions/setup-node` will modify the .yarnrc.yml # Set nmMode in `actions/setup-node` will modify the .yarnrc.yml
run: | run: |
git checkout .yarnrc.yml git checkout .yarnrc.yml
yarn prettier . --ignore-unknown --cache --check yarn lint:prettier
- name: Run circular - name: Run circular
run: yarn circular run: yarn circular
- name: Upload server dist - name: Upload server dist

View File

@ -10,3 +10,5 @@ dist
.yarn .yarn
tests/affine-legacy/0.7.0-canary.18/static tests/affine-legacy/0.7.0-canary.18/static
.github/helm .github/helm
_next
storybook-static

View File

@ -1,4 +1,4 @@
<!DOCTYPE html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

View File

@ -10,12 +10,12 @@
}, },
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/block-std": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"express": "^4.18.2", "express": "^4.18.2",
"jotai": "^2.2.1", "jotai": "^2.2.1",
"react": "18.3.0-canary-1fdacbefd-20230630", "react": "18.3.0-canary-1fdacbefd-20230630",

View File

@ -25,10 +25,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@affine/native": "workspace:*", "@affine/native": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"@electron-forge/cli": "^6.2.1", "@electron-forge/cli": "^6.2.1",
"@electron-forge/core": "^6.2.1", "@electron-forge/core": "^6.2.1",
"@electron-forge/core-utils": "^6.2.1", "@electron-forge/core-utils": "^6.2.1",

View File

@ -18,7 +18,10 @@ export class WorkspaceSQLiteDB extends BaseSQLiteAdapter {
update$ = new Subject<void>(); update$ = new Subject<void>();
constructor(public override path: string, public workspaceId: string) { constructor(
public override path: string,
public workspaceId: string
) {
super(path); super(path);
} }

View File

@ -21,7 +21,7 @@ type WithoutFirstParameter<T> = T extends (_: any, ...args: infer P) => infer R
// however this is too hard to be typed correctly // however this is too hard to be typed correctly
async function dispatch< async function dispatch<
T extends keyof MainIPCHandlerMap, T extends keyof MainIPCHandlerMap,
F extends keyof MainIPCHandlerMap[T] F extends keyof MainIPCHandlerMap[T],
>( >(
namespace: T, namespace: T,
functionName: F, functionName: F,

View File

@ -41,7 +41,10 @@ export const CurrentUser = createParamDecorator(
@Injectable() @Injectable()
class AuthGuard implements CanActivate { class AuthGuard implements CanActivate {
constructor(private auth: AuthService, private prisma: PrismaService) {} constructor(
private auth: AuthService,
private prisma: PrismaService
) {}
async canActivate(context: ExecutionContext) { async canActivate(context: ExecutionContext) {
const { req } = getRequestResponseFromContext(context); const { req } = getRequestResponseFromContext(context);

View File

@ -28,7 +28,10 @@ const BASE_URL = '/api/auth/';
export class NextAuthController { export class NextAuthController {
private readonly nextAuthOptions: AuthOptions; private readonly nextAuthOptions: AuthOptions;
constructor(readonly config: Config, readonly prisma: PrismaService) { constructor(
readonly config: Config,
readonly prisma: PrismaService
) {
const prismaAdapter = PrismaAdapter(prisma); const prismaAdapter = PrismaAdapter(prisma);
// createUser exists in the adapter // createUser exists in the adapter
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion

View File

@ -19,7 +19,10 @@ export const getUtcTimestamp = () => Math.floor(new Date().getTime() / 1000);
@Injectable() @Injectable()
export class AuthService { export class AuthService {
constructor(private config: Config, private prisma: PrismaService) {} constructor(
private config: Config,
private prisma: PrismaService
) {}
sign(user: UserClaim) { sign(user: UserClaim) {
const now = getUtcTimestamp(); const now = getUtcTimestamp();

View File

@ -28,7 +28,7 @@ export type LeafPaths<
T, T,
Path extends string = '', Path extends string = '',
MaxDepth extends string = '...', MaxDepth extends string = '...',
Depth extends string = '' Depth extends string = '',
> = Depth extends MaxDepth > = Depth extends MaxDepth
? never ? never
: T extends Record<string | number, any> : T extends Record<string | number, any>

View File

@ -30,13 +30,13 @@
"wait-on": "^7.0.1" "wait-on": "^7.0.1"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/block-std": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/block-std": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/icons": "^2.1.24", "@blocksuite/icons": "^2.1.24",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"react": "18.3.0-canary-1fdacbefd-20230630", "react": "18.3.0-canary-1fdacbefd-20230630",
"react-dom": "18.3.0-canary-1fdacbefd-20230630" "react-dom": "18.3.0-canary-1fdacbefd-20230630"
}, },

View File

@ -19,13 +19,13 @@
"@affine/jotai": "workspace:*", "@affine/jotai": "workspace:*",
"@affine/templates": "workspace:*", "@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*", "@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/block-std": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/icons": "^2.1.24", "@blocksuite/icons": "^2.1.24",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"@dnd-kit/core": "^6.0.8", "@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^7.0.2", "@dnd-kit/sortable": "^7.0.2",
"@emotion/cache": "^11.11.0", "@emotion/cache": "^11.11.0",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,11 +26,14 @@
"start:web-static": "yarn workspace @affine/web static-server", "start:web-static": "yarn workspace @affine/web static-server",
"start:storybook": "yarn exec serve apps/storybook/storybook-static -l 6006", "start:storybook": "yarn exec serve apps/storybook/storybook-static -l 6006",
"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081", "serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
"lint": "eslint . --ext .js,mjs,.ts,.tsx --cache", "lint:eslint": "eslint . --ext .js,mjs,.ts,.tsx --cache",
"lint:fix": "yarn lint --fix", "lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
"e2e": "playwright test", "e2e": "playwright test",
"e2e:coverage": "COVERAGE=true yarn e2e --forbid-only", "e2e:coverage": "COVERAGE=true yarn e2e --forbid-only",
"start:e2e": "yarn dlx run-p start start:storybook",
"test": "ENABLE_PRELOADING=false vitest --run", "test": "ENABLE_PRELOADING=false vitest --run",
"test:ui": "ENABLE_PRELOADING=false vitest --ui", "test:ui": "ENABLE_PRELOADING=false vitest --ui",
"test:coverage": "ENABLE_PRELOADING=false vitest run --coverage", "test:coverage": "ENABLE_PRELOADING=false vitest run --coverage",
@ -93,7 +96,7 @@
"nx": "16.4.3", "nx": "16.4.3",
"nx-cloud": "latest", "nx-cloud": "latest",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"prettier": "^2.8.8", "prettier": "^3.0.0",
"serve": "^14.2.0", "serve": "^14.2.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^5.1.6", "typescript": "^5.1.6",

View File

@ -51,12 +51,12 @@
"rxjs": "^7.8.1" "rxjs": "^7.8.1"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/icons": "^2.1.24", "@blocksuite/icons": "^2.1.24",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"@types/react": "^18.2.14", "@types/react": "^18.2.14",
"@types/react-datepicker": "^4.11.2", "@types/react-datepicker": "^4.11.2",
"@types/react-dnd": "^3.0.2", "@types/react-dnd": "^3.0.2",

View File

@ -6,7 +6,7 @@ import { Observable } from 'rxjs';
function rpcToObservable< function rpcToObservable<
T, T,
H extends () => Promise<T>, H extends () => Promise<T>,
E extends (callback: (t: T) => void) => () => void E extends (callback: (t: T) => void) => () => void,
>( >(
initialValue: T, initialValue: T,
{ {

View File

@ -29,7 +29,7 @@ const tabIcons = {
export type ShareMenuProps< export type ShareMenuProps<
Workspace extends AffineCloudWorkspace | LocalWorkspace = Workspace extends AffineCloudWorkspace | LocalWorkspace =
| AffineCloudWorkspace | AffineCloudWorkspace
| LocalWorkspace | LocalWorkspace,
> = { > = {
workspace: Workspace; workspace: Workspace;
currentPage: Page; currentPage: Page;

View File

@ -1,10 +1,12 @@
import { styled } from '../../styles'; import { styled } from '../../styles';
import type { ButtonProps } from './interface'; import type { ButtonProps } from './interface';
import { getButtonColors } from './utils'; import { getButtonColors } from './utils';
export const LoadingContainer = styled('div')<Pick<ButtonProps, 'type'>>( export const LoadingContainer = styled('div')<Pick<ButtonProps, 'type'>>(({
({ theme, type = 'default' }) => { theme,
const { color } = getButtonColors(theme, type, false); type = 'default',
return ` }) => {
const { color } = getButtonColors(theme, type, false);
return `
margin: 0px auto; margin: 0px auto;
width: 38px; width: 38px;
text-align: center; text-align: center;
@ -45,8 +47,7 @@ export const LoadingContainer = styled('div')<Pick<ButtonProps, 'type'>>(
} }
} }
`; `;
} });
);
export const Loading = ({ type }: Pick<ButtonProps, 'type'>) => { export const Loading = ({ type }: Pick<ButtonProps, 'type'>) => {
return ( return (

View File

@ -28,36 +28,34 @@ export const StyledIconButton = styled('button', {
hoverStyle?: CSSProperties; hoverStyle?: CSSProperties;
// In some cases, button is in a normal hover status, it should be darkened // In some cases, button is in a normal hover status, it should be darkened
fontSize?: CSSProperties['fontSize']; fontSize?: CSSProperties['fontSize'];
}>( }>(({
({ width,
height,
borderRadius,
disabled,
hoverBackground,
hoverColor,
hoverStyle,
fontSize,
}) => {
return {
width, width,
height, height,
borderRadius,
disabled,
hoverBackground,
hoverColor,
hoverStyle,
fontSize, fontSize,
}) => { WebkitAppRegion: 'no-drag',
return { color: 'var(--affine-icon-color)',
width, ...displayInlineFlex('center', 'center'),
height, ...(disabled ? { cursor: 'not-allowed', pointerEvents: 'none' } : {}),
fontSize, transition: 'background .15s',
WebkitAppRegion: 'no-drag', borderRadius,
color: 'var(--affine-icon-color)',
...displayInlineFlex('center', 'center'),
...(disabled ? { cursor: 'not-allowed', pointerEvents: 'none' } : {}),
transition: 'background .15s',
borderRadius,
':hover': { ':hover': {
color: hoverColor ?? 'var(--affine-icon-color)', color: hoverColor ?? 'var(--affine-icon-color)',
background: hoverBackground || 'var(--affine-hover-color)', background: hoverBackground || 'var(--affine-hover-color)',
...(hoverStyle ?? {}), ...(hoverStyle ?? {}),
}, },
}; };
} });
);
export const StyledTextButton = styled('button', { export const StyledTextButton = styled('button', {
shouldForwardProp: prop => { shouldForwardProp: prop => {
@ -85,42 +83,40 @@ export const StyledTextButton = styled('button', {
| 'type' | 'type'
| 'bold' | 'bold'
> >
>( >(({
({ size = 'default',
size = 'default', disabled,
disabled, hoverBackground,
hoverBackground, hoverColor,
hoverColor, hoverStyle,
hoverStyle, bold = false,
bold = false, shape = 'default',
shape = 'default', // TODO: Implement type
// TODO: Implement type // eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars // type = 'default',
// type = 'default', }) => {
}) => { const { fontSize, borderRadius, padding, height } = getSize(size);
const { fontSize, borderRadius, padding, height } = getSize(size);
return { return {
height, height,
paddingLeft: padding, paddingLeft: padding,
paddingRight: padding, paddingRight: padding,
...displayInlineFlex('flex-start', 'center'), ...displayInlineFlex('flex-start', 'center'),
position: 'relative', position: 'relative',
...(disabled ? { cursor: 'not-allowed', pointerEvents: 'none' } : {}), ...(disabled ? { cursor: 'not-allowed', pointerEvents: 'none' } : {}),
transition: 'background .15s', transition: 'background .15s',
// TODO: Implement circle shape // TODO: Implement circle shape
borderRadius: shape === 'default' ? borderRadius : height / 2, borderRadius: shape === 'default' ? borderRadius : height / 2,
fontSize, fontSize,
fontWeight: bold ? '500' : '400', fontWeight: bold ? '500' : '400',
':hover': { ':hover': {
color: hoverColor ?? 'var(--affine-primary-color)', color: hoverColor ?? 'var(--affine-primary-color)',
background: hoverBackground ?? 'var(--affine-hover-color)', background: hoverBackground ?? 'var(--affine-hover-color)',
...(hoverStyle ?? {}), ...(hoverStyle ?? {}),
}, },
}; };
} });
);
export const StyledButton = styled('button', { export const StyledButton = styled('button', {
shouldForwardProp: prop => { shouldForwardProp: prop => {
@ -147,70 +143,68 @@ export const StyledButton = styled('button', {
| 'bold' | 'bold'
| 'noBorder' | 'noBorder'
> >
>( >(({
({ theme,
theme, size = 'default',
size = 'default', disabled,
disabled, hoverBackground,
hoverBackground, hoverColor,
hoverColor, hoverStyle,
hoverStyle, bold = false,
bold = false, shape = 'default',
shape = 'default', type = 'default',
type = 'default', noBorder = false,
noBorder = false, }) => {
}) => { const { fontSize, borderRadius, padding, height } = getSize(size);
const { fontSize, borderRadius, padding, height } = getSize(size);
return { return {
height, height,
paddingLeft: padding, paddingLeft: padding,
paddingRight: padding, paddingRight: padding,
border: noBorder ? 'none' : '1px solid', border: noBorder ? 'none' : '1px solid',
WebkitAppRegion: 'no-drag', WebkitAppRegion: 'no-drag',
...displayInlineFlex('center', 'center'), ...displayInlineFlex('center', 'center'),
gap: '8px', gap: '8px',
position: 'relative', position: 'relative',
// TODO: disabled color is not decided // TODO: disabled color is not decided
...(disabled ...(disabled
? { ? {
cursor: 'not-allowed', cursor: 'not-allowed',
pointerEvents: 'none', pointerEvents: 'none',
color: 'var(--affine-text-disable-color)', color: 'var(--affine-text-disable-color)',
} }
: {}), : {}),
transition: 'background .15s', transition: 'background .15s',
// TODO: Implement circle shape // TODO: Implement circle shape
borderRadius: shape === 'default' ? borderRadius : height / 2, borderRadius: shape === 'default' ? borderRadius : height / 2,
fontSize, fontSize,
fontWeight: bold ? '500' : '400', fontWeight: bold ? '500' : '400',
'.affine-button-icon': { '.affine-button-icon': {
color: 'var(--affine-icon-color)', color: 'var(--affine-icon-color)',
}, },
'.affine-button-icon__fixed': { '.affine-button-icon__fixed': {
color: 'var(--affine-icon-color)', color: 'var(--affine-icon-color)',
}, },
'>span': { '>span': {
width: 'max-content', width: 'max-content',
}, },
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
...getButtonColors(theme, type, disabled, { ...getButtonColors(theme, type, disabled, {
hoverBackground, hoverBackground,
hoverColor, hoverColor,
hoverStyle, hoverStyle,
}), }),
// TODO: disabled hover should be implemented // TODO: disabled hover should be implemented
// //
// ':hover': { // ':hover': {
// color: hoverColor ?? 'var(--affine-primary-color)', // color: hoverColor ?? 'var(--affine-primary-color)',
// background: hoverBackground ?? 'var(--affine-hover-color)', // background: hoverBackground ?? 'var(--affine-hover-color)',
// '.affine-button-icon':{ // '.affine-button-icon':{
// //
// } // }
// ...(hoverStyle ?? {}), // ...(hoverStyle ?? {}),
// }, // },
}; };
} });
);

View File

@ -2,18 +2,18 @@ import type { CSSProperties } from 'react';
import { displayFlex, styled } from '../../styles'; import { displayFlex, styled } from '../../styles';
export const StyledEmptyContainer = styled('div')<{ style?: CSSProperties }>( export const StyledEmptyContainer = styled('div')<{ style?: CSSProperties }>(({
({ style }) => { style,
return { }) => {
height: '100%', return {
...displayFlex('center', 'center'), height: '100%',
flexDirection: 'column', ...displayFlex('center', 'center'),
color: 'var(--affine-text-secondary-color)', flexDirection: 'column',
svg: { color: 'var(--affine-text-secondary-color)',
width: style?.width ?? '248px', svg: {
height: style?.height ?? '216px', width: style?.width ?? '248px',
fontSize: style?.fontSize ?? 'inherit', height: style?.height ?? '216px',
}, fontSize: style?.fontSize ?? 'inherit',
}; },
} };
); });

View File

@ -29,30 +29,28 @@ export const Content = styled('div', {
'align', 'align',
].includes(prop as string); ].includes(prop as string);
}, },
})<ContentProps>( })<ContentProps>(({
({ color,
color, fontSize,
fontSize, weight,
weight, lineHeight,
lineHeight, ellipsis,
ellipsis, lineNum,
lineNum, width,
maxWidth,
align,
}) => {
return {
width, width,
maxWidth, maxWidth,
align, textAlign: align,
}) => { display: 'inline-block',
return { color: color ?? 'var(--affine-text-primary-color)',
width, fontSize: fontSize ?? 'var(--affine-font-base)',
maxWidth, fontWeight: weight ?? 400,
textAlign: align, lineHeight: lineHeight ?? 1.5,
display: 'inline-block', ...(ellipsis ? textEllipsis(lineNum) : {}),
color: color ?? 'var(--affine-text-primary-color)', };
fontSize: fontSize ?? 'var(--affine-font-base)', });
fontWeight: weight ?? 400,
lineHeight: lineHeight ?? 1.5,
...(ellipsis ? textEllipsis(lineNum) : {}),
};
}
);
export default Content; export default Content;

View File

@ -47,8 +47,22 @@ export const Wrapper = styled('div', {
'marginBottom', 'marginBottom',
].includes(prop as string); ].includes(prop as string);
}, },
})<WrapperProps>( })<WrapperProps>(({
({ display,
width,
height,
padding,
margin,
paddingTop,
paddingRight,
paddingLeft,
paddingBottom,
marginTop,
marginLeft,
marginRight,
marginBottom,
}) => {
return {
display, display,
width, width,
height, height,
@ -62,24 +76,8 @@ export const Wrapper = styled('div', {
marginLeft, marginLeft,
marginRight, marginRight,
marginBottom, marginBottom,
}) => { };
return { });
display,
width,
height,
padding,
margin,
paddingTop,
paddingRight,
paddingLeft,
paddingBottom,
marginTop,
marginLeft,
marginRight,
marginBottom,
};
}
);
export const FlexWrapper = styled(Wrapper, { export const FlexWrapper = styled(Wrapper, {
shouldForwardProp: prop => { shouldForwardProp: prop => {
@ -92,26 +90,24 @@ export const FlexWrapper = styled(Wrapper, {
'flexGrow', 'flexGrow',
].includes(prop as string); ].includes(prop as string);
}, },
})<FlexWrapperProps>( })<FlexWrapperProps>(({
({ justifyContent,
alignItems,
wrap = false,
flexDirection,
flexShrink,
flexGrow,
}) => {
return {
display: 'flex',
justifyContent, justifyContent,
alignItems, alignItems,
wrap = false, flexWrap: wrap ? 'wrap' : 'nowrap',
flexDirection, flexDirection,
flexShrink, flexShrink,
flexGrow, flexGrow,
}) => { };
return { });
display: 'flex',
justifyContent,
alignItems,
flexWrap: wrap ? 'wrap' : 'nowrap',
flexDirection,
flexShrink,
flexGrow,
};
}
);
// TODO: Complete me // TODO: Complete me
export const GridWrapper = styled(Wrapper, { export const GridWrapper = styled(Wrapper, {

View File

@ -54,53 +54,51 @@ export const StyledMenuItem = styled('button')<{
disabled?: boolean; disabled?: boolean;
active?: boolean; active?: boolean;
disableHover?: boolean; disableHover?: boolean;
}>( }>(({
({ isDir = false,
isDir = false, disabled = false,
disabled = false, active = false,
active = false, disableHover = false,
disableHover = false, }) => {
}) => { return {
return { width: '100%',
width: '100%', borderRadius: '5px',
borderRadius: '5px', padding: '0 14px',
padding: '0 14px', fontSize: 'var(--affine-font-base)',
fontSize: 'var(--affine-font-base)', height: '32px',
height: '32px', ...displayFlex('flex-start', 'center'),
...displayFlex('flex-start', 'center'), cursor: isDir ? 'pointer' : '',
cursor: isDir ? 'pointer' : '', position: 'relative',
position: 'relative', backgroundColor: 'transparent',
backgroundColor: 'transparent', color: disabled
? 'var(--affine-text-disable-color)'
: 'var(--affine-text-primary-color)',
svg: {
color: disabled color: disabled
? 'var(--affine-text-disable-color)' ? 'var(--affine-text-disable-color)'
: 'var(--affine-text-primary-color)', : 'var(--affine-icon-color)',
svg: { },
color: disabled ...(disabled
? 'var(--affine-text-disable-color)' ? {
: 'var(--affine-icon-color)', cursor: 'not-allowed',
}, pointerEvents: 'none',
...(disabled }
? { : {}),
cursor: 'not-allowed',
pointerEvents: 'none',
}
: {}),
':hover': ':hover':
disabled || disableHover disabled || disableHover
? {} ? {}
: { : {
backgroundColor: 'var(--affine-hover-color)',
},
...(active && !disabled
? {
backgroundColor: 'var(--affine-hover-color)', backgroundColor: 'var(--affine-hover-color)',
} },
: {}),
}; ...(active && !disabled
} ? {
); backgroundColor: 'var(--affine-hover-color)',
}
: {}),
};
});
export const StyledButton = styled(Button)(() => { export const StyledButton = styled(Button)(() => {
return { return {

View File

@ -1,36 +1,36 @@
import { styled, textEllipsis } from '../../styles'; import { styled, textEllipsis } from '../../styles';
import type { TableCellProps } from './interface'; import type { TableCellProps } from './interface';
export const StyledTable = styled('table')<{ showBorder?: boolean }>( export const StyledTable = styled('table')<{ showBorder?: boolean }>(({
({ showBorder }) => { showBorder,
return { }) => {
fontSize: 'var(--affine-font-base)', return {
color: 'var(--affine-text-primary-color)', fontSize: 'var(--affine-font-base)',
tableLayout: 'fixed', color: 'var(--affine-text-primary-color)',
width: '100%', tableLayout: 'fixed',
borderCollapse: 'collapse', width: '100%',
borderSpacing: '0', borderCollapse: 'collapse',
borderSpacing: '0',
...(typeof showBorder === 'boolean' ...(typeof showBorder === 'boolean'
? { ? {
thead: { thead: {
'::after': { '::after': {
display: 'block', display: 'block',
position: 'absolute', position: 'absolute',
content: '""', content: '""',
width: '100%', width: '100%',
height: '1px', height: '1px',
left: 0, left: 0,
background: 'var(--affine-border-color)', background: 'var(--affine-border-color)',
transition: 'opacity .15s', transition: 'opacity .15s',
opacity: showBorder ? 1 : 0, opacity: showBorder ? 1 : 0,
},
}, },
} },
: {}), }
}; : {}),
} };
); });
export const StyledTableBody = styled('tbody')(() => { export const StyledTableBody = styled('tbody')(() => {
return { return {
@ -43,31 +43,29 @@ export const StyledTableCell = styled('td')<
TableCellProps, TableCellProps,
'ellipsis' | 'align' | 'proportion' | 'active' | 'onClick' 'ellipsis' | 'align' | 'proportion' | 'active' | 'onClick'
> >
>( >(({
({ align = 'left',
align = 'left', ellipsis = false,
ellipsis = false, proportion,
proportion, active = false,
active = false, onClick,
onClick, }) => {
}) => { const width = proportion ? `${proportion * 100}%` : 'auto';
const width = proportion ? `${proportion * 100}%` : 'auto'; return {
return { width,
width, height: '52px',
height: '52px', paddingLeft: '16px',
paddingLeft: '16px', boxSizing: 'border-box',
boxSizing: 'border-box', textAlign: align,
textAlign: align, verticalAlign: 'middle',
verticalAlign: 'middle', whiteSpace: 'nowrap',
whiteSpace: 'nowrap', userSelect: 'none',
userSelect: 'none', fontSize: 'var(--affine-font-sm)',
fontSize: 'var(--affine-font-sm)', ...(active ? { color: 'var(--affine-text-primary-color)' } : {}),
...(active ? { color: 'var(--affine-text-primary-color)' } : {}), ...(ellipsis ? textEllipsis(1) : {}),
...(ellipsis ? textEllipsis(1) : {}), ...(onClick ? { cursor: 'pointer' } : {}),
...(onClick ? { cursor: 'pointer' } : {}), };
}; });
}
);
export const StyledTableHead = styled('thead')(() => { export const StyledTableHead = styled('thead')(() => {
return { return {

View File

@ -5,7 +5,7 @@
"module": "./src/index.ts", "module": "./src/index.ts",
"types": "./src/global.ts", "types": "./src/global.ts",
"devDependencies": { "devDependencies": {
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"next": "=13.4.2", "next": "=13.4.2",
"react": "18.3.0-canary-1fdacbefd-20230630", "react": "18.3.0-canary-1fdacbefd-20230630",
"react-dom": "18.3.0-canary-1fdacbefd-20230630", "react-dom": "18.3.0-canary-1fdacbefd-20230630",

View File

@ -134,7 +134,7 @@ type NewSettingProps<Flavour extends keyof WorkspaceRegistry> =
onDeleteWorkspace: (id: string) => Promise<void>; onDeleteWorkspace: (id: string) => Promise<void>;
onTransformWorkspace: < onTransformWorkspace: <
From extends keyof WorkspaceRegistry, From extends keyof WorkspaceRegistry,
To extends keyof WorkspaceRegistry To extends keyof WorkspaceRegistry,
>( >(
from: From, from: From,
to: To, to: To,

View File

@ -16,7 +16,7 @@
"@graphql-codegen/typescript-operations": "^4.0.1", "@graphql-codegen/typescript-operations": "^4.0.1",
"@types/lodash-es": "^4.17.7", "@types/lodash-es": "^4.17.7",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"prettier": "^2.8.8" "prettier": "^3.0.0"
}, },
"scripts": { "scripts": {
"postinstall": "gql-gen" "postinstall": "gql-gen"

View File

@ -12,7 +12,7 @@ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
}; };
export type MakeEmpty< export type MakeEmpty<
T extends { [key: string]: unknown }, T extends { [key: string]: unknown },
K extends keyof T K extends keyof T,
> = { [_ in K]?: never }; > = { [_ in K]?: never };
export type Incremental<T> = export type Incremental<T> =
| T | T

View File

@ -33,7 +33,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "^18.16.19", "@types/node": "^18.16.19",
"@types/prettier": "^2.7.3", "@types/prettier": "^2.7.3",
"prettier": "^2.8.8", "prettier": "^3.0.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^5.1.6" "typescript": "^5.1.6"
}, },

View File

@ -138,7 +138,7 @@ const main = async () => {
await fs.writeFile( await fs.writeFile(
path.resolve(RES_DIR, 'index.ts'), path.resolve(RES_DIR, 'index.ts'),
format(code, { await format(code, {
parser: 'typescript', parser: 'typescript',
singleQuote: true, singleQuote: true,
trailingComma: 'es5', trailingComma: 'es5',

View File

@ -2,7 +2,7 @@ import type { TypedEventEmitter } from './core/event-emitter';
export abstract class HandlerManager< export abstract class HandlerManager<
Namespace extends string, Namespace extends string,
Handlers extends Record<string, PrimitiveHandlers> Handlers extends Record<string, PrimitiveHandlers>,
> { > {
static instance: HandlerManager<string, Record<string, PrimitiveHandlers>>; static instance: HandlerManager<string, Record<string, PrimitiveHandlers>>;
private _app: App<Namespace, Handlers>; private _app: App<Namespace, Handlers>;
@ -128,7 +128,7 @@ export type UnwrapManagerHandlerToServerSide<
frameId: number; frameId: number;
processId: number; processId: number;
}, },
Manager extends HandlerManager<string, Record<string, PrimitiveHandlers>> Manager extends HandlerManager<string, Record<string, PrimitiveHandlers>>,
> = Manager extends HandlerManager<infer _, infer Handlers> > = Manager extends HandlerManager<infer _, infer Handlers>
? { ? {
[K in keyof Handlers]: Handlers[K] extends ( [K in keyof Handlers]: Handlers[K] extends (
@ -140,7 +140,7 @@ export type UnwrapManagerHandlerToServerSide<
: never; : never;
export type UnwrapManagerHandlerToClientSide< export type UnwrapManagerHandlerToClientSide<
Manager extends HandlerManager<string, Record<string, PrimitiveHandlers>> Manager extends HandlerManager<string, Record<string, PrimitiveHandlers>>,
> = Manager extends HandlerManager<infer _, infer Handlers> > = Manager extends HandlerManager<infer _, infer Handlers>
? { ? {
[K in keyof Handlers]: Handlers[K] extends ( [K in keyof Handlers]: Handlers[K] extends (
@ -156,7 +156,7 @@ export type UnwrapManagerHandlerToClientSide<
*/ */
export type App< export type App<
Namespace extends string, Namespace extends string,
Handlers extends Record<string, PrimitiveHandlers> Handlers extends Record<string, PrimitiveHandlers>,
> = TypedEventEmitter<{ > = TypedEventEmitter<{
[K in keyof Handlers as `${Namespace}:${K & string}`]: Handlers[K]; [K in keyof Handlers as `${Namespace}:${K & string}`]: Handlers[K];
}>; }>;

View File

@ -6,11 +6,11 @@
"jotai": "^2.2.1" "jotai": "^2.2.1"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"lottie-web": "^5.12.2" "lottie-web": "^5.12.2"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -21,11 +21,11 @@
} }
}, },
"dependencies": { "dependencies": {
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/editor": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/editor": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/lit": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/lit": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"jotai": "^2.2.1" "jotai": "^2.2.1"
}, },
"devDependencies": { "devDependencies": {

View File

@ -88,7 +88,7 @@ const rootWorkspacesMetadataPromiseAtom = atom<
flavour: Plugin.flavour, flavour: Plugin.flavour,
// new workspace should all support sub-doc feature // new workspace should all support sub-doc feature
version: WorkspaceVersion.SubDoc, version: WorkspaceVersion.SubDoc,
} satisfies RootWorkspaceMetadataV2) }) satisfies RootWorkspaceMetadataV2
); );
}).filter((ids): ids is RootWorkspaceMetadataV2 => !!ids); }).filter((ids): ids is RootWorkspaceMetadataV2 => !!ids);
}; };

View File

@ -36,8 +36,8 @@
"idb": "^7.1.1" "idb": "^7.1.1"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"vite": "^4.3.9", "vite": "^4.3.9",
"vite-plugin-dts": "3.0.2", "vite-plugin-dts": "3.0.2",
"y-indexeddb": "^9.0.11" "y-indexeddb": "^9.0.11"

View File

@ -131,9 +131,8 @@ const getFollowingUpAtoms = (
throw new Error('followupLLMChain not set'); throw new Error('followupLLMChain not set');
} }
const messages = await chatHistory.getMessages(); const messages = await chatHistory.getMessages();
const aiMessage = messages.findLast( const aiMessage = messages.findLast(message => message._getType() === 'ai')
message => message._getType() === 'ai' ?.text;
)?.text;
const humanMessage = messages.findLast( const humanMessage = messages.findLast(
message => message._getType() === 'human' message => message._getType() === 'human'
)?.text; )?.text;

View File

@ -11,10 +11,10 @@
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*", "@affine/env": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/block-std": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/blocks": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/blocks": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/global": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/global": "0.0.0-20230705162600-2cb608e4-nightly",
"@blocksuite/store": "0.0.0-20230705060316-3f52aee9-nightly", "@blocksuite/store": "0.0.0-20230705162600-2cb608e4-nightly",
"@playwright/test": "=1.33.0", "@playwright/test": "=1.33.0",
"express": "^4.18.2", "express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1", "http-proxy-middleware": "^3.0.0-beta.1",

207
yarn.lock
View File

@ -26,10 +26,10 @@ __metadata:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@affine/env": "workspace:*" "@affine/env": "workspace:*"
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@playwright/test": =1.33.0 "@playwright/test": =1.33.0
express: ^4.18.2 express: ^4.18.2
http-proxy-middleware: ^3.0.0-beta.1 http-proxy-middleware: ^3.0.0-beta.1
@ -96,12 +96,12 @@ __metadata:
"@affine/i18n": "workspace:*" "@affine/i18n": "workspace:*"
"@affine/jotai": "workspace:*" "@affine/jotai": "workspace:*"
"@affine/workspace": "workspace:*" "@affine/workspace": "workspace:*"
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/icons": ^2.1.24 "@blocksuite/icons": ^2.1.24
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@dnd-kit/core": ^6.0.8 "@dnd-kit/core": ^6.0.8
"@dnd-kit/sortable": ^7.0.2 "@dnd-kit/sortable": ^7.0.2
"@emotion/cache": ^11.11.0 "@emotion/cache": ^11.11.0
@ -187,12 +187,12 @@ __metadata:
resolution: "@affine/docs@workspace:apps/docs" resolution: "@affine/docs@workspace:apps/docs"
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@types/react": ^18.2.14 "@types/react": ^18.2.14
"@types/react-dom": ^18.2.6 "@types/react-dom": ^18.2.6
"@vanilla-extract/css": ^1.12.0 "@vanilla-extract/css": ^1.12.0
@ -215,10 +215,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@affine/native": "workspace:*" "@affine/native": "workspace:*"
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@electron-forge/cli": ^6.2.1 "@electron-forge/cli": ^6.2.1
"@electron-forge/core": ^6.2.1 "@electron-forge/core": ^6.2.1
"@electron-forge/core-utils": ^6.2.1 "@electron-forge/core-utils": ^6.2.1
@ -263,7 +263,7 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@affine/env@workspace:packages/env" resolution: "@affine/env@workspace:packages/env"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
lit: ^2.7.5 lit: ^2.7.5
next: =13.4.2 next: =13.4.2
react: 18.3.0-canary-1fdacbefd-20230630 react: 18.3.0-canary-1fdacbefd-20230630
@ -287,7 +287,7 @@ __metadata:
"@types/lodash-es": ^4.17.7 "@types/lodash-es": ^4.17.7
graphql: ^16.7.1 graphql: ^16.7.1
lodash-es: ^4.17.21 lodash-es: ^4.17.21
prettier: ^2.8.8 prettier: ^3.0.0
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -298,7 +298,7 @@ __metadata:
"@types/node": ^18.16.19 "@types/node": ^18.16.19
"@types/prettier": ^2.7.3 "@types/prettier": ^2.7.3
i18next: ^23.2.6 i18next: ^23.2.6
prettier: ^2.8.8 prettier: ^3.0.0
react-i18next: ^13.0.1 react-i18next: ^13.0.1
ts-node: ^10.9.1 ts-node: ^10.9.1
typescript: ^5.1.6 typescript: ^5.1.6
@ -309,11 +309,11 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@affine/jotai@workspace:packages/jotai" resolution: "@affine/jotai@workspace:packages/jotai"
dependencies: dependencies:
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
jotai: ^2.2.1 jotai: ^2.2.1
lottie-web: ^5.12.2 lottie-web: ^5.12.2
peerDependencies: peerDependencies:
@ -372,7 +372,7 @@ __metadata:
nx: 16.4.3 nx: 16.4.3
nx-cloud: latest nx-cloud: latest
nyc: ^15.1.0 nyc: ^15.1.0
prettier: ^2.8.8 prettier: ^3.0.0
serve: ^14.2.0 serve: ^14.2.0
ts-node: ^10.9.1 ts-node: ^10.9.1
typescript: ^5.1.6 typescript: ^5.1.6
@ -464,13 +464,13 @@ __metadata:
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@affine/i18n": "workspace:*" "@affine/i18n": "workspace:*"
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/icons": ^2.1.24 "@blocksuite/icons": ^2.1.24
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@storybook/addon-actions": ^7.0.24 "@storybook/addon-actions": ^7.0.24
"@storybook/addon-essentials": ^7.0.24 "@storybook/addon-essentials": ^7.0.24
"@storybook/addon-interactions": ^7.0.24 "@storybook/addon-interactions": ^7.0.24
@ -522,13 +522,13 @@ __metadata:
"@affine/jotai": "workspace:*" "@affine/jotai": "workspace:*"
"@affine/templates": "workspace:*" "@affine/templates": "workspace:*"
"@affine/workspace": "workspace:*" "@affine/workspace": "workspace:*"
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/icons": ^2.1.24 "@blocksuite/icons": ^2.1.24
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
"@dnd-kit/core": ^6.0.8 "@dnd-kit/core": ^6.0.8
"@dnd-kit/sortable": ^7.0.2 "@dnd-kit/sortable": ^7.0.2
"@emotion/cache": ^11.11.0 "@emotion/cache": ^11.11.0
@ -3535,24 +3535,24 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/block-std@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/block-std@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/block-std@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/block-std@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
peerDependencies: peerDependencies:
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
checksum: be17874e75a2f5ad79bf1dc3db1d78d733ee02f678e62b69595f26ba0fb67614d7c5fd5caa95d1a8a75d7b98f072a069e1ba4483661b32a6c3cc80141f76487e checksum: 1d8bd45acaf09de0b0b9fbfdcfbca7d96fd0a200949bdbddf955dbde58ee6f354d0218d7ea9e917a94ad765f8dacbd20032d65e29414d76fe8a57ff16568eeeb
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/blocks@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/blocks@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/blocks@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/blocks@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/phasor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/phasor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/virgo": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/virgo": 0.0.0-20230705162600-2cb608e4-nightly
"@floating-ui/dom": ^1.2.9 "@floating-ui/dom": ^1.2.9
hotkeys-js: ^3.10.1 hotkeys-js: ^3.10.1
html2canvas: ^1.4.1 html2canvas: ^1.4.1
@ -3564,34 +3564,34 @@ __metadata:
turndown: ^7.1.1 turndown: ^7.1.1
zod: ^3.21.4 zod: ^3.21.4
peerDependencies: peerDependencies:
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
yjs: ^13 yjs: ^13
checksum: 246648f6a8fabba0383bd80cf4a39d8aee7149b2e8bbc121e2ac8dd8c72a6d31e8414c8857307a7f77fd81e7d35d9517eb1b1486b49dce9c601d9e52aa217428 checksum: 5fbfa108ac37a39587cf4095fda55ae74052adab08ac033fa09c6d01535fd179d17bc1912bbe2efba99629dad8d9eaa0dbae7d0d0f2539580ff5c54eae360d9f
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/editor@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/editor@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/editor@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/editor@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@toeverything/theme": 0.7.1 "@toeverything/theme": 0.7.1
lit: ^2.7.3 lit: ^2.7.3
marked: ^4.2.12 marked: ^4.2.12
turndown: ^7.1.1 turndown: ^7.1.1
peerDependencies: peerDependencies:
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
checksum: e53109b6dd1aa0525a78fece1c038f6adc77c5f58d1cf1f19d29730e90d2382e98d54287338c149faa329e0b0c0263802bd79b2cdc186f0f7c26a984cf5fb7de checksum: 107887a6abd144a062f1f6abf68164bf63e4aac659a117da5b70702f1cfc8b88228923faaf1bc2d8effde9ddb8e59cd53ed335ea6b6624463212787816514d02
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/global@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/global@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/global@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/global@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
ansi-colors: ^4.1.3 ansi-colors: ^4.1.3
zod: ^3.21.4 zod: ^3.21.4
@ -3600,7 +3600,7 @@ __metadata:
peerDependenciesMeta: peerDependenciesMeta:
lit: lit:
optional: true optional: true
checksum: 3fd7d1549359a7a6e917cc134134c62af54537da2a6fbde47e2dc02998521879a4fcda3c74ecdb86ec7a2e3a3825722f6d2d5938546ffe96e71b98c1ece448a2 checksum: 0b722e28138223389a435dbdaec60204c8c259010807ff429099f2d55646a717cf64a876215776de77f77772101666c0fa233b8a2fb637a46167b6e9af016ad3
languageName: node languageName: node
linkType: hard linkType: hard
@ -3614,38 +3614,38 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/lit@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/lit@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/lit@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/lit@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
lit: ^2.7.3 lit: ^2.7.3
peerDependencies: peerDependencies:
"@blocksuite/block-std": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/block-std": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
checksum: 33ec12beff7c526fa62bb7b2641fe3d263b47a7baaf81d8c9aaab4557dbdd9c0bbf8e3e07a069aa739c8c241b37ce292f07ba1fab8ec69b52354fcb141e4aa1c checksum: 16d4b4e662750cbe26eb95ace29617c59106edc9ff1d15d03410c7cd455e7979cae9e2ba23cc213b6679249831e16b9e529a1595ab866edad0b0b3fa4597ae1b
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/phasor@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/phasor@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/phasor@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/phasor@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
fractional-indexing: ^3.2.0 fractional-indexing: ^3.2.0
peerDependencies: peerDependencies:
nanoid: ^4 nanoid: ^4
yjs: ^13 yjs: ^13
checksum: 00b08df56c33eae3d27c9a60a77b35214f8ecc3aa1344f56df2bd39619b4ad892a6212bce0452e9c15cd8dc1699d11bfb67548cf3f39bee91dd65152e7fa90d6 checksum: f549a56873bb124cfae9fc58fb2683c2a84303ff3c1ae645f723d6d09fccbef6dc47ed3764b43b4b2cbaea5c73cc6728ad9fe359aece55880bc169a953936af4
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/store@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/store@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/store@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/store@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/virgo": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/virgo": 0.0.0-20230705162600-2cb608e4-nightly
"@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
@ -3660,20 +3660,20 @@ __metadata:
peerDependencies: peerDependencies:
async-call-rpc: ^6 async-call-rpc: ^6
yjs: ^13 yjs: ^13
checksum: b4119af7056661cd373ac49e345754f5501d571018e899c000faceb16374e7ea75e071bf7b25890326231fd27f26bfced5249cb20b92a24947df70c8a25a5b59 checksum: dc55814fbe5194bf411e9b45dfdc3596bebecc1386d58687a0837c21c50c70656cdcaff1340f6e474504e035b8591f1d7cdf5a461fbc2de526ac91ca0d5d31ce
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/virgo@npm:0.0.0-20230705060316-3f52aee9-nightly": "@blocksuite/virgo@npm:0.0.0-20230705162600-2cb608e4-nightly":
version: 0.0.0-20230705060316-3f52aee9-nightly version: 0.0.0-20230705162600-2cb608e4-nightly
resolution: "@blocksuite/virgo@npm:0.0.0-20230705060316-3f52aee9-nightly" resolution: "@blocksuite/virgo@npm:0.0.0-20230705162600-2cb608e4-nightly"
dependencies: dependencies:
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
zod: ^3.21.4 zod: ^3.21.4
peerDependencies: peerDependencies:
lit: ^2.7 lit: ^2.7
yjs: ^13 yjs: ^13
checksum: 9247114b54239e387a6783e8c5958840e5503365a06a82f7055f9d2038959b876b39804eef678bd4b0ed9bc3b3d46af193465b75e7ee52a4883817b4a2a4dcf1 checksum: 7c8d5a96efea4e26dc36f4601d42ae7b928c84350450773535270f24370c3470c69e763836309c8cb6cb3e8817c6148ba2b318ed7de6e38b72f7eae035932657
languageName: node languageName: node
linkType: hard linkType: hard
@ -11254,11 +11254,11 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@toeverything/plugin-infra@workspace:packages/plugin-infra" resolution: "@toeverything/plugin-infra@workspace:packages/plugin-infra"
dependencies: dependencies:
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/editor": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/editor": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/global": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/global": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/lit": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/lit": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
jotai: ^2.2.1 jotai: ^2.2.1
vite: ^4.3.9 vite: ^4.3.9
vite-plugin-dts: 3.0.2 vite-plugin-dts: 3.0.2
@ -11292,8 +11292,8 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@toeverything/y-indexeddb@workspace:packages/y-indexeddb" resolution: "@toeverything/y-indexeddb@workspace:packages/y-indexeddb"
dependencies: dependencies:
"@blocksuite/blocks": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/blocks": 0.0.0-20230705162600-2cb608e4-nightly
"@blocksuite/store": 0.0.0-20230705060316-3f52aee9-nightly "@blocksuite/store": 0.0.0-20230705162600-2cb608e4-nightly
idb: ^7.1.1 idb: ^7.1.1
vite: ^4.3.9 vite: ^4.3.9
vite-plugin-dts: 3.0.2 vite-plugin-dts: 3.0.2
@ -25926,7 +25926,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"prettier@npm:^2.8.0, prettier@npm:^2.8.8": "prettier@npm:^2.8.0":
version: 2.8.8 version: 2.8.8
resolution: "prettier@npm:2.8.8" resolution: "prettier@npm:2.8.8"
bin: bin:
@ -25935,6 +25935,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"prettier@npm:^3.0.0":
version: 3.0.0
resolution: "prettier@npm:3.0.0"
bin:
prettier: bin/prettier.cjs
checksum: 6a832876a1552dc58330d2467874e5a0b46b9ccbfc5d3531eb69d15684743e7f83dc9fbd202db6270446deba9c82b79d24383d09924c462b457136a759425e33
languageName: node
linkType: hard
"pretty-format@npm:^27.0.2, pretty-format@npm:^27.5.1": "pretty-format@npm:^27.0.2, pretty-format@npm:^27.5.1":
version: 27.5.1 version: 27.5.1
resolution: "pretty-format@npm:27.5.1" resolution: "pretty-format@npm:27.5.1"