Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Releases: Cogoport/cogo-toast

v3.2.1

19 Jul 08:01
Compare
Choose a tag to compare
  • v3.2.1

    • v3.2.0 Accidentally published a Non-Minified Build. v3.2.1 fixes this

v3.2.0

19 Jul 07:44
Compare
Choose a tag to compare

JSX Support:

  • Prop types fix when using React node instead of a text message.
  • JSX Usage added in the documentation.

v3.1.0

15 Jun 14:13
24353e9
Compare
Choose a tag to compare

Ability to hide the toast immediately on click. hide function passed as a param in onClick.

cogoToast.success('This is a success message.', {
	onClick: (hide) => {
		hide();
	},
});

v3.0.0

14 Jun 22:15
Compare
Choose a tag to compare
  • Major internal rewrite to remove ReactDOMServer dependency.

  • Using react hooks internally, so support for React versions before hooks is now dropped. Use v2.0.1 if you want to use this library in versions before React@16.8 (pre-hooks)

Breaking:

  • icon option changed to renderIcon, where you can pass a render function instead of a node. (Useful for Lazy Rendering)
  • Export for create function removed. cogoToast() works like create did before.

v2.0.1

28 May 09:42
Compare
Choose a tag to compare
  • Fix for top level typings declaration

v2.0.0

28 May 07:17
c88b75b
Compare
Choose a tag to compare
  • Custom styling is now supported. Just extend the CSS classes to specify your own styles. For all class names, refer to /src/styles.css

  • Typescript typings added. Shout out to @sebastien-p

Breaking

  • CSS Classes have been changed, so if you extended the old class names, your styling may break. Refer to /src/styles.css for the new class names.

v1.0.7

27 May 10:15
Compare
Choose a tag to compare

Internal Dependencies and build system upgraded

v1.0.4

12 Oct 17:21
Compare
Choose a tag to compare

Readme Update for NPM

v1.0.1

09 Oct 10:21
c60f5af
Compare
Choose a tag to compare
  • Plug & Play. No configuration required

  • 5 Built in Types

  • ~ 3.5K Gzipped (All Inclusive of Icons, Styles, & Code)

  • Returns a Promise, With Useful Callbacks

  • Completely Customizable

  • Built with React