Skip to content

Releases: SpinettaInc/Tupp-Trigger-Library

v1.0.1

30 Dec 06:45
fd1c36a

Choose a tag to compare

Release Summary:

We are excited to announce the latest update to the Tupp Trigger library. This update brings several enhancements and new features, making the library more versatile and user-friendly.

Full Changelog: 1.0.0...1.0.1

What's New:

  1. Support for Button Elements: The library now supports button HTML elements, including inputs of type submit. This feature allows for greater flexibility in handling various user interactions.

  2. Customizable Debounce Delay: Users can now specify a custom debounce delay for input and textarea elements using the data-tupp-debounce-delay attribute. This enhancement optimizes API call frequency, improving performance and user experience.

  3. Refined Event Handling: We have improved the event handling mechanism, ensuring a more efficient and responsive interaction with the Tupp.io API.

Improvements:

  • Debounce Mechanism: Enhanced the debounce control for input and textarea elements to reduce unnecessary API calls and improve efficiency.

  • Code Refactoring and Optimization: The library's codebase has been refactored and optimized for better performance and maintainability.

  • Documentation Update: The README.md has been updated to include information about the requirement of having a Tupp.io account and detailed guidance on using the new features.

Bug Fixes:

  • Minor bug fixes and performance improvements.

v1.0.0

28 Dec 09:39
a4068cd

Choose a tag to compare

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.