From affbf4643d9b1fcd046e977ac45b990dec912a5e Mon Sep 17 00:00:00 2001 From: rivertwilight Date: Mon, 21 Oct 2024 22:01:07 +0800 Subject: [PATCH] feat: Upgrade to kindle-ui 1.1.14 --- package.json | 2 +- src/themes/pages/index.tsx | 1 + tsconfig.json | 75 +++++++++++++++++++++++++------------- yarn.lock | 10 ++--- 4 files changed, 56 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index fff90baa..755c72da 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "license": "MIT", "dependencies": { "@giscus/react": "^3.0.0", - "@kindle-ui/core": "^1.1.13", + "@kindle-ui/core": "^1.1.14", "@notion-stuff/blocks-markdown-parser": "^6.0.0", "@notionhq/client": "^2.2.3", "@vercel/analytics": "^0.1.8", diff --git a/src/themes/pages/index.tsx b/src/themes/pages/index.tsx index d37610d7..58bede59 100644 --- a/src/themes/pages/index.tsx +++ b/src/themes/pages/index.tsx @@ -66,6 +66,7 @@ function PostList({ ? post.frontmatter.date : "1970/01/01" } + allowWrap /> { diff --git a/tsconfig.json b/tsconfig.json index d775e770..dd2e1e43 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,28 +1,51 @@ { - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "module": "commonjs", - "strict": false, - "noImplicitAny": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "baseUrl": "./", - "paths": { - "@/components/*": ["src/components/*"], - "@/pages/*": ["src/pages/*"], - "@/utils/*": ["src/utils/*"], - "@/types/*": ["src/types/*"], - "@/themes/*": ["src/themes/*"], - } - }, - "exclude": ["node_modules"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/utils/notion.js", "src/utils/notion.js"] + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "module": "commonjs", + "strict": false, + "noImplicitAny": false, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "baseUrl": "./", + "paths": { + "@/components/*": [ + "src/components/*" + ], + "@/pages/*": [ + "src/pages/*" + ], + "@/utils/*": [ + "src/utils/*" + ], + "@/types/*": [ + "src/types/*" + ], + "@/themes/*": [ + "src/themes/*" + ] + }, + "incremental": true + }, + "exclude": [ + "node_modules" + ], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "src/utils/notion.js", + "src/utils/notion.js" + ] } diff --git a/yarn.lock b/yarn.lock index 8f1008f3..749c616d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1648,16 +1648,16 @@ __metadata: languageName: node linkType: hard -"@kindle-ui/core@npm:^1.1.13": - version: 1.1.13 - resolution: "@kindle-ui/core@npm:1.1.13" +"@kindle-ui/core@npm:^1.1.14": + version: 1.1.14 + resolution: "@kindle-ui/core@npm:1.1.14" dependencies: rollup-plugin-typescript2: ^0.35.0 styled-components: ^5.3.0 peerDependencies: react: ^17.0.2 react-dom: ^17.0.2 - checksum: 2d1fe13b215d24954b2c4eba0a8409857b32fbba76172d29d954f249e1d6622af50499b348e4abe5a04b2cc4b1431c419eb3c4bff8a46db6934f62cacb591c54 + checksum: 79dd121ec108b487a359c6d23b4638d537dd2efbfe3588f3e83b93f4e7ac54902d3630aa936ca547da1a244fd4ae8fa6a8a9a8920fdf17a052b5da526e107a10 languageName: node linkType: hard @@ -4979,7 +4979,7 @@ __metadata: resolution: "nblog@workspace:." dependencies: "@giscus/react": ^3.0.0 - "@kindle-ui/core": ^1.1.13 + "@kindle-ui/core": ^1.1.14 "@notion-stuff/blocks-markdown-parser": ^6.0.0 "@notionhq/client": ^2.2.3 "@svgr/webpack": 5.5.0