@levo-so/site-runtime 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/index.js +975 -873
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @levo-so/site-runtime
2
2
 
3
+ ## 0.3.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Event registration suggests the event's public coupons and applies the best one on its own. It works in both the one-ticket sheet and the multi-ticket cart, and needs no new props or backend change: it uses the existing public-coupon list and coupon validation. **A visible change on every site that sells paid tickets.** Nothing to change in site code.
8
+
9
+ - **The best public coupon is already applied when the price appears.** A green banner shows the code and the saving, with "Finding your best offer…" while it validates. A failed auto-apply stays silent and leaves the price as it was.
10
+ - **The other public coupons the order qualifies for show as cards with their saving worked out**, e.g. "Save ₹300 · 10% off, up to ₹300". With nothing applied, the top card is marked "Best". Once a coupon is applied, the rest fold under "N more offers", and "Switch" moves to one of them.
11
+ - **Only coupons the order qualifies for are offered.** Archived, not-yet-started, expired and fully redeemed coupons are left out, as are coupons whose minimum order is not met and coupons that cover none of the chosen tickets. Offers are ranked by estimated saving, capped at the coupon's maximum discount. The applied banner always shows the server's figure, not the estimate.
12
+ - **Typing a code still works**, under "Have a code?", or "Have a different code?" once a coupon is applied. It is the only way to use a private code. A code that fails shows an inline error and leaves the applied coupon in place. Codes are upper-cased before they are checked.
13
+ - **The attendee's choice wins.** A code the attendee types or picks is never replaced by the best offer, even when the best offer is still loading or their own code fails. Removing the auto-applied coupon keeps it removed; a coupon is applied again only when the tickets change.
14
+ - In the multi-ticket cart, a coupon is applied only on the review step, the first point where the price is on screen.
15
+
16
+ Fixed:
17
+
18
+ - A booking now sends only a code the server has accepted. Before, a code typed into the field but never applied was sent with the booking.
19
+ - On the one-ticket sheet, a coupon that takes the price to zero no longer hides the order summary and coupon field, so the attendee can still see and remove it.
20
+ - @levo-so/core@0.3.27
21
+ - @levo-so/insights@0.3.27
22
+
3
23
  ## 0.3.26
4
24
 
5
25
  ### Patch Changes