Skip to content

Sonner.Promise and other Fixes#1

Open
Lachee wants to merge 9 commits intoofps:mainfrom
IQ-Controls:main
Open

Sonner.Promise and other Fixes#1
Lachee wants to merge 9 commits intoofps:mainfrom
IQ-Controls:main

Conversation

@Lachee
Copy link
Copy Markdown

@Lachee Lachee commented Jun 11, 2024

I have added support for Sonner.Promise, it will dynamically update the content based on the result of promises.

I have also fixed up a variety of issues i was having, such as broken styling in the minified code, spammed toasts disappearing, and bad maths causing things to be inverted.

  • Updated styling to properly shrink in background
  • Added opts to functions so users can define durations
  • Added support for infinite durations
  • Added promise support
  • Made render return a new toast object with utility functions to allow dynamic data updates
  • Moved to webpack and removed uglifier as its minified code was causing firefox to stop rendering the scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant