
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@preply/ds-docs-context
Advanced tools
@preply/ds-docs-contextDS Providers for documentation pages.
Follow the instructions in @preply/ds-workspace.
The following components are used to wrap Storybook stories or MDX doc pages, injecting global styles, and the DS providers populated with available themes.
import { DocContextDSWeb } from '@preply/ds-docs-context';
<Meta
title="components/Avatar/Docs"
parameters={{
docs: { container: DocContextDSWeb },
}}
/>;
In pages where you want to render the RootProvider yourself, include DocContext instead.
import { DocContext } from '@preply/ds-docs-context';
import { StoryContextDSWeb } from '@preply/ds-docs-context';
export default {
title: 'components/Avatar',
component: Avatar,
decorators: [story => <StoryContextDSWeb>{story()}</StoryContextDSWeb>],
// ...
} as Meta;
export const Canvas: Story<Props> = params => <Component {...params} />;
Execute yarn docs in @preply/ds-docs to launch the docs.
If you are iterating on these components, you might want to run yarn dev and yarn docs in the root, as per instructions in @preply/ds-workspace.
Details about tools and configurations in @preply/ds-workspace.
@preply/ds-web-core - Web support and context providers (React + CSS modules).@preply/ds-core - Platform agnostic types, tokens and utils.FAQs
Unknown package
The npm package @preply/ds-docs-context receives a total of 529 weekly downloads. As such, @preply/ds-docs-context popularity was classified as not popular.
We found that @preply/ds-docs-context demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.