Skip to content

Releases: visma-meglerfront/sweet-modal-vue

v2.0.0

22 Oct 16:30
Compare
Choose a tag to compare

Kinda big release, everyone!
We're bumping up the major version due to a break with current installations using babel-preset-es2015. Please read this changelog carefully!

Features + Bugfixes

  • Support disabling mobile fullscreen (#39) by providing :enable-fullscreen-mobile="false"
  • Support manually setting the width (#37) by providing width, i.e. :width="200" or width="85%"
  • Support global installation
    import SweetModal from 'sweet-modal-vue/src/plugin.js'
    Vue.use(SweetModal);
  • Fix a name-clash with Laravel and SweetAlert (#19)
  • Fix a lot of import and build errors (#36, #34, #33, #29, #19)

Technical Changes

  • Upgrade to Webpack 3
    This shouldn't affect you other than having to run another npm i, though.

  • Switch to babel-preset-env
    This removes the need to install any babel presets yourself. This also got rid of our .babelrc file so it doesn't clash with yours.

  • Downgrade css-loader
    The current versions are pretty slow while not bringing any relevant new features.

  • Support module- and minified-based loading
    package.json now includes module and main.

Breaking Changes

  • SweetModal is no longer compatible with UglifyJS.
    To use SweetModal in your project you have to use any other ES6-compatible minifier, for example babel-minify.

v1.2.0

07 Aug 14:53
Compare
Choose a tag to compare
  • Upgrade to vue-loader@13, webpack@2.6 (#28)
  • open() now supports a tab's ID as the first argument to open a modal directly to a specific tab
  • Resolves issues with building element in some projects (#30)
  • Resolves scrolling issues with modals that are longer than the viewport (#20)

v1.1.2

02 Jul 20:49
Compare
Choose a tag to compare
  • Fix "Unknown custom element" (#22)

Note: This removes the browser field from the package.json. It will be re-added soon.

v1.1.1

27 May 12:15
Compare
Choose a tag to compare
  • Add browser field to package.json (#11)
  • Add option to disable pulse effect (pulse-on-block, #12)
  • Add lockfile for use with yarn
  • Fix title alignment (#8)
  • Fix success icon with dark theme (#16)