3.1.4 • Published 6 years ago

react-new-features-modal v3.1.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

react-new-features-modal

Show a modal to communicate new added features. The last shown version is stored in localStorage, so each user sees the new feature announcement only once.

screen

Demo

Play with the demo

Only new features

Only features the user hasn't seen yet will be displayed in the pop-up. E.g. if the user has seen version 4 of your application before and current version is 6, only features for versions 5 and 6 will be displayed in the modal.

Usage

npm install react-new-features-modal --save

In your component:

import NewFeatures from 'react-new-features-modal'

const notes = {} // see schema below

...
render() {
  return <NewFeatures notes={notes} limit="2"/>
}

Configuration

notes - a JSON structure with release notes for consecutive versions:

{
  releases: [{
    version: 1,
    features: [{
      title: "Foo",
      description: "This new foo feature is so ready!"
    }]
  }, {
    version: 2,
    features: [{
      title: "Bar",
      description: "Now you can do foo with this new bar"
    },
    {
      title: "Baz",
      description: "Baz has been just added for your convenience"
    }]
  }]
}

limit (optional) - maximum number of last versions to display. Otherwise no limit.

3.1.4

6 years ago

3.1.3

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.4

6 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago