Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@blocksuite/react
Advanced tools
A React Component & Hooks Library for BlockSuite editor built for AFFiNE.
@blocksuite/react
@blocksuite/editor
import dynamic from 'next/dynamic';
import { useBlockSuiteStore } from '@blocksuite/react';
export const Editor = dynamic(
async () => (await import('@blocksuite/react/editor')).Editor,
{
ssr: false,
}
);
export default function Page() {
const currentPage = useBlockSuiteStore(store => store.currentPage);
return <Editor page={page} />;
}
@blocksuite/store
// in _app.tsx
import type { AppProps } from 'next/app';
import { BlockSuiteProvider, createBlockSuiteStore } from '@blocksuite/react';
import { Workspace } from '@blocksuite/store';
import { IndexedDBDocProvider } from '@blocksuite/store';
const localWorkspace = new Workspace({
id: 'local-room',
isSSR: typeof window === 'undefined',
providers: typeof window === 'undefined' ? [] : [IndexedDBDocProvider],
});
export default function App({ Component, pageProps }: AppProps) {
return (
<BlockSuiteProvider
createStore={() => createBlockSuiteStore(localWorkspace)}
>
<Component {...pageProps} />
</BlockSuiteProvider>
);
}
FAQs
A React Component & Hooks Library for BlockSuite editor built for AFFiNE.
The npm package @blocksuite/react receives a total of 44 weekly downloads. As such, @blocksuite/react popularity was classified as not popular.
We found that @blocksuite/react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.