chore(deps): update dependency @rspress/plugin-preview to v2.0.0-rc.5 #1295

Open
renovate wants to merge 1 commit from renovate/rspress-plugin-preview-2.x-lockfile into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
@rspress/plugin-preview (source) 2.0.0-rc.12.0.0-rc.5 age confidence

Release Notes

web-infra-dev/rspress (@​rspress/plugin-preview)

v2.0.0-rc.5

Compare Source

What's Changed
New Features 🎉
  • feat(theme): support clickable badge in HomeHero by @​SoonIter in #​2969
  • feat(ssg-md): add SSG-MD support to OverviewGroup and FallbackHeading components (Vibe Kanban) by @​SoonIter in #​2966
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.4...v2.0.0-rc.5

v2.0.0-rc.4

Compare Source

What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.3...v2.0.0-rc.4

v2.0.0-rc.3

Compare Source

Highlights
🆕️ Support common tags

related PR: #​2879

You can use it in the frontmatter, and it also supports customization:

---
tag: new, experimental, ejectable
---
image
🌏 Enable text-autospace: normal; by default

related PR: #​2920

The text-autospace CSS property allows you to specify the space applied between Chinese/Japanese/Korean (CJK) and non-CJK characters.

/* If you don't like it, you can cancel it via `:root { text-autospace: unset; }` */
:root {
   text-autospace: normal;
}
What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.2...v2.0.0-rc.3

v2.0.0-rc.2

Compare Source

Breaking Changes🚨
theme folder should use @rspress/core/theme-original

related PR: #​2860

In Rspress V1 document, @theme is the alias for rspress/theme, but @theme is an alias which points to theme/index.tsx and falls back to rspress/theme.

rspress/theme or @rspress/core/theme points to Rspress's theme-default, they are actually different things.

We standardize this behavior, which is the same as docusaurus.

  1. In docs directory, @theme or @rspress/core/theme should be used, which points to theme/index.tsx and falls back to theme-default

  2. In theme directory , @theme-original or @rspress/core/theme-original should be used, which always points to Rspress's theme-default, used for users to customize themes, which is very useful for users who publish npm theme packages.

 // theme/index.tsx
- import { Layout as BasicLayout } from 'rspress/theme'; // or @​rspress/core/theme
+ import { Layout } from '@​rspress/core/theme-original';

 const Layout = () => {
    return <BasicLayout {...} />
 }
 
 export { Layout }
- export * from 'rspress/theme' // or @&#8203;rspress/core/theme
+ export * from '@&#8203;rspress/core/theme-original';
Merge @theme-assets to @theme

Before

We have a separate entry for exporting @​theme-assets

import { SvgWrapper } from '@&#8203;theme'
import SearchSvg from '@&#8203;theme-assets/Search';

<SvgWrapper icon={SearchSvg} />

After

@theme-assets has been removed. Icons are exported from @theme and prefixed with Icon, for example: IconSearch

import { SvgWrapper, IconSearch } from '@&#8203;theme';

<SvgWrapper icon={IconSearch} />
                   ^? type Icon = React.FC<React.SVGProps<SVGSVGElement>> | string;
Refactor @rspress/plugin-preview and simplify usage

related PR: #​2806

Before: Required declarations in both config file and MDX file.

pluginPreview({
  previewMode: 'iframe',
  iframeOptions: { position: 'fixed' },
});
```tsx preview

```

After: Only declare in the MDX file.

```tsx preview="iframe-fixed"

```
What's Changed
New Features 🎉
Performance 🚀
  • perf(theme/useWindowSize): optimize useWindowSize with debounce to reduce resize handler calls by @​Copilot in #​2849
