sweetalert2

✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦

MIT License

Downloads
2.6M
Stars
16.8K
Committers
122

Bot releases are hidden (Show)

sweetalert2 - v8.2.2

Published by limonte over 5 years ago

8.2.2 (2019-02-20)

Bug Fixes

  • crash if swal2 action buttons classes are applied to elements in html prop (#1420) (a21ef6b)
sweetalert2 - v8.2.1

Published by limonte over 5 years ago

8.2.1 (2019-02-18)

Bug Fixes

sweetalert2 - v8.2.0

Published by limonte over 5 years ago

8.2.0 (2019-02-17)

Features

sweetalert2 - v8.1.0

Published by limonte over 5 years ago

8.1.0 (2019-02-17)

Features

  • add new SCSS variables for input and progress steps (#1411) (5be77b6)
sweetalert2 - v8.0.7

Published by limonte over 5 years ago

8.0.7 (2019-02-12)

Bug Fixes

  • restore correct padding when scrollbar is present (#1410) (f73f1d7)
sweetalert2 - v8.0.6

Published by limonte over 5 years ago

8.0.6 (2019-02-05)

Bug Fixes

sweetalert2 - v8.0.5

Published by limonte over 5 years ago

8.0.5 (2019-02-02)

Bug Fixes

  • build-dist: git add src/SweetAlert.js, connected to #1401 (d024119)
sweetalert2 - v8.0.4

Published by limonte over 5 years ago

8.0.4 (2019-02-02)

Bug Fixes

sweetalert2 - v8.0.3

Published by limonte over 5 years ago

8.0.3 (2019-01-29)

Bug Fixes

  • api: showLoading() should open a new popup (#1394) (38823ff)
sweetalert2 - v8.0.2

Published by limonte over 5 years ago

8.0.2 (2019-01-28)

Bug Fixes

sweetalert2 - v8.0.1

Published by limonte almost 6 years ago

8.0.1 (2019-01-19)

Bug Fixes

  • use .js in imports to support ES modules (0e3e89e)
sweetalert2 - v8.0.0

Published by limonte almost 6 years ago

🥇 This release is delivered because of the awesomeness of these people (ordered a-z): @acupajoe, @gverni, @limonte, @toverux, @zenflow

🔴 Breaking change # 1 - swal(...) -> Swal.fire(...)

- swal({
+ Swal.fire({
  ...
})

Here's why we did that.

🔴 Breaking change # 2 - Bower support has been discontinued

Bower has been deprecated for almost 2 years bower/bower@0bd318d and since then they recommend using Yarn as a package manager:

...psst! While Bower is maintained, we recommend using Yarn and Webpack or Parcel for front-end projects read how to migrate!

Stick to 7.x if you need Bower support.

🔴 Breaking change # 3 - Deprecated methods were removed:

🔴 Breaking change # 4 - Deprecated parameters were removed:

  • extraParams
  • useRejections
  • expectRejections

🔴 Breaking change # 5 - Android Browser is no longer supported

Stick to 7.x if you need Android Browser 4.4 support.


🎉 ES modules support

https://www.pikapkg.com/packages/?q=sweetalert2

image

🎉 Swal.update({...})

Now, it's possible to update most of popup instance paramters dynamically:

Swal.update({
  title: 'Oops, something went rwong',
  html: 'Please try again',
  type: 'error'
})

Use Swal.isUpdatableParameter(paramName) to check if a given parameter is updatable.

Other changes

  • Swal.close() will resolve Swal.fire()'s promise with {} (no value or dismiss) (#1379)
  • SASS variables $swal2-validationerror-* were renamed to $swal2-validation-message-*
  • inputValidator and preConfirm should always resolve and never reject
  • Swal.DismissReason.backdrop is now 'backdrop', it was 'overlay' previously for backward compatibility.
sweetalert2 - v7.33.1

Published by limonte almost 6 years ago

7.33.1 (2018-12-22)

Bug Fixes

  • d.ts: add customContainerClass definition (#1351) (c5f11e7)
sweetalert2 - v7.33.0

Published by limonte almost 6 years ago

7.33.0 (2018-12-22)

Features

  • API: add customContainerClass for specifying custom container class (#1347) (c5ef1aa)
sweetalert2 - v7.32.4

Published by limonte almost 6 years ago

7.32.4 (2018-12-15)

Bug Fixes

sweetalert2 - v7.32.2

Published by limonte almost 6 years ago

7.32.2 (2018-12-09)

Bug Fixes

  • do not throw warnings when inputValue is a promise (#1333) (3607b72)
sweetalert2 - v7.32.1

Published by limonte almost 6 years ago

7.32.1 (2018-12-09)

Bug Fixes

sweetalert2 - v7.32.0

Published by limonte almost 6 years ago

7.32.0 (2018-12-08)

Features

sweetalert2 - v7.31.1

Published by limonte almost 6 years ago

7.31.1 (2018-12-07)

Bug Fixes

  • check this.running in timer methods (#1327) (418b8d3)
  • support HTMLElement for setting title/html/footer (#1328) (6f35e48)
sweetalert2 - v7.31.0

Published by limonte almost 6 years ago

7.31.0 (2018-12-06)

Features

  • api: add .resumeTimer(), .toggleTimer(), .increaseTimer() (#1325) (77649ee)