chore: unify version (#1123)
This commit is contained in:
@@ -15,35 +15,36 @@
|
|||||||
"build:app": "tauri build"
|
"build:app": "tauri build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blocksuite/icons": "^2.0.14",
|
"@blocksuite/icons": "2.0.12",
|
||||||
"@blocksuite/store": "0.4.1",
|
"@blocksuite/store": "0.4.1",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.6",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.6",
|
||||||
"@tauri-apps/api": "^1.2.0",
|
"@tauri-apps/api": "^1.2.0",
|
||||||
"json-schema-to-typescript": "^11.0.2",
|
"json-schema-to-typescript": "^11.0.2",
|
||||||
"lib0": "^0.2.58",
|
"lib0": "^0.2.62",
|
||||||
"next": "^13.1.6",
|
"next": "13.1.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-is": "^18.2.0",
|
"react-is": "^18.2.0",
|
||||||
"react-router": "^6.5.0",
|
"react-router": "^6.5.0",
|
||||||
"react-router-dom": "^6.5.0",
|
"react-router-dom": "^6.5.0",
|
||||||
"y-protocols": "^1.0.5",
|
"y-protocols": "^1.0.5",
|
||||||
"yjs": "^13.5.43"
|
"yjs": "^13.5.46"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tauri-apps/cli": "^1.2.3",
|
"@tauri-apps/cli": "^1.2.3",
|
||||||
"@types/node": "^18.11.17",
|
"@types/node": "^18.14.0",
|
||||||
"@types/react": "^18.0.26",
|
"@types/react": "^18.0.28",
|
||||||
"@types/react-dom": "^18.0.9",
|
"@types/react-dom": "^18.0.11",
|
||||||
"concurrently": "^7.6.0",
|
"concurrently": "^7.6.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild": "^0.16.10",
|
"esbuild": "^0.17.8",
|
||||||
"prettier": "2.8.1",
|
"lit": "^2.6.1",
|
||||||
"rimraf": "^3.0.2",
|
"prettier": "2.8.4",
|
||||||
|
"rimraf": "^4.1.2",
|
||||||
"typescript": "^4.9.4",
|
"typescript": "^4.9.4",
|
||||||
"typesync": "^0.9.2",
|
"typesync": "^0.10.0",
|
||||||
"vite": "^4.0.2",
|
"vite": "^4.1.2",
|
||||||
"zx": "^7.1.1"
|
"zx": "^7.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"root": false,
|
"root": false,
|
||||||
"extends": "next/core-web-vitals"
|
"extends": "next/core-web-vitals",
|
||||||
|
"reportUnusedDisableDirectives": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
/* eslint @typescript-eslint/no-var-requires: "off" */
|
import { getGitVersion, getCommitHash } from './scripts/gitInfo.mjs';
|
||||||
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
import fs from 'node:fs';
|
||||||
const { dependencies } = require('./package.json');
|
import path from 'node:path';
|
||||||
const path = require('node:path');
|
import { printer } from './scripts/printer.mjs';
|
||||||
const printer = require('./scripts/printer').printer;
|
import debugLocal from 'next-debug-local';
|
||||||
|
|
||||||
|
const dependencies = JSON.parse(fs.readFileSync('./package.json', 'utf8'))[
|
||||||
|
'dependencies'
|
||||||
|
];
|
||||||
|
|
||||||
const enableDebugLocal = path.isAbsolute(process.env.LOCAL_BLOCK_SUITE ?? '');
|
const enableDebugLocal = path.isAbsolute(process.env.LOCAL_BLOCK_SUITE ?? '');
|
||||||
const EDITOR_VERSION = enableDebugLocal
|
const EDITOR_VERSION = enableDebugLocal
|
||||||
@@ -56,7 +60,6 @@ const nextConfig = {
|
|||||||
],
|
],
|
||||||
webpack: config => {
|
webpack: config => {
|
||||||
config.experiments = { ...config.experiments, topLevelAwait: true };
|
config.experiments = { ...config.experiments, topLevelAwait: true };
|
||||||
config.resolve.alias['yjs'] = require.resolve('yjs');
|
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.md$/i,
|
test: /\.md$/i,
|
||||||
loader: 'raw-loader',
|
loader: 'raw-loader',
|
||||||
@@ -81,7 +84,7 @@ const nextConfig = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const baseDir = process.env.LOCAL_BLOCK_SUITE ?? '/';
|
const baseDir = process.env.LOCAL_BLOCK_SUITE ?? '/';
|
||||||
const withDebugLocal = require('next-debug-local')(
|
const withDebugLocal = debugLocal(
|
||||||
{
|
{
|
||||||
'@blocksuite/editor': path.resolve(baseDir, 'packages', 'editor'),
|
'@blocksuite/editor': path.resolve(baseDir, 'packages', 'editor'),
|
||||||
'@blocksuite/blocks/models': path.resolve(
|
'@blocksuite/blocks/models': path.resolve(
|
||||||
@@ -115,4 +118,4 @@ const detectFirebaseConfig = () => {
|
|||||||
};
|
};
|
||||||
detectFirebaseConfig();
|
detectFirebaseConfig();
|
||||||
|
|
||||||
module.exports = withDebugLocal(nextConfig);
|
export default withDebugLocal(nextConfig);
|
||||||
@@ -16,50 +16,42 @@
|
|||||||
"@blocksuite/blocks": "0.4.1",
|
"@blocksuite/blocks": "0.4.1",
|
||||||
"@blocksuite/editor": "0.4.1",
|
"@blocksuite/editor": "0.4.1",
|
||||||
"@blocksuite/global": "0.4.1",
|
"@blocksuite/global": "0.4.1",
|
||||||
"@blocksuite/icons": "^2.0.14",
|
"@blocksuite/icons": "2.0.12",
|
||||||
"@blocksuite/store": "0.4.1",
|
"@blocksuite/store": "0.4.1",
|
||||||
"@emotion/css": "^11.10.5",
|
"@emotion/css": "^11.10.6",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.6",
|
||||||
"@emotion/server": "^11.10.0",
|
"@emotion/server": "^11.10.0",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.6",
|
||||||
"@fontsource/poppins": "^4.5.10",
|
"@fontsource/poppins": "^4.5.10",
|
||||||
"@fontsource/space-mono": "^4.5.10",
|
"@fontsource/space-mono": "^4.5.12",
|
||||||
"@mui/base": "=5.0.0-alpha.117",
|
"@mui/base": "5.0.0-alpha.118",
|
||||||
"@mui/icons-material": "=5.11.0",
|
"@mui/icons-material": "^5.11.9",
|
||||||
"@mui/material": "=5.11.8",
|
"@mui/material": "^5.11.9",
|
||||||
"@toeverything/pathfinder-logger": "workspace:@affine/logger@*",
|
"@toeverything/pathfinder-logger": "workspace:@affine/logger@*",
|
||||||
"cmdk": "^0.1.20",
|
"cmdk": "^0.1.22",
|
||||||
"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",
|
"next": "13.1.0",
|
||||||
"next-debug-local": "^0.1.5",
|
"next-debug-local": "^0.1.5",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.8.4",
|
||||||
"quill": "^1.3.7",
|
"quill": "^1.3.7",
|
||||||
"quill-cursors": "^4.0.0",
|
"quill-cursors": "^4.0.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"yjs": "^13.5.45",
|
"yjs": "^13.5.46",
|
||||||
"zustand": "^4.3.2"
|
"zustand": "^4.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.7.18",
|
"@types/node": "18.14.0",
|
||||||
"@types/react": "18.0.20",
|
"@types/react": "18.0.28",
|
||||||
"@types/react-dom": "18.0.6",
|
"@types/react-dom": "18.0.11",
|
||||||
"@types/wicg-file-system-access": "^2020.9.5",
|
"@types/wicg-file-system-access": "^2020.9.5",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^5.2.0",
|
||||||
"eslint-config-next": "12.3.1",
|
"eslint": "^8.34.0",
|
||||||
|
"eslint-config-next": "13.1.6",
|
||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5",
|
||||||
},
|
"webpack": "^5.75.0"
|
||||||
"eslintConfig": {
|
|
||||||
"extends": [
|
|
||||||
"next/core-web-vitals",
|
|
||||||
"plugin:@next/next/recommended"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"prettier/prettier": "warn"
|
|
||||||
},
|
|
||||||
"reportUnusedDisableDirectives": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
|
import { execSync } from 'node:child_process';
|
||||||
// import { execSync } from 'child_process'
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
||||||
const { execSync } = require('child_process');
|
|
||||||
|
|
||||||
const hasGit = () => {
|
const hasGit = () => {
|
||||||
try {
|
try {
|
||||||
@@ -41,7 +38,4 @@ const getGitVersion = () => {
|
|||||||
const getCommitHash = (rev = 'HEAD') =>
|
const getCommitHash = (rev = 'HEAD') =>
|
||||||
execSync(`git rev-parse --short ${rev}`).toString();
|
execSync(`git rev-parse --short ${rev}`).toString();
|
||||||
|
|
||||||
module.exports = {
|
export { getCommitHash, getGitVersion };
|
||||||
getGitVersion,
|
|
||||||
getCommitHash,
|
|
||||||
};
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
import chalk from 'chalk';
|
||||||
const chalk = require('chalk');
|
export const printer = {
|
||||||
const printer = {
|
|
||||||
debug: msg => {
|
debug: msg => {
|
||||||
const result = chalk.green`debug` + chalk.white(' - ' + msg);
|
const result = chalk.green`debug` + chalk.white(' - ' + msg);
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -17,5 +16,3 @@ const printer = {
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = { printer };
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
import { displayFlex, keyframes, styled } from '@affine/component';
|
import { displayFlex, keyframes, styled } from '@affine/component';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import spring, { toString } from 'css-spring';
|
import spring, { toString } from 'css-spring';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { displayFlex, keyframes, styled } from '@affine/component';
|
import { displayFlex, keyframes, styled } from '@affine/component';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import spring, { toString } from 'css-spring';
|
import spring, { toString } from 'css-spring';
|
||||||
import { CSSProperties } from 'react';
|
import { CSSProperties } from 'react';
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ import { cloneElement, FC, PropsWithChildren, ReactNode } from 'react';
|
|||||||
|
|
||||||
export const ProviderComposer: FC<
|
export const ProviderComposer: FC<
|
||||||
PropsWithChildren<{
|
PropsWithChildren<{
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
contexts: any;
|
contexts: any;
|
||||||
}>
|
}>
|
||||||
> = ({ contexts, children }) =>
|
> = ({ contexts, children }) =>
|
||||||
contexts.reduceRight(
|
contexts.reduceRight(
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
(kids: ReactNode, parent: any) =>
|
(kids: ReactNode, parent: any) =>
|
||||||
cloneElement(parent, {
|
cloneElement(parent, {
|
||||||
children: kids,
|
children: kids,
|
||||||
|
|||||||
@@ -52,22 +52,18 @@ export const WorkspaceDelete = ({
|
|||||||
<StyledTextContent>
|
<StyledTextContent>
|
||||||
<Trans i18nKey="Delete Workspace Description">
|
<Trans i18nKey="Delete Workspace Description">
|
||||||
Deleting (
|
Deleting (
|
||||||
<StyledWorkspaceName>
|
<StyledWorkspaceName>{workspace.name}</StyledWorkspaceName>)
|
||||||
{{ workspace: workspace.name }}
|
cannot be undone, please proceed with caution. along with all its
|
||||||
</StyledWorkspaceName>
|
content.
|
||||||
) cannot be undone, please proceed with caution. along with all
|
|
||||||
its content.
|
|
||||||
</Trans>
|
</Trans>
|
||||||
</StyledTextContent>
|
</StyledTextContent>
|
||||||
) : (
|
) : (
|
||||||
<StyledTextContent>
|
<StyledTextContent>
|
||||||
<Trans i18nKey="Delete Workspace Description2">
|
<Trans i18nKey="Delete Workspace Description2">
|
||||||
Deleting (
|
Deleting (
|
||||||
<StyledWorkspaceName>
|
<StyledWorkspaceName>{workspace.name}</StyledWorkspaceName>) will
|
||||||
{{ workspace: workspace.name }}
|
delete both local and cloud data, this operation cannot be undone,
|
||||||
</StyledWorkspaceName>
|
please proceed with caution.
|
||||||
) will delete both local and cloud data, this operation cannot be
|
|
||||||
undone, please proceed with caution.
|
|
||||||
</Trans>
|
</Trans>
|
||||||
</StyledTextContent>
|
</StyledTextContent>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -15,17 +15,16 @@ interface LoginModalProps {
|
|||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
onInviteSuccess: () => void;
|
onInviteSuccess: () => void;
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
export const debounce = <T extends (...args: any) => any>(
|
export const debounce = <T extends (...args: any) => any>(
|
||||||
fn: T,
|
fn: T,
|
||||||
time?: number,
|
time?: number,
|
||||||
immediate?: boolean
|
immediate?: boolean
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
): ((...args: any) => any) => {
|
): ((...args: any) => any) => {
|
||||||
let timeoutId: null | number;
|
let timeoutId: null | number;
|
||||||
let defaultImmediate = immediate || false;
|
let defaultImmediate = immediate || false;
|
||||||
const delay = time || 300;
|
const delay = time || 300;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
return (...args: any) => {
|
return (...args: any) => {
|
||||||
if (defaultImmediate) {
|
if (defaultImmediate) {
|
||||||
fn.apply(this, args);
|
fn.apply(this, args);
|
||||||
@@ -35,7 +34,7 @@ export const debounce = <T extends (...args: any) => any>(
|
|||||||
if (timeoutId) {
|
if (timeoutId) {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
timeoutId = setTimeout(() => {
|
timeoutId = setTimeout(() => {
|
||||||
fn.apply(this, args);
|
fn.apply(this, args);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
// FIXME: remove ignore
|
// FIXME: remove ignore
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
await removeMember(member.id);
|
await removeMember(member.id);
|
||||||
toast(
|
toast(
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ export const usePageHelper = (): EditorHandlers => {
|
|||||||
},
|
},
|
||||||
permanentlyDeletePage: pageId => {
|
permanentlyDeletePage: pageId => {
|
||||||
// TODO: workspace.meta.removePage or workspace.removePage?
|
// TODO: workspace.meta.removePage or workspace.removePage?
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
||||||
currentWorkspace!.blocksuiteWorkspace?.meta.removePage(pageId);
|
currentWorkspace!.blocksuiteWorkspace?.meta.removePage(pageId);
|
||||||
},
|
},
|
||||||
openPage: (pageId, query = {}, newTab = false) => {
|
openPage: (pageId, query = {}, newTab = false) => {
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ export const useConfirm: UseBoundStore<Store> = ((
|
|||||||
) => {
|
) => {
|
||||||
const api = useConfirmApi();
|
const api = useConfirmApi();
|
||||||
return useStore(api, selector, equals);
|
return useStore(api, selector, equals);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
}) as any;
|
}) as any;
|
||||||
|
|
||||||
function Records() {
|
function Records() {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import useCurrentPageMeta from '@/hooks/use-current-page-meta';
|
|||||||
|
|
||||||
export const ThemeContext = createContext<ThemeProviderValue>({
|
export const ThemeContext = createContext<ThemeProviderValue>({
|
||||||
mode: 'light',
|
mode: 'light',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
||||||
changeMode: () => {},
|
changeMode: () => {},
|
||||||
theme: getLightTheme('page'),
|
theme: getLightTheme('page'),
|
||||||
});
|
});
|
||||||
@@ -124,10 +124,7 @@ export const ThemeProvider = ({
|
|||||||
<Global
|
<Global
|
||||||
styles={css`
|
styles={css`
|
||||||
:root {
|
:root {
|
||||||
${
|
${globalThemeVariables(mode, themeStyle) as any}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
globalThemeVariables(mode, themeStyle) as any
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ export const useModal: UseBoundStore<Store> = ((
|
|||||||
) => {
|
) => {
|
||||||
const api = useModalApi();
|
const api = useModalApi();
|
||||||
return useStore(api, selector, equals);
|
return useStore(api, selector, equals);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
}) as any;
|
}) as any;
|
||||||
|
|
||||||
const Modals: React.FC = function Modal() {
|
const Modals: React.FC = function Modal() {
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ export function isMobile(userAgent: string) {
|
|||||||
|
|
||||||
export const getIsMobile = function () {
|
export const getIsMobile = function () {
|
||||||
return isMobile(
|
return isMobile(
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
navigator?.userAgent || navigator?.vendor || (window as any)?.opera
|
navigator?.userAgent || navigator?.vendor || (window as any)?.opera
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
export function debounce(fn: Function, timeout: number) {
|
export function debounce(fn: Function, timeout: number) {
|
||||||
let timeoutId: any;
|
let timeoutId: any;
|
||||||
|
|||||||
22
package.json
22
package.json
@@ -29,18 +29,18 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/cli": "^2.26.0",
|
"@changesets/cli": "^2.26.0",
|
||||||
"@playwright/test": "^1.29.1",
|
"@playwright/test": "^1.30.0",
|
||||||
"@testing-library/react": "^14.0.0",
|
"@testing-library/react": "^14.0.0",
|
||||||
"@types/eslint": "^8.4.10",
|
"@types/eslint": "^8.21.1",
|
||||||
"@types/node": "^18.11.17",
|
"@types/node": "^18.14.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
||||||
"@typescript-eslint/parser": "^5.47.0",
|
"@typescript-eslint/parser": "^5.52.0",
|
||||||
"@vitejs/plugin-react": "^3.1.0",
|
"@vitejs/plugin-react": "^3.1.0",
|
||||||
"@vitest/coverage-istanbul": "^0.28.5",
|
"@vitest/coverage-istanbul": "^0.28.5",
|
||||||
"concurrently": "^7.6.0",
|
"concurrently": "^7.6.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.34.0",
|
"eslint": "^8.34.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-react": "^7.32.2",
|
"eslint-plugin-react": "^7.32.2",
|
||||||
@@ -48,11 +48,11 @@
|
|||||||
"eslint-plugin-unused-imports": "^2.0.0",
|
"eslint-plugin-unused-imports": "^2.0.0",
|
||||||
"fake-indexeddb": "4.0.1",
|
"fake-indexeddb": "4.0.1",
|
||||||
"got": "^12.5.3",
|
"got": "^12.5.3",
|
||||||
"happy-dom": "^8.4.4",
|
"happy-dom": "^8.5.0",
|
||||||
"husky": "^8.0.2",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.1.0",
|
"lint-staged": "^13.1.2",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.8.4",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"pnpm": {
|
"pnpm": {
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"@tauri-apps/api@1.2.0": "patches/@tauri-apps__api@1.2.0.patch",
|
"@tauri-apps/api@1.2.0": "patches/@tauri-apps__api@1.2.0.patch",
|
||||||
"next@13.1.0": "patches/next@13.1.0.patch"
|
"next@13.1.6": "patches/next@13.1.0.patch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,14 +12,14 @@
|
|||||||
"@blocksuite/blocks": "0.4.1",
|
"@blocksuite/blocks": "0.4.1",
|
||||||
"@blocksuite/editor": "0.4.1",
|
"@blocksuite/editor": "0.4.1",
|
||||||
"@blocksuite/global": "0.4.1",
|
"@blocksuite/global": "0.4.1",
|
||||||
"@blocksuite/icons": "^2.0.2",
|
"@blocksuite/icons": "2.0.12",
|
||||||
"@blocksuite/react": "0.4.1",
|
"@blocksuite/react": "0.4.1",
|
||||||
"@blocksuite/store": "0.4.1",
|
"@blocksuite/store": "0.4.1",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.6",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.6",
|
||||||
"@mui/base": "=5.0.0-alpha.117",
|
"@mui/base": "5.0.0-alpha.118",
|
||||||
"@mui/icons-material": "=5.11.0",
|
"@mui/icons-material": "^5.11.9",
|
||||||
"@mui/material": "=5.11.8",
|
"@mui/material": "^5.11.9",
|
||||||
"lit": "^2.6.1",
|
"lit": "^2.6.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
@@ -31,14 +31,16 @@
|
|||||||
"@storybook/builder-vite": "^7.0.0-beta.46",
|
"@storybook/builder-vite": "^7.0.0-beta.46",
|
||||||
"@storybook/react": "^7.0.0-beta.46",
|
"@storybook/react": "^7.0.0-beta.46",
|
||||||
"@storybook/react-vite": "7.0.0-beta.46",
|
"@storybook/react-vite": "7.0.0-beta.46",
|
||||||
"@types/react": "^18.0.27",
|
"@swc/core": "^1.3.35",
|
||||||
"@types/react-dom": "18.0.10",
|
"@types/react": "^18.0.28",
|
||||||
|
"@types/react-dom": "18.0.11",
|
||||||
"@vitejs/plugin-react": "^3.1.0",
|
"@vitejs/plugin-react": "^3.1.0",
|
||||||
"storybook": "^7.0.0-beta.46",
|
"storybook": "^7.0.0-beta.46",
|
||||||
"swc": "^1.0.11",
|
"swc": "^1.0.11",
|
||||||
"swc-loader": "^0.2.3",
|
"swc-loader": "^0.2.3",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"vite": "^4.0.2",
|
"vite": "^4.1.2",
|
||||||
"webpack": "^5.75.0"
|
"webpack": "^5.75.0",
|
||||||
|
"yjs": "^13.5.46"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"scripts": {
|
|
||||||
"dev": "tsc --project ./tsconfig.json -w",
|
|
||||||
"build": "tsc --project ./tsconfig.json"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
||||||
@@ -15,9 +11,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/debug": "^4.1.7",
|
"@types/debug": "^4.1.7",
|
||||||
"fake-indexeddb": "4.0.1",
|
"fake-indexeddb": "4.0.1",
|
||||||
"lit": "^2.6.1",
|
"typescript": "^4.9.5"
|
||||||
"typescript": "^4.9.5",
|
|
||||||
"yjs": "^13.5.45"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blocksuite/blocks": "0.4.1",
|
"@blocksuite/blocks": "0.4.1",
|
||||||
@@ -25,13 +19,14 @@
|
|||||||
"@tauri-apps/api": "^1.2.0",
|
"@tauri-apps/api": "^1.2.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"encoding": "^0.1.13",
|
"encoding": "^0.1.13",
|
||||||
"firebase": "^9.15.0",
|
"firebase": "^9.17.1",
|
||||||
"idb-keyval": "^6.2.0",
|
"idb-keyval": "^6.2.0",
|
||||||
"js-base64": "^3.7.5",
|
"js-base64": "^3.7.5",
|
||||||
"ky": "^0.33.0",
|
"ky": "^0.33.2",
|
||||||
"ky-universal": "^0.11.0",
|
"ky-universal": "^0.11.0",
|
||||||
"lib0": "^0.2.58",
|
"lib0": "^0.2.62",
|
||||||
"swr": "^2.0.0",
|
"lit": "^2.6.1",
|
||||||
"y-protocols": "^1.0.5"
|
"y-protocols": "^1.0.5",
|
||||||
|
"yjs": "^13.5.46"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,12 +26,14 @@
|
|||||||
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"i18next": "^21.9.1",
|
"react": "^18.2.0",
|
||||||
"prettier": "^2.7.1",
|
"i18next": "^22.4.10",
|
||||||
"react-i18next": "^11.18.4"
|
"react-i18next": "^12.1.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^18.14.0",
|
||||||
"@types/prettier": "^2.7.2",
|
"@types/prettier": "^2.7.2",
|
||||||
|
"prettier": "^2.8.4",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,13 @@ import { initReactI18next, Trans, useTranslation } from 'react-i18next';
|
|||||||
import { LOCALES } from './resources';
|
import { LOCALES } from './resources';
|
||||||
import type en_US from './resources/en.json';
|
import type en_US from './resources/en.json';
|
||||||
|
|
||||||
|
declare module 'i18next' {
|
||||||
|
// Refs: https://www.i18next.com/overview/typescript#argument-of-type-defaulttfuncreturn-is-not-assignable-to-parameter-of-type-xyz
|
||||||
|
interface CustomTypeOptions {
|
||||||
|
returnNull: false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// const localStorage = {
|
// const localStorage = {
|
||||||
// getItem() {
|
// getItem() {
|
||||||
// return undefined;
|
// return undefined;
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^12.3.1",
|
"next": "^13.1.6",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.0.21",
|
"@types/react": "^18.0.28",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,15 @@
|
|||||||
"@blocksuite/global": "0.4.1",
|
"@blocksuite/global": "0.4.1",
|
||||||
"@blocksuite/react": "0.4.1",
|
"@blocksuite/react": "0.4.1",
|
||||||
"@blocksuite/store": "0.4.1",
|
"@blocksuite/store": "0.4.1",
|
||||||
|
"lit": "^2.6.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
"swr": "^2.0.3",
|
"swr": "^2.0.3",
|
||||||
|
"yjs": "^13.5.46",
|
||||||
"zustand": "^4.3.3"
|
"zustand": "^4.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.0.28"
|
"@types/react": "^18.0.28",
|
||||||
|
"@types/react-dom": "^18.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2734
pnpm-lock.yaml
generated
2734
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user