
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@fileverse-dev/ddoc
Advanced tools
This repo contains example source code and package code
/src/packages/ddoc/
contains the package code
import { DdocEditor } from '@fileverse-dev/ddoc'
import '@fileverse-dev/ddoc/dist/style.css'
in App.jsx/App.tsx
In your tailwind config, add this line to content array
@fileverse-dev/ddoc/dist/index.es.js
That's it, you should be able to use DdocEditor now
The DdocProps
interface is a TypeScript interface that defines the properties for a component related to a page. This interface includes properties for handling preview mode, publishing data, and optional data related to the page's metadata and content.
Property | Type | Description |
---|---|---|
isPreviewMode | boolean | Indicates whether the page is in preview mode or not. |
togglePreviewMode | (flag: boolean) => void | Function to toggle preview mode with a boolean flag. |
onPublish | (data: Data) => void | Function to handle publishing of the page. |
data (optional) | Data | Optional property holding data related to the page. |
enableCollaboration (optional) | boolean | Optional property to enable collaboration |
collaborationId (optional) | string | When using enableCollaboration, you need to provide collaborationId, it can be uuid of doc |
toggleCollaboration (optional) | (flag: boolean) => void | Function to toggle collaboration mode with a boolean flag |
The Data
interface defines the structure of the data object that can be passed to the onPublish
function and optionally included in the data
property of DdocProps
.
Property | Type | Description |
---|---|---|
metaData | PluginMetaData | Contains metadata related to the plugin. |
editorJSONData | JSONContent | Contains JSON data for the editor content. |
The PluginMetaData
interface defines the structure of the metadata related to the plugin.
Property | Type | Description |
---|---|---|
plugin | Plugin | Contains information about the plugin title. |
The Plugin
interface defines the structure of the plugin information.
Property | Type | Description |
---|---|---|
title | string | null | Title of the plugin (can be null ). |
npm i
npm run dev
It will open up a vite server, that will have the Ddoc Editor
FAQs
DDoc
The npm package @fileverse-dev/ddoc receives a total of 166 weekly downloads. As such, @fileverse-dev/ddoc popularity was classified as not popular.
We found that @fileverse-dev/ddoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.