chore: remove next.js dependency (#3297)

This commit is contained in:
Alex Yang 2023-07-19 11:13:14 +08:00 committed by GitHub
parent 1abcdee2f0
commit 4ced66c236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 171 deletions

View File

@ -1,6 +1,6 @@
import { displayFlex, styled, textEllipsis } from '@affine/component';
import { Link } from '@mui/material';
import { baseTheme } from '@toeverything/theme';
import Link from 'next/link';
export const StyledSliderBarInnerWrapper = styled('div')(() => {
return {

View File

@ -1,7 +1,6 @@
import { ArrowDownSmallIcon } from '@blocksuite/icons';
import { Link, type LinkProps } from '@mui/material';
import clsx from 'clsx';
import type { LinkProps } from 'next/link';
import Link from 'next/link';
import React from 'react';
import * as styles from './index.css';

View File

@ -7,7 +7,6 @@
"types": "./src/global.ts",
"devDependencies": {
"@blocksuite/global": "0.0.0-20230717055529-79180930-nightly",
"next": "=13.4.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"zod": "^3.21.4"

View File

@ -33,7 +33,6 @@
},
"devDependencies": {
"@types/ws": "^8.5.5",
"next": "=13.4.2",
"ws": "^8.13.0"
},
"version": "0.7.0-canary.47"

172
yarn.lock
View File

@ -344,7 +344,6 @@ __metadata:
dependencies:
"@blocksuite/global": 0.0.0-20230717055529-79180930-nightly
lit: ^2.7.5
next: =13.4.2
react: 18.2.0
react-dom: 18.2.0
zod: ^3.21.4
@ -606,7 +605,6 @@ __metadata:
js-base64: ^3.7.5
ky: ^0.33.3
lib0: ^0.2.78
next: =13.4.2
react: 18.2.0
react-dom: 18.2.0
ws: ^8.13.0
@ -7040,76 +7038,6 @@ __metadata:
languageName: node
linkType: hard
"@next/env@npm:13.4.2":
version: 13.4.2
resolution: "@next/env@npm:13.4.2"
checksum: 103f0e836c16f69067410d780a411668c640b93cb380ba5a13a5d014f5e83bc9b4745c8840e319aebffc31b3cddeb9804e96ccca1411a11de0de6056c3d99f0a
languageName: node
linkType: hard
"@next/swc-darwin-arm64@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-darwin-arm64@npm:13.4.2"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@next/swc-darwin-x64@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-darwin-x64@npm:13.4.2"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@next/swc-linux-arm64-gnu@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-linux-arm64-gnu@npm:13.4.2"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@next/swc-linux-arm64-musl@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-linux-arm64-musl@npm:13.4.2"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@next/swc-linux-x64-gnu@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-linux-x64-gnu@npm:13.4.2"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@next/swc-linux-x64-musl@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-linux-x64-musl@npm:13.4.2"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@next/swc-win32-arm64-msvc@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-win32-arm64-msvc@npm:13.4.2"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@next/swc-win32-ia32-msvc@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-win32-ia32-msvc@npm:13.4.2"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@next/swc-win32-x64-msvc@npm:13.4.2":
version: 13.4.2
resolution: "@next/swc-win32-x64-msvc@npm:13.4.2"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@node-rs/argon2-android-arm-eabi@npm:1.5.0":
version: 1.5.0
resolution: "@node-rs/argon2-android-arm-eabi@npm:1.5.0"
@ -11458,7 +11386,7 @@ __metadata:
languageName: node
linkType: hard
"@swc/helpers@npm:0.5.1, @swc/helpers@npm:~0.5.0":
"@swc/helpers@npm:~0.5.0":
version: 0.5.1
resolution: "@swc/helpers@npm:0.5.1"
dependencies:
@ -14882,7 +14810,7 @@ __metadata:
languageName: node
linkType: hard
"busboy@npm:1.6.0, busboy@npm:^1.0.0, busboy@npm:^1.6.0":
"busboy@npm:^1.0.0, busboy@npm:^1.6.0":
version: 1.6.0
resolution: "busboy@npm:1.6.0"
dependencies:
@ -15104,7 +15032,7 @@ __metadata:
languageName: node
linkType: hard
"caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503":
"caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503":
version: 1.0.30001507
resolution: "caniuse-lite@npm:1.0.30001507"
checksum: 7044172bdf65140c927cdaaff50368a97676f06a9fd8b515c046613bdf52cb769e9efb832ee491b8f8cc21f82c15f154a896efbab690f431bb064c95f3a2b7a8
@ -15511,7 +15439,7 @@ __metadata:
languageName: node
linkType: hard
"client-only@npm:0.0.1, client-only@npm:^0.0.1":
"client-only@npm:^0.0.1":
version: 0.0.1
resolution: "client-only@npm:0.0.1"
checksum: 0c16bf660dadb90610553c1d8946a7fdfb81d624adea073b8440b7d795d5b5b08beb3c950c6a2cf16279365a3265158a236876d92bce16423c485c322d7dfaf8
@ -25008,7 +24936,7 @@ __metadata:
languageName: node
linkType: hard
"nanoid@npm:^3.3.1, nanoid@npm:^3.3.4, nanoid@npm:^3.3.6":
"nanoid@npm:^3.3.1, nanoid@npm:^3.3.6":
version: 3.3.6
resolution: "nanoid@npm:3.3.6"
bin:
@ -25090,67 +25018,6 @@ __metadata:
languageName: node
linkType: hard
"next@npm:=13.4.2":
version: 13.4.2
resolution: "next@npm:13.4.2"
dependencies:
"@next/env": 13.4.2
"@next/swc-darwin-arm64": 13.4.2
"@next/swc-darwin-x64": 13.4.2
"@next/swc-linux-arm64-gnu": 13.4.2
"@next/swc-linux-arm64-musl": 13.4.2
"@next/swc-linux-x64-gnu": 13.4.2
"@next/swc-linux-x64-musl": 13.4.2
"@next/swc-win32-arm64-msvc": 13.4.2
"@next/swc-win32-ia32-msvc": 13.4.2
"@next/swc-win32-x64-msvc": 13.4.2
"@swc/helpers": 0.5.1
busboy: 1.6.0
caniuse-lite: ^1.0.30001406
postcss: 8.4.14
styled-jsx: 5.1.1
zod: 3.21.4
peerDependencies:
"@opentelemetry/api": ^1.1.0
fibers: ">= 3.1.0"
node-sass: ^6.0.0 || ^7.0.0
react: ^18.2.0
react-dom: ^18.2.0
sass: ^1.3.0
dependenciesMeta:
"@next/swc-darwin-arm64":
optional: true
"@next/swc-darwin-x64":
optional: true
"@next/swc-linux-arm64-gnu":
optional: true
"@next/swc-linux-arm64-musl":
optional: true
"@next/swc-linux-x64-gnu":
optional: true
"@next/swc-linux-x64-musl":
optional: true
"@next/swc-win32-arm64-msvc":
optional: true
"@next/swc-win32-ia32-msvc":
optional: true
"@next/swc-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@opentelemetry/api":
optional: true
fibers:
optional: true
node-sass:
optional: true
sass:
optional: true
bin:
next: dist/bin/next
checksum: 73b9da0d72b54720791ec3e3a3c79922172de5df01d5157507bd095033c33cd611f35da3310d859b3a75456977a4a9a4ef311074517b172dddc92dc769e03e49
languageName: node
linkType: hard
"nice-try@npm:^1.0.4":
version: 1.0.5
resolution: "nice-try@npm:1.0.5"
@ -27106,17 +26973,6 @@ __metadata:
languageName: node
linkType: hard
"postcss@npm:8.4.14":
version: 8.4.14
resolution: "postcss@npm:8.4.14"
dependencies:
nanoid: ^3.3.4
picocolors: ^1.0.0
source-map-js: ^1.0.2
checksum: fe58766ff32e4becf65a7d57678995cfd239df6deed2fe0557f038b47c94e4132e7e5f68b5aa820c13adfec32e523b693efaeb65798efb995ce49ccd83953816
languageName: node
linkType: hard
"postcss@npm:^8.1.7, postcss@npm:^8.3.6, postcss@npm:^8.4.23":
version: 8.4.24
resolution: "postcss@npm:8.4.24"
@ -30273,22 +30129,6 @@ __metadata:
languageName: node
linkType: hard
"styled-jsx@npm:5.1.1":
version: 5.1.1
resolution: "styled-jsx@npm:5.1.1"
dependencies:
client-only: 0.0.1
peerDependencies:
react: ">= 16.8.0 || 17.x.x || ^18.0.0-0"
peerDependenciesMeta:
"@babel/core":
optional: true
babel-plugin-macros:
optional: true
checksum: 523a33b38603492547e861b98e29c873939b04e15fbe5ef16132c6f1e15958126647983c7d4675325038b428a5e91183d996e90141b18bdd1bbadf6e2c45b2fa
languageName: node
linkType: hard
"stylehacks@npm:^6.0.0":
version: 6.0.0
resolution: "stylehacks@npm:6.0.0"
@ -33145,7 +32985,7 @@ __metadata:
languageName: node
linkType: hard
"zod@npm:3.21.4, zod@npm:^3.21.4":
"zod@npm:^3.21.4":
version: 3.21.4
resolution: "zod@npm:3.21.4"
checksum: f185ba87342ff16f7a06686767c2b2a7af41110c7edf7c1974095d8db7a73792696bcb4a00853de0d2edeb34a5b2ea6a55871bc864227dace682a0a28de33e1f