Releases: encheres-immo/auction-widget
@encheres-immo/[email protected]
@encheres-immo/[email protected]
Minor Changes
-
3df41c8: Added event emission functionality to the auction widget. The widget now dispatches events prefixed with
auction-widget:
, which can be handled using JavaScript on your website. The available events are:Name Payload Description bid_placed
{ amount: number, date: string }
Emitted when a bid is successfully placed. Can be used to play a sound, display a notification, etc. new_bid
{ amount: number, bidder: string, date: string }
Emitted when a new bid is placed. Can be used to play a sound, display a notification, etc. register
{}
Emitted when the user registers for the auction. Can be used for analytics, display a message, etc. To listen to an event, add an event listener to the widget element in your website's JavaScript:
document .getElementById("auction-widget") .addEventListener("auction-widget:new_bid", (event) => { console.log("New bid:", event.detail); });
This event list is meant to be extended in the future, so feel free to ask for new events if you need them!
-
3df41c8: Fixed an error where the form would accept non-number values. Also added a new CSS variable to customize errors color.
Variable name Default value --auction-widget-error-color
#dc2626
-
3df41c8: Renamed the
source
attribute tosource-name
, to avoid conflicts with existing HTML attribute. This is technically a breaking change, but it should not affect any existing usage of the widget.<!-- Before --> <div id="auction-widget" source="APIMO" [... other attributes]></div> <!-- After --> <div id="auction-widget" source-name="APIMO" [... other attributes]></div>
-
3df41c8: Added CSS reset to isolate widget styles from host page and ensure consistency across browsers. This change may cause minor visual changes as fewer styles are inherited from the host page.
Patch Changes
- b653663: Fixed a bug where amounts were not correct upon bid confirmation.
- 4a09e38: Fixed an issue where the contact modal was not closing correctly when
allowUserRegistration
was false. - 91b19eb: Fixed SVG icons not being displayed properly in the widget. A Font Awesome kit is no longer required.
- 6192fa4: Fixed the modal background to prevent elements from appearing above it.
- Updated dependencies [b653663]
- Updated dependencies [f7bcf21]
- @encheres-immo/[email protected]
@encheres-immo/[email protected]
Patch Changes
- 94f6fd6: Fixed an issue where the connected user's bids showed their anonymous ID instead of 'You'.
@encheres-immo/[email protected]
Patch Changes
- 088915c: Added documentation on upgrading the widget via NPM or standalone CDN links, along with guidelines for understanding version numbers.
@encheres-immo/[email protected]
Patch Changes
- 6b3ccbd: Updated README to reflect the package's open-source status, including links for contributions and issue reporting.
@encheres-immo/[email protected]
Patch Changes
- 6b3ccbd: Updated README to reflect the package's open-source status, including links for contributions and issue reporting.
- 2336f90: Fixed a bug where the
tos-url
attribute was incorrectly required, added validation for invalid URLs, and added documentation in the package README. - Updated dependencies [6b3ccbd]
- @encheres-immo/[email protected]
@encheres-immo/[email protected]
Minor Changes
-
65b24d5: Add a method to allows the connected user to register for a specific auction.
const registration = await client.registerOnAuction(auction); console.log("Registration:", registration);
This registration must be accepted by the agent later, or the user will not be able to place bids.
@encheres-immo/[email protected]
Minor Changes
-
65b24d5: Add an optional attribute to allow users to register for the auction—This registration must be accepted by the agent later, or the user will not be able to place bids. If set to false, agent's contact information will be displayed instead.
<div id="auction-widget" [... other attributes] allow-user-registration="false" ></div>
Default value is
true
.
Patch Changes
- ec8113d: Fixed an issue where bid history was visible to non-participants in private auctions.
- 582816d: Fixes several edge cases where the information displayed did not match the user's permissions/state.
- Updated dependencies [65b24d5]
- @encheres-immo/[email protected]
@encheres-immo/[email protected]
Patch Changes
- 08adb49: Expanded the documentation to include prerequisites, usage examples, useful commands, and important notes about the package. Behind the scenes, we also deeply refactored the codebase to improve reliability and maintainability.
@encheres-immo/[email protected]
Patch Changes
- 26bfc84: Improving logging and error handling. Behind the scenes, we also deeply refactored the codebase to improve reliability and maintainability.
- 2cae24d: Display a warning message when a bid seems too high.
- 08adb49: Modified the environment prop to accept specific values ("local", "staging", "production") and set a default value of "production". If you are an external user, please only use "production".
- Updated dependencies [08adb49]
- @encheres-immo/[email protected]