From 9fc8a4d3f04bbf4f3f6b89bc9b6ba4693fbe1571 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 26 Aug 2026 20:56:25 +0800 Subject: [PATCH 1/3] chore: rename package to @rstackjs/doc-ui --- AGENTS.md | 4 ++-- package.json | 4 ++-- pnpm-lock.yaml | 2 +- stories/Announcement.stories.tsx | 2 +- stories/Benchmark.stories.tsx | 2 +- stories/BlogAuthors.stories.tsx | 4 ++-- stories/BlogAvatar.stories.tsx | 2 +- stories/BlogBackButton.stories.tsx | 2 +- stories/BlogList.stories.tsx | 6 +++--- stories/BuiltWithRspack.stories.tsx | 4 ++-- stories/FullyFeatured.stories.tsx | 2 +- stories/Hero.stories.tsx | 4 ++-- stories/NavIcon.stories.tsx | 2 +- stories/SectionStyle.stories.tsx | 2 +- stories/ToolStack.stories.tsx | 2 +- stories/WhyRspack.stories.tsx | 4 ++-- 16 files changed, 24 insertions(+), 24 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a081207..169522b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ # AGENTS.md -Shared UI component library (`@rstack-dev/doc-ui`) for Rstack websites (rspack.rs, rsbuild.rs, rspress.rs). +Shared UI component library (`@rstackjs/doc-ui`) for Rstack websites (rspack.rs, rsbuild.rs, rspress.rs). ## Tech Stack @@ -144,7 +144,7 @@ export const MyComponent: FC = ({ ```typescript // stories/Hero.stories.tsx -import { Hero } from '@rstack-dev/doc-ui/hero'; +import { Hero } from '@rstackjs/doc-ui/hero'; import './index.scss'; export const HeroStory = () => {}} />; diff --git a/package.json b/package.json index aa76cc0..761acb8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@rstack-dev/doc-ui", + "name": "@rstackjs/doc-ui", "version": "1.14.8", "type": "module", "license": "MIT", @@ -100,7 +100,7 @@ "@rslib/core": "^0.23.2", "@rslint/core": "^0.8.0", "@rspress/core": "^2.0.19", - "@rstack-dev/doc-ui": "workspace:*", + "@rstackjs/doc-ui": "workspace:*", "@rstest/adapter-rslib": "^0.11.8", "@rstest/core": "^0.11.8", "@storybook/addon-themes": "^10.5.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea82325..7176542 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,7 +23,7 @@ importers: '@rspress/core': specifier: ^2.0.19 version: 2.0.19(@rspack/core@2.1.10(@swc/helpers@0.5.23))(micromark-util-types@2.0.2)(micromark@4.0.2(supports-color@8.1.1))(supports-color@8.1.1) - '@rstack-dev/doc-ui': + '@rstackjs/doc-ui': specifier: workspace:* version: 'link:' '@rstest/adapter-rslib': diff --git a/stories/Announcement.stories.tsx b/stories/Announcement.stories.tsx index f8e939f..f0ee7f0 100644 --- a/stories/Announcement.stories.tsx +++ b/stories/Announcement.stories.tsx @@ -1,4 +1,4 @@ -import { Announcement } from '@rstack-dev/doc-ui/announcement'; +import { Announcement } from '@rstackjs/doc-ui/announcement'; import './index.scss'; export const AnnouncementStory = () => ( diff --git a/stories/Benchmark.stories.tsx b/stories/Benchmark.stories.tsx index 4058f7e..a158065 100644 --- a/stories/Benchmark.stories.tsx +++ b/stories/Benchmark.stories.tsx @@ -1,4 +1,4 @@ -import { Benchmark } from '@rstack-dev/doc-ui/benchmark'; +import { Benchmark } from '@rstackjs/doc-ui/benchmark'; import './index.scss'; // Benchmark data for different cases diff --git a/stories/BlogAuthors.stories.tsx b/stories/BlogAuthors.stories.tsx index 1a551ba..981e214 100644 --- a/stories/BlogAuthors.stories.tsx +++ b/stories/BlogAuthors.stories.tsx @@ -1,5 +1,5 @@ -import { BlogBackButton } from '@rstack-dev/doc-ui/blog-back-button'; -import { BlogAuthors } from '@rstack-dev/doc-ui/blog-authors'; +import { BlogBackButton } from '@rstackjs/doc-ui/blog-back-button'; +import { BlogAuthors } from '@rstackjs/doc-ui/blog-authors'; import { PageContext } from '@rspress/core/runtime'; import './index.scss'; diff --git a/stories/BlogAvatar.stories.tsx b/stories/BlogAvatar.stories.tsx index fba0f62..6771c0a 100644 --- a/stories/BlogAvatar.stories.tsx +++ b/stories/BlogAvatar.stories.tsx @@ -2,7 +2,7 @@ import { BlogAvatar, BlogAvatarGroup, type BlogAvatarAuthor, -} from '@rstack-dev/doc-ui/blog-avatar'; +} from '@rstackjs/doc-ui/blog-avatar'; import './index.scss'; const author: BlogAvatarAuthor = { diff --git a/stories/BlogBackButton.stories.tsx b/stories/BlogBackButton.stories.tsx index 964f019..d17e9c6 100644 --- a/stories/BlogBackButton.stories.tsx +++ b/stories/BlogBackButton.stories.tsx @@ -1,4 +1,4 @@ -import { BlogBackButton } from '@rstack-dev/doc-ui/blog-back-button'; +import { BlogBackButton } from '@rstackjs/doc-ui/blog-back-button'; import type { ReactNode } from 'react'; import './index.scss'; diff --git a/stories/BlogList.stories.tsx b/stories/BlogList.stories.tsx index 2b446e1..0312c2d 100644 --- a/stories/BlogList.stories.tsx +++ b/stories/BlogList.stories.tsx @@ -1,6 +1,6 @@ -import type { BlogAvatarAuthor } from '@rstack-dev/doc-ui/blog-avatar'; -import { BlogBackground } from '@rstack-dev/doc-ui/blog-background'; -import { BlogList, type BlogListItem } from '@rstack-dev/doc-ui/blog-list'; +import type { BlogAvatarAuthor } from '@rstackjs/doc-ui/blog-avatar'; +import { BlogBackground } from '@rstackjs/doc-ui/blog-background'; +import { BlogList, type BlogListItem } from '@rstackjs/doc-ui/blog-list'; import type { ReactNode } from 'react'; import './index.scss'; diff --git a/stories/BuiltWithRspack.stories.tsx b/stories/BuiltWithRspack.stories.tsx index 5c6d5e6..80fbabb 100644 --- a/stories/BuiltWithRspack.stories.tsx +++ b/stories/BuiltWithRspack.stories.tsx @@ -1,5 +1,5 @@ -import type { Company } from '@rstack-dev/doc-ui/built-with-rspack'; -import { BuiltWithRspack } from '@rstack-dev/doc-ui/built-with-rspack'; +import type { Company } from '@rstackjs/doc-ui/built-with-rspack'; +import { BuiltWithRspack } from '@rstackjs/doc-ui/built-with-rspack'; import './index.scss'; import amazonLogo from './assets/amazon.svg'; import bitDevLogo from './assets/bit.svg'; diff --git a/stories/FullyFeatured.stories.tsx b/stories/FullyFeatured.stories.tsx index 94d138a..5564c5c 100644 --- a/stories/FullyFeatured.stories.tsx +++ b/stories/FullyFeatured.stories.tsx @@ -1,4 +1,4 @@ -import { type Feature, FullyFeatured } from '@rstack-dev/doc-ui/fully-featured'; +import { type Feature, FullyFeatured } from '@rstackjs/doc-ui/fully-featured'; import './index.scss'; import arrow from './assets/arrow.svg'; diff --git a/stories/Hero.stories.tsx b/stories/Hero.stories.tsx index d4c7570..59aa47e 100644 --- a/stories/Hero.stories.tsx +++ b/stories/Hero.stories.tsx @@ -1,5 +1,5 @@ -import { BackgroundImage } from '@rstack-dev/doc-ui/background-image'; -import { Hero } from '@rstack-dev/doc-ui/hero'; +import { BackgroundImage } from '@rstackjs/doc-ui/background-image'; +import { Hero } from '@rstackjs/doc-ui/hero'; import './index.scss'; export const HeroStory = () => { diff --git a/stories/NavIcon.stories.tsx b/stories/NavIcon.stories.tsx index a33a87d..f18c372 100644 --- a/stories/NavIcon.stories.tsx +++ b/stories/NavIcon.stories.tsx @@ -1,4 +1,4 @@ -import { NavIcon } from '@rstack-dev/doc-ui/nav-icon'; +import { NavIcon } from '@rstackjs/doc-ui/nav-icon'; import { userEvent, within } from '@storybook/test'; import './index.scss'; diff --git a/stories/SectionStyle.stories.tsx b/stories/SectionStyle.stories.tsx index c75d5f5..96fffcc 100644 --- a/stories/SectionStyle.stories.tsx +++ b/stories/SectionStyle.stories.tsx @@ -4,7 +4,7 @@ import { innerContainerStyle, titleAndDescStyle, titleStyle, -} from '@rstack-dev/doc-ui/section-style'; +} from '@rstackjs/doc-ui/section-style'; import './index.scss'; const sections = [ diff --git a/stories/ToolStack.stories.tsx b/stories/ToolStack.stories.tsx index 9831974..d8aea6b 100644 --- a/stories/ToolStack.stories.tsx +++ b/stories/ToolStack.stories.tsx @@ -1,4 +1,4 @@ -import { ToolStack } from '@rstack-dev/doc-ui/tool-stack'; +import { ToolStack } from '@rstackjs/doc-ui/tool-stack'; import './index.scss'; export const ToolStackStory = () => ( diff --git a/stories/WhyRspack.stories.tsx b/stories/WhyRspack.stories.tsx index cddfe48..be14a21 100644 --- a/stories/WhyRspack.stories.tsx +++ b/stories/WhyRspack.stories.tsx @@ -1,8 +1,8 @@ import { containerStyle, innerContainerStyle, -} from '@rstack-dev/doc-ui/section-style'; -import { type Feature, WhyRspack } from '@rstack-dev/doc-ui/why-rspack'; +} from '@rstackjs/doc-ui/section-style'; +import { type Feature, WhyRspack } from '@rstackjs/doc-ui/why-rspack'; import './index.scss'; import CompatibleJson from './why-rspack-assets/Compatible.json'; import Compatible from './why-rspack-assets/Compatible.svg'; From 77e57771f29a5adab0c47b05806766cb3d01774d Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 26 Aug 2026 20:58:50 +0800 Subject: [PATCH 2/3] docs: add package rename notice --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 3518503..38f909f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ Shared UI components for the Rstack websites. +> [!IMPORTANT] +> The package has been renamed from `@rstack-dev/doc-ui` to +> `@rstackjs/doc-ui`. Update dependencies and imports to use the new package +> name, including subpath imports such as `@rstackjs/doc-ui/hero`. + - - - From 63baa4e5f8e9f6bbb94dd3a19c6b05255313e7e5 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 26 Aug 2026 21:00:51 +0800 Subject: [PATCH 3/3] docs: simplify package rename notice --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 38f909f..39e00f3 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ Shared UI components for the Rstack websites. > [!IMPORTANT] > The package has been renamed from `@rstack-dev/doc-ui` to -> `@rstackjs/doc-ui`. Update dependencies and imports to use the new package -> name, including subpath imports such as `@rstackjs/doc-ui/hero`. +> `@rstackjs/doc-ui`. - -