v1.0.0
Release Summary:
Tupp Trigger is a lightweight JavaScript library designed to enhance web form interactivity. This library simplifies the process of binding HTML form elements like inputs and selects to specific API calls and dynamically manipulating page elements based on API responses.
Key Features:
- Event Handling: Automatically attaches event listeners to form elements with the
tupp-triggerclass. - API Integration: Facilitates easy API calls by setting
data-tupp-chatflow-idon form elements. - Dynamic Response Handling: Offers flexible manipulation of page elements (specified by ID or class) in response to API calls.
- Customizable Actions: Supports actions like append, prepend, and replace on target elements, defined using
data-tupp-target-action. - Inline Styling: Allows inline styling of target elements upon receiving API responses via
data-tupp-target-style.
Enhancements:
- Robust error handling for various HTTP response statuses including 200, 400, 401, 403, 404, and 500.
- Enhanced response handling to extract and utilize the
textproperty from successful API responses.
This release establishes a solid foundation for creating interactive web forms with minimal setup, offering both ease of use and customization.