Bug Fixes 🐞
Document 📖
Other Changes
New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.1...v2.0.0-rc.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@rspress/plugin-preview](https://github.com/web-infra-dev/rspress) ([source](https://github.com/web-infra-dev/rspress/tree/HEAD/packages/plugin-preview)) | [`2.0.0-rc.1` → `2.0.0-rc.5`](https://renovatebot.com/diffs/npm/@rspress%2fplugin-preview/2.0.0-rc.1/2.0.0-rc.5) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@rspress%2fplugin-preview/2.0.0-rc.5?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspress%2fplugin-preview/2.0.0-rc.1/2.0.0-rc.5?slim=true) | --- ### Release Notes <details> <summary>web-infra-dev/rspress (@&#8203;rspress/plugin-preview)</summary> ### [`v2.0.0-rc.5`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.5) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.4...v2.0.0-rc.5) <!-- Release notes generated using configuration in .github/release.yml at main --> ##### What's Changed ##### New Features 🎉 - feat(theme): support clickable badge in HomeHero by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2969](https://github.com/web-infra-dev/rspress/pull/2969) - feat(ssg-md): add SSG-MD support to OverviewGroup and FallbackHeading components (Vibe Kanban) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2966](https://github.com/web-infra-dev/rspress/pull/2966) ##### Bug Fixes 🐞 - fix: use layout effect for theme sync by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2961](https://github.com/web-infra-dev/rspress/pull/2961) - fix(theme): use modern sidebar CSS to respect system scrollbar settings by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2973](https://github.com/web-infra-dev/rspress/pull/2973) - fix(theme/nav): Fixed small layout shift on scroll by [@&#8203;elliotcourant](https://github.com/elliotcourant) in [#&#8203;2980](https://github.com/web-infra-dev/rspress/pull/2980) - fix(theme): Fixed step counter text alignment by [@&#8203;elliotcourant](https://github.com/elliotcourant) in [#&#8203;2981](https://github.com/web-infra-dev/rspress/pull/2981) ##### Document 📖 - docs: update links from rspack-contrib to rstackjs by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2953](https://github.com/web-infra-dev/rspress/pull/2953) - docs: add migrate from V1 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2954](https://github.com/web-infra-dev/rspress/pull/2954) - docs: add missing Layout slots (beforeNavMenu, afterNav) and add Layout Slots heading (Vibe Kanban) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2964](https://github.com/web-infra-dev/rspress/pull/2964) - docs: remove work-in-progress warning from CSS variables documentation (Vibe Kanban) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2972](https://github.com/web-infra-dev/rspress/pull/2972) - docs: add prettier-ignore to wrapCode examples in code-blocks documentation by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2974](https://github.com/web-infra-dev/rspress/pull/2974) - docs: improve plugin-llms warning about implementation limitations and SSR compatibility by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2975](https://github.com/web-infra-dev/rspress/pull/2975) - docs: add rspress-plugin-file-tree and use tree syntax for file tree code blocks by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2976](https://github.com/web-infra-dev/rspress/pull/2976) - docs: update auto-nav-sidebar to recommend index.mdx for dir, index convention by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2978](https://github.com/web-infra-dev/rspress/pull/2978) - docs: Update introduction and index for Rspress V2 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2971](https://github.com/web-infra-dev/rspress/pull/2971) - docs: add documentation for markdown.crossCompilerCache option by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2979](https://github.com/web-infra-dev/rspress/pull/2979) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2957](https://github.com/web-infra-dev/rspress/pull/2957) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.19.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2959](https://github.com/web-infra-dev/rspress/pull/2959) - chore(deps): update dependency [@&#8203;unhead/react](https://github.com/unhead/react) to ^2.1.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2960](https://github.com/web-infra-dev/rspress/pull/2960) - chore(deps): update dependency [@&#8203;rsbuild/core](https://github.com/rsbuild/core) to \~1.7.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2958](https://github.com/web-infra-dev/rspress/pull/2958) - refactor(theme/dark): simplify useThemeState hook and avoid dark mode flash by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2955](https://github.com/web-infra-dev/rspress/pull/2955) - refactor!: merge [@&#8203;rspress/runtime](https://github.com/rspress/runtime) into [@&#8203;rspress/core](https://github.com/rspress/core) package and remove [@&#8203;rspress/runtime](https://github.com/rspress/runtime) package by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2935](https://github.com/web-infra-dev/rspress/pull/2935) - chore(core): expose routePathToMdPath utility in runtime by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2967](https://github.com/web-infra-dev/rspress/pull/2967) - chore(deps): update rspress-plugin-file-tree to ^1.0.3 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2977](https://github.com/web-infra-dev/rspress/pull/2977) - Release v2.0.0-rc.5 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2982](https://github.com/web-infra-dev/rspress/pull/2982) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.4...v2.0.0-rc.5> ### [`v2.0.0-rc.4`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.4) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.3...v2.0.0-rc.4) <!-- Release notes generated using configuration in .github/release.yml at main --> ##### What's Changed ##### New Features 🎉 - feat(ssg-md): support Overview and HomeLayout by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2933](https://github.com/web-infra-dev/rspress/pull/2933) - feat(core): add import.meta.env.SSR and import.meta.env.SSG\_MD by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2948](https://github.com/web-infra-dev/rspress/pull/2948) - feat(theme/nav): support multiple level nested navigation items by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2943](https://github.com/web-infra-dev/rspress/pull/2943) - feat(nodejs)!: drop support of node 18, upgrade engines to `node >= 20.9.0` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2924](https://github.com/web-infra-dev/rspress/pull/2924) ##### Bug Fixes 🐞 - fix(core): `Iterator#map` is only available on Node 22+ by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2923](https://github.com/web-infra-dev/rspress/pull/2923) - fix(theme/Sidebar): sidebar should also listen location changes by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2922](https://github.com/web-infra-dev/rspress/pull/2922) - fix(theme): improve SSR compatibility by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2934](https://github.com/web-infra-dev/rspress/pull/2934) - fix: hover group links should also calc active with matchNavbar by default by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2930](https://github.com/web-infra-dev/rspress/pull/2930) - fix(theme/Nav): render empty nav items correctly not link by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2929](https://github.com/web-infra-dev/rspress/pull/2929) - fix(theme/Layout): render `beforeNavMenu` correctly by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2822](https://github.com/web-infra-dev/rspress/pull/2822) - fix(ssg-md): use .md links instead of .html in Overview SSG-MD mode by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2944](https://github.com/web-infra-dev/rspress/pull/2944) - fix(plugin-algolia): upgrade docsearch and fix the css regression by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2946](https://github.com/web-infra-dev/rspress/pull/2946) - fix(theme/Codeblock): revert the code shadow and enhance the separator line by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2931](https://github.com/web-infra-dev/rspress/pull/2931) - fix(plugin-algolia): should remove base by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2949](https://github.com/web-infra-dev/rspress/pull/2949) ##### Document 📖 - docs: Add wrap vs eject guides for customizing Rspress theme by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2906](https://github.com/web-infra-dev/rspress/pull/2906) - docs: upgrade custom-theme and add wrap and eject by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2925](https://github.com/web-infra-dev/rspress/pull/2925) - docs: upgrade llms.txt and ssg-md by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2927](https://github.com/web-infra-dev/rspress/pull/2927) - docs: fix og-image cjk wrong font and title slice logic by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2919](https://github.com/web-infra-dev/rspress/pull/2919) - docs: typo translate by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2932](https://github.com/web-infra-dev/rspress/pull/2932) - docs: fix the shiki highlighter ansi "/" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2947](https://github.com/web-infra-dev/rspress/pull/2947) - docs: add SSG vs SSG-MD comparison table by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2950](https://github.com/web-infra-dev/rspress/pull/2950) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2938](https://github.com/web-infra-dev/rspress/pull/2938) - chore(deps): update dependency [@&#8203;docsearch/css](https://github.com/docsearch/css) to ^4.4.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2939](https://github.com/web-infra-dev/rspress/pull/2939) - chore(deps): update dependency [@&#8203;docsearch/react](https://github.com/docsearch/react) to ^4.4.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2941](https://github.com/web-infra-dev/rspress/pull/2941) - chore(deps): update dependency [@&#8203;rsdoctor/rspack-plugin](https://github.com/rsdoctor/rspack-plugin) to v1.4.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2942](https://github.com/web-infra-dev/rspress/pull/2942) - Release v2.0.0-rc.4 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2936](https://github.com/web-infra-dev/rspress/pull/2936) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.3...v2.0.0-rc.4> ### [`v2.0.0-rc.3`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.3) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.2...v2.0.0-rc.3) <!-- Release notes generated using configuration in .github/release.yml at main --> ##### Highlights ✨ ##### 🆕️ Support common tags > related PR: [#&#8203;2879](https://github.com/web-infra-dev/rspress/pull/2879) - ref: <https://v2.rspress.rs/ui/components/tag> You can use it in the frontmatter, and it also supports customization: ```md --- tag: new, experimental, ejectable --- ``` <img width="3057" height="1981" alt="image" src="https://github.com/user-attachments/assets/2cb32161-a659-474f-a97f-84320f09b537" /> ##### 🌏 Enable `text-autospace: normal;` by default > related PR: [#&#8203;2920](https://github.com/web-infra-dev/rspress/pull/2920) The text-autospace CSS property allows you to specify the space applied between Chinese/Japanese/Korean (CJK) and non-CJK characters. - ref: <https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/text-autospace> ```css /* If you don't like it, you can cancel it via `:root { text-autospace: unset; }` */ :root { text-autospace: normal; } ``` ##### What's Changed ##### New Features 🎉 - feat(plugin-typedoc): allow customize the docs/api/\_meta.json and track in git by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2869](https://github.com/web-infra-dev/rspress/pull/2869) - feat(theme/tags): allow frontmatter tag by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2879](https://github.com/web-infra-dev/rspress/pull/2879) - feat(theme): add text-autospace: normal; by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2920](https://github.com/web-infra-dev/rspress/pull/2920) ##### Bug Fixes 🐞 - fix(core): Fix an issue where llms.txt was not generated when locales was not set by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2866](https://github.com/web-infra-dev/rspress/pull/2866) - fix(plugin-algolia): add missing constant by [@&#8203;dragomano](https://github.com/dragomano) in [#&#8203;2865](https://github.com/web-infra-dev/rspress/pull/2865) - fix(theme/Link): add forwardRef for react 18 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2871](https://github.com/web-infra-dev/rspress/pull/2871) - fix(theme/NavScreen): Disable clicks on active language/version entries in mobile nav by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2883](https://github.com/web-infra-dev/rspress/pull/2883) - fix(cli/eject): fix the component path not right by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2896](https://github.com/web-infra-dev/rspress/pull/2896) - fix(theme/CodeBlockRuntime): Render SSR fallback for CodeBlockRuntime to avoid first-paint empty DOM/CLS by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2902](https://github.com/web-infra-dev/rspress/pull/2902) - fix: do not modify singleton global sidebar by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2911](https://github.com/web-infra-dev/rspress/pull/2911) ##### Document 📖 - docs(codeblock): a typo by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2868](https://github.com/web-infra-dev/rspress/pull/2868) - docs(temp-fix-workaround): add shiki langs for markdown codeblock unstable bundle size by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2874](https://github.com/web-infra-dev/rspress/pull/2874) - docs: Polish Rspress V2 bilingual docs for navigation, MDX usage, and UI components by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2875](https://github.com/web-infra-dev/rspress/pull/2875) - docs: add Chinese guide for llms.txt SSG-MD output by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2877](https://github.com/web-infra-dev/rspress/pull/2877) - docs: adjust structure by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2884](https://github.com/web-infra-dev/rspress/pull/2884) - docs(ui): Add PackageManagerTabs component docs in en/zh UI sections by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2882](https://github.com/web-infra-dev/rspress/pull/2882) - docs(api): add rspress eject command documentation by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2886](https://github.com/web-infra-dev/rspress/pull/2886) - docs: Split runtime hook docs into dedicated UI hook pages by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2885](https://github.com/web-infra-dev/rspress/pull/2885) - docs: describe useSite/usePage runtime hooks by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2887](https://github.com/web-infra-dev/rspress/pull/2887) - docs: add components by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2891](https://github.com/web-infra-dev/rspress/pull/2891) - docs(theme): Clarify LastUpdated configuration and customization guidance by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2901](https://github.com/web-infra-dev/rspress/pull/2901) - docs: add preview for some codeblocks by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2907](https://github.com/web-infra-dev/rspress/pull/2907) - docs: Add usePages and useFrontmatter hook docs with overview example and HMR note by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2905](https://github.com/web-infra-dev/rspress/pull/2905) - docs: add pluginOg and og-image to rspress docsite by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2835](https://github.com/web-infra-dev/rspress/pull/2835) ##### Other Changes - chore(theme/CodeBlock): add box-shadow to codeblock by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2863](https://github.com/web-infra-dev/rspress/pull/2863) - test: use Rstest as Rspress's test framework by [@&#8203;9aoy](https://github.com/9aoy) in [#&#8203;2413](https://github.com/web-infra-dev/rspress/pull/2413) - chore(theme/Codeblock): beautify the shiki highlight by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2864](https://github.com/web-infra-dev/rspress/pull/2864) - chore(theme/Tabs): update style when nested Tabs in Tabs by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2870](https://github.com/web-infra-dev/rspress/pull/2870) - chore(create-rspress): Add React 19 dependencies to create-rspress template by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2873](https://github.com/web-infra-dev/rspress/pull/2873) - chore(deps): upgrade rsbuild and not show warning for \_\_dirname and \_\_filename when bundling for web by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2878](https://github.com/web-infra-dev/rspress/pull/2878) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2889](https://github.com/web-infra-dev/rspress/pull/2889) - chore(deps): update pnpm to v10.25.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2890](https://github.com/web-infra-dev/rspress/pull/2890) - chore(deps): update shiki monorepo to ^3.20.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2892](https://github.com/web-infra-dev/rspress/pull/2892) - chore(deps): update actions/cache action to v5 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2893](https://github.com/web-infra-dev/rspress/pull/2893) - chore(auto-nav-sidebar): Improve missing page error readability by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2880](https://github.com/web-infra-dev/rspress/pull/2880) - chore(ci): update playwright test config by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2897](https://github.com/web-infra-dev/rspress/pull/2897) - chore: remove unused view transition code by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2898](https://github.com/web-infra-dev/rspress/pull/2898) - test(e2e): playwright support lazyCompilation after Rsbuild 1.4.0, remove RSPRESS\_LAZY\_COMPILATION=false by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2319](https://github.com/web-infra-dev/rspress/pull/2319) - chore(theme): better UI for overview items without headers case by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2899](https://github.com/web-infra-dev/rspress/pull/2899) - refactor(ssg-md): redesign the remarkSplitMdx split logic by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2903](https://github.com/web-infra-dev/rspress/pull/2903) - chore: remove unused min-height style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2917](https://github.com/web-infra-dev/rspress/pull/2917) - chore(deps): update dependency react-router-dom to ^7.11.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2914](https://github.com/web-infra-dev/rspress/pull/2914) - chore(deps): update pnpm to v10.26.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2915](https://github.com/web-infra-dev/rspress/pull/2915) - chore(deps): update actions/upload-artifact action to v6 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2916](https://github.com/web-infra-dev/rspress/pull/2916) - chore(deps): update all patch dependencies - autoclosed by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2913](https://github.com/web-infra-dev/rspress/pull/2913) - chore(e2e): stable plugin-preview-custom-entry test by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2918](https://github.com/web-infra-dev/rspress/pull/2918) - Release v2.0.0-rc.3 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2921](https://github.com/web-infra-dev/rspress/pull/2921) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.2...v2.0.0-rc.3> ### [`v2.0.0-rc.2`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.2) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.1...v2.0.0-rc.2) <!-- Release notes generated using configuration in .github/release.yml at main --> ##### Breaking Changes🚨 ##### `theme` folder should use `@rspress/core/theme-original` > related PR: [#&#8203;2860](https://github.com/web-infra-dev/rspress/pull/2860) In Rspress V1 document, `@theme` is the alias for `rspress/theme`, but `@theme` is an alias which points to `theme/index.tsx` and falls back to `rspress/theme`. `rspress/theme` or `@rspress/core/theme` points to Rspress's `theme-default`, they are actually different things. We standardize this behavior, which is the same as docusaurus. 1. In `docs` directory, `@theme` or `@rspress/core/theme` should be used, which points to `theme/index.tsx` and falls back to `theme-default` 2. In `theme` directory , `@theme-original` or `@rspress/core/theme-original` should be used, which always points to Rspress's `theme-default`, used for users to customize themes, which is very useful for users who publish npm theme packages. ```diff // theme/index.tsx - import { Layout as BasicLayout } from 'rspress/theme'; // or @&#8203;rspress/core/theme + import { Layout } from '@&#8203;rspress/core/theme-original'; const Layout = () => { return <BasicLayout {...} /> } export { Layout } - export * from 'rspress/theme' // or @&#8203;rspress/core/theme + export * from '@&#8203;rspress/core/theme-original'; ``` ##### Merge `@theme-assets` to `@theme` **Before** We have a separate entry for exporting [@&#8203;theme-assets](https://github.com/theme-assets) ```tsx import { SvgWrapper } from '@&#8203;theme' import SearchSvg from '@&#8203;theme-assets/Search'; <SvgWrapper icon={SearchSvg} /> ``` **After** `@theme-assets` has been removed. Icons are exported from `@theme` and prefixed with `Icon`, for example: `IconSearch` ```tsx import { SvgWrapper, IconSearch } from '@&#8203;theme'; <SvgWrapper icon={IconSearch} /> ^? type Icon = React.FC<React.SVGProps<SVGSVGElement>> | string; ``` ##### Refactor `@rspress/plugin-preview` and simplify usage > related PR: [#&#8203;2806](https://github.com/web-infra-dev/rspress/pull/2806) **Before: Required declarations in both config file and MDX file.** ```ts pluginPreview({ previewMode: 'iframe', iframeOptions: { position: 'fixed' }, }); ``` ````mdx ```tsx preview ``` ```` **After: Only declare in the MDX file.** ````mdx ```tsx preview="iframe-fixed" ``` ```` ##### What's Changed ##### New Features 🎉 - feat(plugin-preview)!: simplify the usage via `tsx preview="iframe-fixed"` and support hmr by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2806](https://github.com/web-infra-dev/rspress/pull/2806) - feat(plugin-preview): should support dark mode by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2816](https://github.com/web-infra-dev/rspress/pull/2816) - feat(i18n): add Russian translation for built-in i18n text by [@&#8203;dragomano](https://github.com/dragomano) in [#&#8203;2827](https://github.com/web-infra-dev/rspress/pull/2827) - feat(rspack)!: revert Rspack native watcher by default by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2830](https://github.com/web-infra-dev/rspress/pull/2830) - feat(plugin-typedoc): Upgrade to TypeDoc v0.28 with new API by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2790](https://github.com/web-infra-dev/rspress/pull/2790) - feat(mdx): support absolute paths with `<root>/` prefix in remarkFileCodeBlock by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2665](https://github.com/web-infra-dev/rspress/pull/2665) - feat(theme)!: custom theme should use `@rspress/core/theme-original` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2860](https://github.com/web-infra-dev/rspress/pull/2860) - feat(theme/Root): add ejectable <Root /> component to theme by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2858](https://github.com/web-infra-dev/rspress/pull/2858) - feat(theme/Toc): Add data-depth attribute to TOC items by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2859](https://github.com/web-infra-dev/rspress/pull/2859) - feat(plugin-typedoc): Add setup callback for TypeDoc customization by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2841](https://github.com/web-infra-dev/rspress/pull/2841) ##### Performance 🚀 - perf(theme/useWindowSize): optimize useWindowSize with debounce to reduce resize handler calls by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2849](https://github.com/web-infra-dev/rspress/pull/2849) ##### Bug Fixes 🐞 - fix(theme): css vars color by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2791](https://github.com/web-infra-dev/rspress/pull/2791) - fix(theme): table should be scrollable and startTransition should not be a html attribute by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2792](https://github.com/web-infra-dev/rspress/pull/2792) - fix(theme): th width should be same with td by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2804](https://github.com/web-infra-dev/rspress/pull/2804) - fix(theme): plugin-preview should hide the toc by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2803](https://github.com/web-infra-dev/rspress/pull/2803) - fix(theme/Sidebar): pass down `onClick` prop by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2811](https://github.com/web-infra-dev/rspress/pull/2811) - fix(plugin-twoslash): Make twoslashOptions optional by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2819](https://github.com/web-infra-dev/rspress/pull/2819) - fix(ssg): wrong html selector for crawlers regression due to react\@&#8203;19.2.0 `progressiveChunkSize` change by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2831](https://github.com/web-infra-dev/rspress/pull/2831) - fix(theme/callout): link in callout should use currentColor by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2838](https://github.com/web-infra-dev/rspress/pull/2838) - fix(plugin-typedoc): allow typedoc plugin interface as usual by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2836](https://github.com/web-infra-dev/rspress/pull/2836) - fix(theme/outline): line-height of toc item by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2840](https://github.com/web-infra-dev/rspress/pull/2840) - fix(cli): should not restart when public folder change files by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2847](https://github.com/web-infra-dev/rspress/pull/2847) - fix(core): Fix an issue where the PackageManagerTabs component outputs broken Markdown by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2861](https://github.com/web-infra-dev/rspress/pull/2861) ##### Document 📖 - docs: update package manager command from beta to rc by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2800](https://github.com/web-infra-dev/rspress/pull/2800) - docs: Add "new" tag to plugin documentation for new v1 plugins by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2851](https://github.com/web-infra-dev/rspress/pull/2851) ##### Other Changes - chore(theme/doc): add border to inline text code by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2796](https://github.com/web-infra-dev/rspress/pull/2796) - chore(deps)!: update dependency react-router-dom to v7 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1802](https://github.com/web-infra-dev/rspress/pull/1802) - chore(deps): update actions/checkout digest to [`34e1148`](https://github.com/web-infra-dev/rspress/commit/34e1148) by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2798](https://github.com/web-infra-dev/rspress/pull/2798) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2799](https://github.com/web-infra-dev/rspress/pull/2799) - chore(deps): update dependency [@&#8203;rstack-dev/doc-ui](https://github.com/rstack-dev/doc-ui) to ^1.12.0 - autoclosed by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2802](https://github.com/web-infra-dev/rspress/pull/2802) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.18.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2801](https://github.com/web-infra-dev/rspress/pull/2801) - chore(infra): use [@&#8203;rslib/core](https://github.com/rslib/core) preserveModules by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2805](https://github.com/web-infra-dev/rspress/pull/2805) - chore(build): enable `redirect.dts.extension` to fix type issue by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2814](https://github.com/web-infra-dev/rspress/pull/2814) - chore(deps): update dependency prettier to v3.7.3 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2825](https://github.com/web-infra-dev/rspress/pull/2825) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2824](https://github.com/web-infra-dev/rspress/pull/2824) - chore: fix the diff.yml event by [@&#8203;yifancong](https://github.com/yifancong) in [#&#8203;2828](https://github.com/web-infra-dev/rspress/pull/2828) - chore(theme): export `FallbackHeading` for reusing by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2813](https://github.com/web-infra-dev/rspress/pull/2813) - chore: bump pnpm 10.24.0 and remove trust policy config by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2829](https://github.com/web-infra-dev/rspress/pull/2829) - chore(deps): update actions/checkout action to v6 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2833](https://github.com/web-infra-dev/rspress/pull/2833) - chore(deps): update actions/setup-node action to v6 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2834](https://github.com/web-infra-dev/rspress/pull/2834) - chore(theme/Tabs): upgrade hover style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2837](https://github.com/web-infra-dev/rspress/pull/2837) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2842](https://github.com/web-infra-dev/rspress/pull/2842) - chore(deps): update dependency lint-staged to v16 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2844](https://github.com/web-infra-dev/rspress/pull/2844) - chore(deps): update playwright monorepo to v1.57.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2843](https://github.com/web-infra-dev/rspress/pull/2843) - chore(theme/Table): narrow table padding by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2845](https://github.com/web-infra-dev/rspress/pull/2845) - chore(Theme/outline): add shadow by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2846](https://github.com/web-infra-dev/rspress/pull/2846) - chore(plugin-algolia): Add Russian translation for plugin-algolia by [@&#8203;dragomano](https://github.com/dragomano) in [#&#8203;2832](https://github.com/web-infra-dev/rspress/pull/2832) - chore(core): truncate some error stack traces to 5 lines by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2821](https://github.com/web-infra-dev/rspress/pull/2821) - chore(build): use advanced ESM by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2848](https://github.com/web-infra-dev/rspress/pull/2848) - chore(deps): update dependency cspell to ^9.4.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2854](https://github.com/web-infra-dev/rspress/pull/2854) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2853](https://github.com/web-infra-dev/rspress/pull/2853) - chore(deps): update dependency react-router-dom to ^7.10.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2855](https://github.com/web-infra-dev/rspress/pull/2855) - chore(deps): update dependency rimraf to ^6.1.2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2856](https://github.com/web-infra-dev/rspress/pull/2856) - Release v2.0.0-rc.2 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2862](https://github.com/web-infra-dev/rspress/pull/2862) ##### New Contributors - [@&#8203;dragomano](https://github.com/dragomano) made their first contribution in [#&#8203;2827](https://github.com/web-infra-dev/rspress/pull/2827) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.1...v2.0.0-rc.2> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MC4yIiwidXBkYXRlZEluVmVyIjoiNDIuNzAuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiRGVwZW5kZW5jaWVzIiwiRGVwZW5kZW5jaWVzL1Jlbm92YXRlIl19-->
chore(deps): update dependency @rspress/plugin-preview to v2.0.0-rc.5
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Failing after 1m1s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 9m49s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 27m59s
ead2cc491b
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Failing after 1m1s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 9m49s
Required
Details
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 27m59s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/rspress-plugin-preview-2.x-lockfile:renovate/rspress-plugin-preview-2.x-lockfile
git switch renovate/rspress-plugin-preview-2.x-lockfile
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!1295
No description provided.