livewire-alert

SweetAlert2 wrapper for Livewire

MIT License

Downloads
569.4K
Stars
708
Committers
16

Bot releases are hidden (Show)

livewire-alert - v3.0.2 Latest Release

Published by jantinnerezo 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/v3.0.1...v3.0.2

livewire-alert - v3.0.1 Release

Published by jantinnerezo about 1 year ago

Release Update: Livewire Alert Package v3.0.1

I recently released the Livewire Alert v3.0 to support the v3.0 version of Livewire. Upon review, many of you discovered an oversight in the release: the package dependencies were not correctly updated to reflect the compatibility with Livewire 3.0.

I apologize for any inconvenience this may have caused. To address this:

I've updated the dependencies to ensure compatibility with Livewire 3.0.
A new release with the corrected dependencies has been published. I recommend updating to this latest version to avoid any potential issues.

livewire-alert - v3.0 Release

Published by jantinnerezo about 1 year ago

Official Support for Livewire 3 stable release

I'm excited to announce that this release introduces support for Livewire 3 stable release!

Installation

composer update jantinnerezo/livewire-alert

What's Changed

New Contributors

Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/2.2.7...v3.0@beta

livewire-alert - 2.2.7

Published by jantinnerezo over 1 year ago

What's Changed

Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/2.2.6...2.2.7

livewire-alert - v2.2.6

Published by jantinnerezo over 2 years ago

HOTFIX

Fixed #78 callbacksKeyAllowed is not defined by declaring the variable.

livewire-alert - v2.2.5

Published by jantinnerezo over 2 years ago

Added

  • Allow empty string type #75
  • Configurations keys with javascript callbacks #76

Thanks to @gpibarra for submitting the PRs. 👌🏽

livewire-alert - v2.2.4

Published by jantinnerezo over 2 years ago

Added

  • Support for Laravel 9 #71
livewire-alert - 2.2.3

Published by jantinnerezo almost 3 years ago

Hotfix

  • Fixed flash message undefined data variable
livewire-alert - 2.2.2

Published by jantinnerezo almost 3 years ago

Performance updates

Added

  • Alert onConfirmed onDismissed onDenied and onProgress events should now emit to component that called the alert so it won't emit to every component in your project.
  • Ability to only emit to specified component.

Emit events to only specific component. Instead of passing the listener directly to the event, pass an array with component and listeners keys.

'onConfirmed' => [
   'component' => 'livewire-component',
   'listener' => 'confirmed'
];
livewire-alert - 2.2.1

Published by jantinnerezo almost 3 years ago

Bug fixes

  • Fixed update 2.1.9 error #52 refactor alert trait
  • Fixed 2.2.0 break inputAttribute on confirm #54
  • SweetAlert2: Unknown parameter "onConfirmed" #55

Added

You can now pass extra parameters to any alert events with the data key.

$this->alert('info', 'Extra paramters', [
    'onConfirmed' => 'confirmed',
    'showConfirmButton' => true,
    'data' => []
]);
public function confirmed($params)
{
    // Retrieve data
    $params['data'];
}
livewire-alert - 2.2.0

Published by jantinnerezo almost 3 years ago

Bugfix

  • Fixed empty events #53 and #52

Credits to @falconeri

livewire-alert - 2.1.9

Published by jantinnerezo almost 3 years ago

What's new

  • Added LivewireAlert trait
  • A way to retrieve alert input value. #50, #39 and #49
  • You can now pass event listener when the alert is dismissed.
  • Bundled and minified script with Laravel Mix
  • Publishable script file
  • Separate script component for flash when you go with the path of publishable script file
  • Added test cases

Breaking changes

Livewire Macroable is no longer used for directly calling alert due to it being automatically registered on Livewire components that are not using alert methods.

Instead, you can import the Jantinnerezo\LivewireAlert\LivewireAlert trait and use it in your Livewire components that are utilizing alerts.

livewire-alert - 2.1.8

Published by jantinnerezo almost 3 years ago

Added

  • Allow users to override alert config

Credits to @yoeunes 💪🏼

livewire-alert - 2.1.7 Release

Published by jantinnerezo about 3 years ago

Bug fix

  • Fix js errors in old browsers (#40)
  • Unexpected token '?' on Safari #27
livewire-alert - 2.1.6 Release

Published by jantinnerezo over 3 years ago

Bug fix

  • Unable to resolve dependency [Parameter #0 [ $id ]]

New feature

  • Support sending additional params on confirm #29 fix for issue #38
livewire-alert - 2.1.5 Release

Published by jantinnerezo over 3 years ago

2.1.5

✅ Fixed flash null config issue #28

livewire-alert - 2.1.4 Release

Published by jantinnerezo almost 4 years ago

2.1.4

✅ Fixed unable to install livewire alert in laravel 8.20.1

🎉 Thanks to @moneya for submitting the issue.

livewire-alert - 2.1.3 Release

Published by jantinnerezo almost 4 years ago

2.1.3 Release

⚡️ Optimize blade component script code to utilize config
➕ Added more default config to livewire-alert.php

livewire-alert - 2.1.2 release

Published by jantinnerezo almost 4 years ago

Added publishable config

Run this command to your terminal.

php artisan vendor:publish --provider="Jantinnerezo\LivewireAlert\LivewireAlertServiceProvider" --tag="config"

Huge thanks to @hantrick for submitting a PR for the config support.

livewire-alert - 2.1.1 release

Published by jantinnerezo almost 4 years ago

Separate config array for alert and confirm

return [
    'alert' => [
        'position' => 'top-end',
        'timer' => 3000,
        'toast' => true,
        'text' => null,
        'showCancelButton' => true,
        'showConfirmButton' => false,
    ],
    'confirm' => [
        'position' => 'center',
        'toast' => false,
        'timer' => null,
        'showConfirmButton' => true,
        'cancelButtonText' => 'No'
    ]
];
Package Rankings
Top 1.33% on Packagist.org
Related Projects