diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d3572b..b313e8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Install bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Install deps run: bun i diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52cb3dd..d3c459c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Install bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Install deps run: bun i diff --git a/package.json b/package.json index 884dde2..5c6aad6 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "@types/node": "^20.17.6", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "~1.2.2", "clean-pkg-json": "^1.2.0", "commitlint": "^19.6.0", "concurrently": "^9.1.0", @@ -99,9 +99,9 @@ "father": "^4.5.1", "father-plugin-dumi-theme": "1.0.0-rc.1", "husky": "^9.1.7", - "jsdom": "^22.1.0", + "jsdom": "^24.1.3", "leva": "^0.9.35", - "lint-staged": "^13.3.0", + "lint-staged": "^15.2.10", "prettier": "^3.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -110,14 +110,14 @@ "semantic-release": "^21.1.2", "stylelint": "^15.11.0", "typescript": "^5.6.3", - "vitest": "^1.6.0" + "vitest": "~1.2.2" }, "peerDependencies": { "@giscus/react": ">=3", "@lobehub/ui": ">=1", "antd": ">=5", "antd-style": ">=3", - "dumi": ">=2", + "dumi": ">=2.4", "lucide-react": ">=0.292", "react": ">=18", "react-dom": ">=18", diff --git a/src/builtins/Previewer/style.ts b/src/builtins/Previewer/style.ts index d46753b..3e4ab1a 100644 --- a/src/builtins/Previewer/style.ts +++ b/src/builtins/Previewer/style.ts @@ -12,9 +12,12 @@ export const useStyles = createStyles(({ css, token, prefixCls }) => { `, container: css` .dumi-default-previewer { + position: relative; + overflow: hidden; display: flex; flex-direction: column; + border-color: ${token.colorBorderSecondary}; &-demo {