Feature/toast animations progress presets - #1
Merged
Conversation
…loading features - Added new animation types: SNAP, POP, REVEAL, and BOUNCE to ToastKitAnimation. - Introduced ToastKitDirection enum for customizable toast direction (AUTO, LEFT, RIGHT, TOP, BOTTOM). - Implemented progress tracking and loading state in ToastKitConfiguration. - Updated Android and iOS implementations to support new animations and properties. - Enhanced ToastKitHost to display progress indicators and handle loading states. - Added validation for new properties in JavaScript and PHP implementations. - Created a ToastPresetRegistry for managing toast presets and their configurations. - Added tests for new features, ensuring proper functionality and validation.
…ncy across platforms
… detailed explaination in the docs
…d improve documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed?
Expanded ToastKit with a new set of animation and developer-experience features.
Animations
snap,pop,reveal, andbounceanimations.auto,left,right,top, andbottom.fade,slide,scale, andspringanimations.Progress & loading
progress(0-100).loading()/loading(false)for indeterminate states.Presets
Toast::definePreset().Toast::preset()for creating a fresh builder from a registered preset.App\Toasts\ToastPresetsclass.Exceptions
ToastKitExceptionas the base exception.Other
Why?
These changes make ToastKit more useful for real application feedback beyond simple temporary notifications.
The new animations provide more expressive native feedback for success, error, warning, and informational states.
Progress and loading states make ToastKit suitable for longer-running operations such as uploads, downloads, payments, and background processing.
Presets reduce repeated toast configuration across multiple screens while still allowing individual screens to override any preset configuration when necessary.
The exception hierarchy also gives consumers a consistent
ToastKitExceptionbase type for handling exceptions originating from ToastKit.How was it tested?
0through100, including progress updates.progress(0)andloading(false).Platforms tested
Breaking changes?
None.
Existing ToastKit APIs and bridge behavior remain compatible. The new functionality is additive, and existing applications can continue using ToastKit without changes.
Checklist