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 🙏

© 2024 – Pkg Stats / Ryan Hefner

editable-dnd-list

v2.0.0

Published

An editable DnD list.

Downloads

25

Readme

editable-dnd-list Weekly downloads

An editable DnD list.


Demo

You can access the storybook for this component here.

Props

| Name | Type | Required | Default | Description | | -------- | ----------------------- | -------- | ------- | --------------------------------------------------------------- | | items | Task[] | no | [] | The initial list of items | | onChange | (items: Task[]) => void | yes | - | The function called when there are changes in the list of items |

Props of Task

| Name | Type | Required | Default | Description | | ---- | ------ | -------- | ------- | ------------------------------ | | id | string | yes | - | The unique if of the item | | text | string | yes | - | The text representing the item |


Versions

| EditableDndList uses | Material-ui | React | | ---------------------: | :---------: | :--------------: | | 1.0.x | | 16.8.0 | | 1.1.x | | 16.8.0 | | 1.2.x | 4.10.12 | 16.8.0 | | 1.3.x | 4.11.0 | 16.8.0 | | 1.4.x | 4.11.3 | 16.9.0 or 17.0.0 | | 1.5.x | 4.12.3 | 16.9.0 or 17.0.0 | | 2.0.x | 5.10.17 | >=18.0.0 |

About versioning schema used for EditableDndList

  • Major - it will be increased if any major version of any dependat package changes or there are breaking changes in this package
  • Minor - it will be increased if any minor or patch version of any dependat package changes or there is added functionality in a backwards compatible manner
  • Patch - it will be increased if there are backwards compatible bug fixes

Example

Displaying a list having initially two items:

import * as React from "react";
import EditableDndList from "editable-dnd-list";

class App extends React.Component {
  private items: Task[] = [
    {
      id: '1',
      text: 'Text 1'
    },
    {
      id: '2',
      text: 'Text 2'
    }
  ];

  render() {
    return (
      <div className="App">
        <EditableDndList items={this.items} onChange={this.handleChange} />
      </div>
    );
  }

  handleChange = (items: Task[]) => console.log({ items });
}

export default App;

Changelog

1.0.0

  • editable-dnd-list is made publicly available

1.0.1

  • Fixed bug related to missing assets in lib

1.1.0

  • Updated packages

1.2.0

  • Updated packages

1.2.1

  • Updated packages
  • Moved from npm to yarn

1.2.2

  • Updated packages

1.2.3

  • Updated packages

1.3.0

  • Updated packages

1.3.1

  • Fixed crash produced by "export * from"

1.4.0

  • Accepting React 17 as peerDependencies
  • Fixed security warnings

1.5.0

  • Updated the packages

2.0.0

  • Migrated to material-ui 5
  • Supports minimum React 18