Skip to content

v1.0.0

Choose a tag to compare

@eleonel eleonel released this 28 Dec 09:39
· 9 commits to main since this release
a4068cd

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-trigger class.
  • API Integration: Facilitates easy API calls by setting data-tupp-chatflow-id on 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 text property 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.