@gomusdev/web-components 3.10.0 → 3.10.2

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.
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.10.2 (2026-07-02)
4
+
5
+ ### Bug Fixes
6
+
7
+ * **release:** build bundle and stamp released version so the skill auto-publishes
8
+
9
+ ## 3.10.1 (2026-07-02)
10
+
11
+ ### Bug Fixes
12
+
13
+ * **ticket-selection:** re-derive capacity on cart changes (TC-09)
14
+
3
15
  ## 3.10.0 (2026-07-01)
4
16
 
5
17
  ### Features
@@ -36467,6 +36467,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36467
36467
  const infoPanelId = `go-ticket-info-${uid}`;
36468
36468
  user_effect(() => {
36469
36469
  details().preCart.items.map((i) => i.quantity);
36470
+ shop.cart?.items.map((i) => i.quantity);
36470
36471
  untrack(() => {
36471
36472
  set(capacity, shop.capacityManager.capacity(shop.cart, item(), details().preCart), true);
36472
36473
  });
@@ -36717,7 +36718,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36717
36718
  this.timeslots = [];
36718
36719
  return;
36719
36720
  }
36720
- this.timeslots = shop.capacityManager.quotaManager.timeslotsOn(date, this.tsd?.timeslotTicketIds).map((x) => ({
36721
+ const quotaManager = shop.capacityManager.quotaManager;
36722
+ quotaManager.clearPrecart();
36723
+ for (const item of shop.cart?.items ?? []) {
36724
+ const product = item.product;
36725
+ if (isUITicket(product)) quotaManager.setPrecartItemQuantity(product.id, item.quantity ?? 0);
36726
+ }
36727
+ this.timeslots = quotaManager.timeslotsOn(date, this.tsd?.timeslotTicketIds).map((x) => ({
36721
36728
  ...x,
36722
36729
  startAt: x.timeSlot,
36723
36730
  timeFormatted: x.timeSlot.substring(11, 16),
@@ -36744,6 +36751,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36744
36751
  details.recalculateCapacities();
36745
36752
  });
36746
36753
  });
36754
+ user_effect(() => {
36755
+ shop.cart?.items.map((i) => i.quantity);
36756
+ untrack(() => details.recalculateCapacities());
36757
+ });
36747
36758
  const dispatchTimeslotSelect = (target, selected) => {
36748
36759
  if (!target || !("dispatchEvent" in target)) return;
36749
36760
  target.dispatchEvent(new CustomEvent("go-timeslot-select", {
@@ -36466,6 +36466,7 @@ function Item($$anchor, $$props) {
36466
36466
  const infoPanelId = `go-ticket-info-${uid}`;
36467
36467
  user_effect(() => {
36468
36468
  details().preCart.items.map((i) => i.quantity);
36469
+ shop.cart?.items.map((i) => i.quantity);
36469
36470
  untrack(() => {
36470
36471
  set(capacity, shop.capacityManager.capacity(shop.cart, item(), details().preCart), true);
36471
36472
  });
@@ -36716,7 +36717,13 @@ var Details$1 = class {
36716
36717
  this.timeslots = [];
36717
36718
  return;
36718
36719
  }
36719
- this.timeslots = shop.capacityManager.quotaManager.timeslotsOn(date, this.tsd?.timeslotTicketIds).map((x) => ({
36720
+ const quotaManager = shop.capacityManager.quotaManager;
36721
+ quotaManager.clearPrecart();
36722
+ for (const item of shop.cart?.items ?? []) {
36723
+ const product = item.product;
36724
+ if (isUITicket(product)) quotaManager.setPrecartItemQuantity(product.id, item.quantity ?? 0);
36725
+ }
36726
+ this.timeslots = quotaManager.timeslotsOn(date, this.tsd?.timeslotTicketIds).map((x) => ({
36720
36727
  ...x,
36721
36728
  startAt: x.timeSlot,
36722
36729
  timeFormatted: x.timeSlot.substring(11, 16),
@@ -36743,6 +36750,10 @@ function Timeslots($$anchor, $$props) {
36743
36750
  details.recalculateCapacities();
36744
36751
  });
36745
36752
  });
36753
+ user_effect(() => {
36754
+ shop.cart?.items.map((i) => i.quantity);
36755
+ untrack(() => details.recalculateCapacities());
36756
+ });
36746
36757
  const dispatchTimeslotSelect = (target, selected) => {
36747
36758
  if (!target || !("dispatchEvent" in target)) return;
36748
36759
  target.dispatchEvent(new CustomEvent("go-timeslot-select", {