npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@slesaad/veda-content-editor

v0.1.15

Published

VEDA Content Editor - A React-based MDX editor component

Readme

@slesaad/veda-content-editor

A content editor component for VEDA projects.

Installation

npm install @slesaad/veda-content-editor

Usage

import { VEDAContentEditor } from '@slesaad/veda-content-editor';
import '@slesaad/veda-content-editor/dist/styles.css';

function App() {
  const handleChange = (content) => {
    console.log('Content changed:', content);
  };

  return (
    <VEDAContentEditor
      initialContent="# Hello World"
      onChange={handleChange}
      allAvailableDatasets={[]} // Pass your datasets here
    />
  );
}

Important Notes

Version 0.1.9 - WORKING BUILD (Confirmed Fix)

This version successfully resolves both critical runtime errors that prevented v0.1.0-0.1.8 from working:

✅ BOTH ISSUES FIXED:

  1. Babel Runtime Error: ELIMINATED - No more "Cannot read properties of undefined (reading 'prototype')"
    • Babel helpers properly imported from @babel/runtime (verified in build output)
    • No inline helper functions in the built files
  2. Module Import Error: ELIMINATED - No more "acorn-jsx does not provide an export named 'default'"
    • All dependencies properly externalized (not bundled)
    • Build output only ~2.4k lines (vs 37k when dependencies were bundled)

Technical Solution:

  • Aggressive externalization using function-based external configuration
  • Only bundle source files from src/ directory
  • All node_modules and bare imports marked as external
  • CommonJS plugin only processes source files, not dependencies
  • Result: Clean build with all dependencies as external imports

Verification:

  • Build output shows clean imports: import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2'
  • No bundled dependencies or inline babel helpers
  • Package ready for use in Vite and other modern build tools

Version 0.1.8 - Complete Build Fix (Partial Success)

Made structural improvements but issues persisted due to incomplete externalization

Version 0.1.7 - Critical Build Fixes (Partial)

Attempted fixes that were not fully successful - issues persisted due to improper dependency bundling

Version 0.1.6

  • Attempted to fix acorn-jsx issue but both errors persisted
  • Added missing dependencies but build configuration was still incorrect

Version 0.1.5

  • Fixed babel class inheritance helpers issue (no more __proto__ errors)
  • Configured proper ESM output with babel runtime
  • Removed dangerous eval() usage for security
  • Added @babel/runtime as dependency
  • All fixes from previous versions included

Version 0.1.4

  • Fixed CSS handling with PostCSS for better build system compatibility
  • Corrected import syntax in documentation (named export)
  • Added troubleshooting guide
  • All fixes from previous versions included

Version 0.1.3

  • Enhanced build output formatting with explicit non-minification settings
  • Improved code readability in bundled output
  • All fixes from 0.1.2 included

Version 0.1.2

  • Fixed build configuration issues from 0.1.0
  • Added proper babel transpilation for class inheritance
  • Improved React version compatibility (supports React 16.8+, 17, and 18)
  • Removed minification for easier debugging

Peer Dependencies

This package requires:

  • React (>=16.8.0 || ^17.0.0 || ^18.0.0)
  • React DOM (>=16.8.0 || ^17.0.0 || ^18.0.0)

Some sub-dependencies may have stricter React version requirements, but the package should work with React 16.8+ and above.

Props

  • initialContent (string): Initial markdown content
  • onChange (function): Callback when content changes
  • allAvailableDatasets (array): Available datasets for the editor
  • className (string): Additional CSS classes

Development

To run the development server:

npm install
npm start

To build the library:

npm run build:lib

Troubleshooting

CSS Import Issues

Make sure to import the styles in your application:

import '@slesaad/veda-content-editor/dist/styles.css';

Build System Compatibility

If you're using Create React App, Vite, or Next.js, the package should work out of the box. For custom webpack configurations, you may need to ensure CSS imports from node_modules are properly handled.

React Version Conflicts

While the package supports React 16.8+, some sub-dependencies may have stricter requirements. If you encounter version conflicts, try:

  1. Using React 18 (recommended)
  2. Adding resolutions/overrides in your package.json

License

MIT