Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rstack-dev/doc-ui

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rstack-dev/doc-ui - npm Package Compare versions

Comparing version
1.13.3
to
1.14.0
+4
dist/blog-authors/index.css
.root-YZxMH8 {
margin-bottom: 1.5rem;
}
export type { BlogAvatarAuthor } from '../blog-avatar';
export type BlogAuthorsProps = {
className?: string;
};
export declare function BlogAuthors({ className }: BlogAuthorsProps): import("react/jsx-runtime").JSX.Element;
import './index.css';
import { jsx } from "react/jsx-runtime";
import { usePage } from "@rspress/core/runtime";
import { useMemo } from "react";
import { BlogAvatarGroup } from "../blog-avatar/index.js";
const index_module = {
root: "root-YZxMH8"
};
const getClassName = (...classNames)=>classNames.filter(Boolean).join(' ');
const isRecord = (value)=>null !== value && 'object' == typeof value;
const isBlogAvatarAuthor = (value)=>isRecord(value) && 'string' == typeof value.name && 'string' == typeof value.avatar;
const normalizeGithub = (author)=>{
var _author_title;
if (!author.github) return author;
const githubUrl = author.github.startsWith('http') ? author.github : `https://github.com/${author.github}`;
return {
...author,
github: githubUrl,
title: null != (_author_title = author.title) ? _author_title : `@${author.github}`
};
};
const getAuthorsFromFrontmatter = (frontmatter)=>{
if (Array.isArray(frontmatter.authors)) return frontmatter.authors.filter(isBlogAvatarAuthor).map(normalizeGithub);
if (Array.isArray(frontmatter.author)) return frontmatter.author.filter(isBlogAvatarAuthor).map(normalizeGithub);
if (isBlogAvatarAuthor(frontmatter.author)) return [
normalizeGithub(frontmatter.author)
];
return [];
};
function BlogAuthors({ className }) {
var _page_frontmatter;
const { page } = usePage();
const frontmatter = null != (_page_frontmatter = page.frontmatter) ? _page_frontmatter : {};
const authors = useMemo(()=>getAuthorsFromFrontmatter(frontmatter), [
frontmatter
]);
return /*#__PURE__*/ jsx(BlogAvatarGroup, {
authors: authors,
className: getClassName(index_module.root, className)
});
}
export { BlogAuthors };
+40
-0
/**
* @license React
* react-dom-client.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-is.development.js

@@ -21,4 +41,24 @@ *

/**
* @license React
* scheduler.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */
/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */
+1
-0

@@ -423,2 +423,3 @@ import './index.css';

.rp-doc-layout__doc-container { margin: 0 auto; }
.rspress-doc { min-height: 60vh; }
`

@@ -425,0 +426,0 @@ }) : null

+2
-2

@@ -22,3 +22,3 @@ import './index.css';

const BackgroundStar = ({ top, left, pageX, pageY, size })=>{
const ref = useRef();
const ref = useRef(null);
const [transformX, setTransformX] = useState(0);

@@ -249,3 +249,3 @@ const [transformY, setTransformY] = useState(0);

const useMouseMove = ()=>{
const ref = useRef();
const ref = useRef(null);
const [pageX, setPageX] = useState(null);

@@ -252,0 +252,0 @@ const [pageY, setPageY] = useState(null);

@@ -1,2 +0,2 @@

import type { AnchorHTMLAttributes, ReactNode } from 'react';
import type { AnchorHTMLAttributes, ReactElement, ReactNode } from 'react';
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {

@@ -7,3 +7,3 @@ className: string;

};
export type LinkComp = (props: LinkProps) => JSX.Element;
export type LinkComp = (props: LinkProps) => ReactElement;
/**

@@ -10,0 +10,0 @@ * A backup link component, import { Link } from '@rspress/core/theme' to replace it

export declare const useCardAnimation: () => {
ref: import("react").MutableRefObject<HTMLElement | undefined>;
ref: import("react").RefObject<HTMLElement | null>;
isHovering: boolean;

@@ -4,0 +4,0 @@ shine: string;

export declare const useLottieAnimation: (isHovering: boolean, lottieJsonData?: string) => {
ref: import("react").MutableRefObject<undefined>;
ref: import("react").RefObject<HTMLDivElement | null>;
};
{
"name": "@rstack-dev/doc-ui",
"version": "1.13.3",
"version": "1.14.0",
"type": "module",
"types": "./dist/index.d.ts",
"license": "MIT",
"packageManager": "pnpm@10.33.0",
"packageManager": "pnpm@11.1.2",
"exports": {

@@ -61,2 +61,6 @@ "./nav-icon": {

},
"./blog-authors": {
"types": "./dist/blog-authors/index.d.ts",
"import": "./dist/blog-authors/index.js"
},
"./blog-list": {

@@ -85,46 +89,48 @@ "types": "./dist/blog-list/index.d.ts",

"build:watch": "rslib -w",
"lint": "biome check",
"lint:fix": "biome check --write --unsafe",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
"lint:fix": "pnpm lint:write",
"bump": "npx bumpp",
"chromatic": "chromatic"
},
"nano-staged": {
"*.{md,mdx,json,css,less,scss}": "prettier --write",
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"biome check --write --formatter-enabled=false --linter-enabled=true --no-errors-on-unmatched",
"prettier --write"
]
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
"pre-commit": "pnpm run lint:write"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/plugin-react": "1.4.6",
"@rsbuild/plugin-sass": "1.5.1",
"@rslib/core": "^0.21.2",
"@rsbuild/plugin-react": "2.0.0",
"@rsbuild/plugin-sass": "1.5.2",
"@rslib/core": "^0.21.5",
"@rslint/core": "^0.5.3",
"@rspress/core": "^2.0.11",
"@rstack-dev/doc-ui": "workspace:*",
"@storybook/addon-themes": "^10.3.5",
"@storybook/react": "^10.3.5",
"@storybook/addon-themes": "^10.4.0",
"@storybook/react": "^10.4.0",
"@storybook/test": "9.0.0-alpha.2",
"@types/node": "~24.12.2",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"antd": "^6.3.6",
"chromatic": "^16.3.0",
"@types/node": "~24.12.4",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"antd": "^6.4.2",
"chromatic": "^16.10.1",
"execa": "9.6.1",
"fs-extra": "11.3.4",
"fs-extra": "11.3.5",
"lottie-web": "5.13.0",
"nano-staged": "^0.9.0",
"prettier": "~3.8.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"rimraf": "~6.1.3",
"semver": "7.7.4",
"semver": "7.8.0",
"simple-git-hooks": "^2.13.1",
"storybook": "^10.3.5",
"storybook": "^10.4.0",
"storybook-addon-rslib": "^3.3.3",
"storybook-react-rsbuild": "^3.3.3",
"typescript": "~5.9.3"
"typescript": "~6.0.3"
},
"peerDependencies": {
"@rspress/core": ">=2.0.0"
},
"peerDependenciesMeta": {
"@rspress/core": {
"optional": true
}
},
"publishConfig": {

@@ -131,0 +137,0 @@ "access": "public",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display