@gomusdev/web-components
v3.1.1
Published
* Remove old tickets from the cart
Downloads
9,231
Readme
Changelog
3.1.1 (2026-05-26)
Bug Fixes
- Remove old tickets from the cart
3.1.0 (2026-05-26)
Features
- coupon: ensure coupon codes are stored in uppercase and update tests/documentation
Bug Fixes
- auth: replace 1s localStorage poll with storage event
3.0.0 (2026-05-26)
⚠ BREAKING CHANGES
- cart: is now a composable shell. The old self-rendering
markup no longer renders the standard layout — integrators
must migrate to the new subcomponents (, ,
, , )
or use the
defaultattribute as a drop-in. Coupon row classes are renamed (.go-cart-coupon, .go-cart-coupon-code, .go-cart-coupon-remove). The remove button uses the shared .go-cart-remove class. now exposes the cart projection as data.cartView. See README.md and the cart documentation for the full migration.
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Features
- cart, if: expose cart projection to go-if and document coupon scenarios
- cart: enhance layout & UX with new coupon redemption and styling updates
- cart: modularize cart components and add customizable subcomponents
Bug Fixes
- flush unsubmitted coupon token before checkout
- include 2.1.1 patches from master
- shop: remove dangerous clearCache() that wiped auth and cart, closes this.#data gomus/frontend#24
- validate coupon on go-after-validation, not just submit
Documentation
- cart: announce 3.0.0 breaking change for cart composable rewrite
3.0.0-next.3 (2026-05-21)
Bug Fixes
- include 2.1.1 patches from master
3.0.0-next.1 (2026-05-21)
⚠ BREAKING CHANGES
- cart: is now a composable shell. The old self-rendering
markup no longer renders the standard layout — integrators
must migrate to the new subcomponents (, ,
, , )
or use the
defaultattribute as a drop-in. Coupon row classes are renamed (.go-cart-coupon, .go-cart-coupon-code, .go-cart-coupon-remove). The remove button uses the shared .go-cart-remove class. now exposes the cart projection as data.cartView. See README.md and the cart documentation for the full migration.
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Features
- cart, if: expose cart projection to go-if and document coupon scenarios
- cart: enhance layout & UX with new coupon redemption and styling updates
- cart: modularize cart components and add customizable subcomponents
Bug Fixes
- flush unsubmitted coupon token before checkout
- shop: remove dangerous clearCache() that wiped auth and cart, closes this.#data gomus/frontend#24
- validate coupon on go-after-validation, not just submit
Documentation
- cart: announce 3.0.0 breaking change for cart composable rewrite
Changelog
2.1.1 (2026-05-21)
Bug Fixes
- add optional chaining to barcode id access
2.1.0 (2026-05-05)
Features
- add bundle analysis scripts for web components
2.0.0 (2026-05-05)
Major release. All ticket-selection filter names changed. mode attribute removed. <go-ticket-segment filters> now multi-valued and optional (inherits from parent). New event:admission / events:admission filter family with :day / :timeslot ticket-type splits.
⚠ BREAKING CHANGES — what integrators must update
1. Rename your filters
All filter tokens used in <go-ticket-selection filters="..."> and <go-ticket-segment filters="..."> must be renamed.
| Old (≤ 1.57) | New (2.0) | Notes |
|-----------------------|-----------------------------|---------------------------------------------------|
| timeslot | ticket:timeslot | renamed |
| day | ticket:day | renamed |
| annual | ticket:annual | renamed |
| event:ticket | event:admission | renamed |
| event:scaled-price | event:price | renamed |
| events:scaled-price | events:price | renamed |
| — | event:admission:day | new — single event, day tickets only |
| — | event:admission:timeslot | new — single event, timed-entry tickets only |
| — | events:admission | new — multi-event admission listing |
| — | events:admission:day | new — multi-event admission, day tickets only |
| — | events:admission:timeslot | new — multi-event admission, timed-entry only |
Unknown filter tokens now emit a console.warn listing valid names instead of failing silently.
2. Drop the mode attribute
<!-- before -->
<go-ticket-selection mode="ticket" filters="timeslot"></go-ticket-selection>
<!-- after -->
<go-ticket-selection filters="ticket:timeslot"></go-ticket-selection>The mode attribute is ignored and emits a deprecation warning if present. Remove it.
3. <go-ticket-segment filters> is now multi-valued and optional
- Comma-separated:
<go-ticket-segment filters="ticket:day,ticket:timeslot">runs both filters in the same segment in parallel. - Optional: when omitted, the segment inherits the parent
<go-ticket-selection filters>. Previously the segment threw iffilterswas missing.
<!-- before — filters required, single value -->
<go-ticket-selection filters="timeslot">
<go-ticket-segment filters="timeslot"></go-ticket-segment>
</go-ticket-selection>
<!-- after — segment inherits parent -->
<go-ticket-selection filters="ticket:timeslot">
<go-ticket-segment></go-ticket-segment>
</go-ticket-selection>Parent and child filters still need to stay consistent — no auto-inference between selection-level visibility and segment-level loading.
Features
New filter
event:admission(replacesevent:ticket). Renders an event's admission tickets and scopes timeslot capacity to the event's own ticket IDs, so unrelated shop-wide timeslot tickets no longer leak into the picker.New filter
events:admission— multi-event listing that renders each event's admission tickets for the selected date + time window. Use for "What's on today" pages.New filters
event:admission:day,event:admission:timeslot,events:admission:day,events:admission:timeslot— split admission flows by ticket type so day tickets and timed-entry tickets render in separate segments. Plainevent:admission/events:admissionstill render every type.Multiple filters per segment.
<go-ticket-segment filters="a,b">loads both filters in parallel and merges their tickets into the same segment.Segment filter inheritance. Omit
filterson<go-ticket-segment>to fall back to the parent<go-ticket-selection filters>.Better diagnostics. Unknown filter tokens log a warning listing the valid names. The deprecated
modeattribute logs a deprecation warning.
Bug Fixes
event:admissiontimeslot picker no longer mixes capacities from unrelated shop tickets. Previously, slots (e.g. 10:00) could appear sold-out on an event because an unrelated shop-wide timeslot ticket had no capacity, even though the event's own tickets did. Each filter's timeslot fetch is now scoped to its own ticket IDs.
1.57.0 (2026-05-04)
Features
- Add photo upload field to annual ticket personalization
1.56.1 (2026-04-28)
Bug Fixes
- Import type issue
1.56.0 (2026-04-28)
Features
- add support for flat event tickets with subtype handling
- enhance cart model with improved type safety and subtype handling
- refactor product model to a proper discriminated union
- refactor product model to replace
product_typewithtypeand introducesubtype - Update Naming: replace scaling price tickets with event tickets and update references
1.55.3 (2026-04-27)
Bug Fixes
- Clear go-auth data for guest accounts after checkout
1.55.2 (2026-04-21)
Bug Fixes
- Pass correct payment Id to order api
1.55.1 (2026-04-20)
Bug Fixes
- Remove date from annual ticket cart item
1.55.0 (2026-04-20)
Features
- implement CSP-safe expression evaluator with extended syntax support
1.54.2 (2026-04-17)
Bug Fixes
- Disable cross tab sync for cart
- Do not call cart api when there are no coupons applied
1.54.1 (2026-04-16)
Bug Fixes
- cart event scale prices display
1.54.0 (2026-04-16)
Features
- simplify timeslot selection logic with reusable dispatch function
Bug Fixes
- auto-select the only available timeslot
1.53.0 (2026-04-14)
Features
- add action token scenarios for cart with storybook integration
- Add createCart api call
- add display model and coupon handling logic for cart
- Allow to remove coupons from the cart
- enhance localStorage cart sync with deduplication and cross-tab support
- refactor cart logic to enhance coupon handling and display item model integration
- update cart display logic with new display model integration
- Update redeem function to call createCart when token is an action token
Bug Fixes
- remove redundant
orderDatacall and unused coupon logic
1.52.0 (2026-04-13)
Features
- Add PaymentModes web component
- Refactor PaymentModes web component into form field
Bug Fixes
- Hide payment mode input if there is only one option
1.51.1 (2026-03-31)
Bug Fixes
- nest Web Components box inside Kunden-Website in presentation diagram
1.51.0 (2026-03-30)
Features
- fix defining form fields via go.config
1.50.1 (2026-03-30)
Bug Fixes
- ensure timeslots are sorted chronologically in QuotaManager
1.50.0 (2026-03-26)
Features
- Form Errors Screen Reader Fix
- improve dynamic ID handling in Field
- update field components to support multiple describedBy IDs
1.49.0 (2026-03-24)
Features
- Use tickets dynamic_prices to update price based on timeslot selected
Bug Fixes
- Remove items from the cart when they are in the past
1.48.0 (2026-03-19)
Features
- add floor option to generateQuantityOptions and update cart item selector to use it
1.47.1 (2026-03-19)
Bug Fixes
- show only edge on doc storybook shop selector
1.47.0 (2026-03-17)
Features
- add accessibility tests to CI pipeline
- add preVisit hook to wait for Storybook to load
- implement accessibility test runner for Storybook
- increase test timeout for Storybook in CI
- refactor a11y test script into standalone bash file
Bug Fixes
- extend Storybook timeout and add initialization check in a11y test script
- extend test timeout for a11y tests in Storybook
1.46.0 (2026-03-06)
Features
- add personalization details to If component
1.45.0 (2026-03-04)
Features
- improve form wrapping behavior and update form configuration logic
Bug Fixes
- improve form configs merge logic in ConfigStore
1.44.0 (2026-03-04)
Features
- Add ical_url to order items and add translations for hardcoded strings
1.43.0 (2026-03-03)
Features
- add web components management presentation with FTP deploy
1.42.0 (2026-03-02)
Features
- add localStorage support for capacity management with cross-tab sync
- add tests to ensure cart respects ticket capacity limits
- extract cart item rendering into a dedicated component
- improve accessibility and cart item rendering logic
Bug Fixes
- ensure minimum seats default to 0 when undefined
1.41.0 (2026-02-25)
Features
- add boockedOutCount for timeslots and improve test coverage
- add message display for booked out timeslots
- register timeslot details in TicketSelectionDetails
1.40.0 (2026-02-24)
Features
- add
gosnippet loader and interface implementation with tests - add Playwright unit test configuration and example test
- add static server support for Playwright tests
- migrate from
gotoconfigStoreimplementation - refactor
goimplementation and enhanceconfigStore
Bug Fixes
- correct file path for snippet in interface test
- handle localStorage unavailability in shop mock setup
- update Vitest config to exclude additional e2e spec patterns
1.39.5 (2026-02-17)
Bug Fixes
- Display event start_time along side event title
- Filter dates that are too far in the future
1.39.4 (2026-02-16)
Bug Fixes
- Remove space from string
1.39.3 (2026-02-12)
Bug Fixes
- Filter dates by available seats
1.39.2 (2026-02-05)
Bug Fixes
- Add missing translations to annual ticket personalization list
1.39.1 (2026-01-26)
Bug Fixes
- Passbook showing when ticket doesn't have it
1.39.0 (2026-01-23)
Features
- add museum ID filtering for ticket segments
1.38.0 (2026-01-23)
Features
- move timeslot filtering to the model level and removed some legacy code that was unused
Bug Fixes
- Show correct timeslots when multiple exist with the same startAt
1.37.1 (2026-01-23)
Bug Fixes
- Ensure that we pass locale parameters with post requests
1.37.0 (2026-01-20)
Features
- Allow to pass date_id param to event:tickets segment
1.36.0 (2026-01-19)
Features
- add configurable submit label support for forms
- add localization support for form submit labels
Bug Fixes
- simplify form submit label localization logic
1.35.0 (2026-01-16)
Features
- cart: Add coupon support with local storage persistence
- coupon: add coupon redemption component
1.34.0 (2026-01-16)
Features
- add
fillmethod to FormDetails and update components for data population - add change password component with form validation
- add change password component with form validation
- add functionality to load scaled price tickets for events
- add new API methods for PUT and DELETE requests in shop store
- add new API methods for PUT and DELETE requests in shop store
- add onsubmit callback support for forms
- add onsubmit callback support for forms
- add Profile Details component
- add profile entry component for improved modularization
- add profile entry component for improved modularization
- add profile overview component with token validation
- add profile overview component with token validation
- add ticket group ID support for ticket loading and improve error handling
- add ticket group ID support for ticket loading and improve error handling
- add toString method to FormDetails class
- add toString method to FormDetails class
- enhance support for scaled price ticket filtering and event handling
- go-form to dispatch a submit event only after submitting valid forms
- go-form to dispatch a submit event only after submitting valid forms
- introduce support for bulk event scaled price tickets and query-based filters
- load auth on init
- load auth on init
- rename and update methods for loading scaled price tickets
- replace form binding with event-driven submission handling
- replace form binding with event-driven submission handling
- restructure profile components for modularity and add
Detailscomponent - restructure profile components for modularity and add
Detailscomponent - update password components and enhance submission handling
- update password components and enhance submission handling
- update Profile components to enhance data handling and structure
Bug Fixes
- remove unused
[#fields](https://gitlab.giantmonkey.de/gomus/frontend/issues/fields)property in FormDetails class - remove unused
[#fields](https://gitlab.giantmonkey.de/gomus/frontend/issues/fields)property in FormDetails class
1.33.1 (2026-01-15)
Bug Fixes
- correct typo in LocalStorageCartItem type name
1.33.0 (2026-01-08)
Features
- remove debugger
1.32.0 (2026-01-05)
Features
- update TicketSegment to toggle 'is-empty' class based on ticket count
Bug Fixes
- correct typo in TicketSegment comment
- update snapshot tests to include explicit class attribute
1.31.2 (2026-01-05)
Bug Fixes
- fix is-selected class in calendar to always been correctly set
1.31.1 (2026-01-05)
Bug Fixes
- adjust cart item rendering to remove extra whitespaces
1.31.0 (2026-01-05)
Features
- add documentation for TicketsEmpty component
- add TicketsEmpty component for empty state handling
- enhance AddToCartButton tests with new ticket factory and capacity logic
- enhance timeslot and ticket handling with availability filters and CSS updates
- introduce ticket factory and enhance tests with capacities
1.30.0 (2025-12-29)
Features
- add support for event titles and scaled prices in cart
Bug Fixes
- remove unnecessary debug calls and adjust snapshots for ticket titles
1.29.0 (2025-12-29)
Features
- enhance ticket selection calendar and localization support
1.28.0 (2025-12-25)
Features
- ensure real-time error updates in forms for better feedback accessibility
- improve dynamic form handling and refine field validation logic
Bug Fixes
- remove unused $inspect call in ErrorsFeedback component
1.27.2 (2025-12-25)
Bug Fixes
- handle additional error cases and improve error counting in forms
1.27.1 (2025-12-25)
Bug Fixes
- ensure beforeSubmit function supports async operations in checkout form
1.27.0 (2025-12-24)
Features
- add country field to checkout form and improve select field handling
- add localization support for cart headers and update documentation
- add localization support for cart headers and update documentation
- enhance form localization and error handling
- enhance form localization and error handling
- localize field errors and documentation for forms
- localize field errors and documentation for forms
- remove HostWC.svelte and refactor ticket and cart components
- remove HostWC.svelte and refactor ticket and cart components
- update form fields and localization handling
- update form fields and localization handling
Bug Fixes
- Show sold out timeslots
1.26.3 (2025-12-16)
Bug Fixes
- Use depth param for calendar api
1.26.2 (2025-12-15)
Bug Fixes
- Day tickets checking wrong time for their quota
1.26.1 (2025-12-15)
Bug Fixes
- Use $derived for cart in checkoutForm
1.26.0 (2025-12-15)
Features
- Adjusted seat capacity calculation to sum only matching items in the cart and precart.
Bug Fixes
- specs
1.25.4 (2025-12-11)
Bug Fixes
- Add event times in order confirmation
- Show event times in cart
1.25.3 (2025-12-11)
Bug Fixes
- cart unsafe mutation issue
1.25.2 (2025-12-10)
Bug Fixes
- Reset timeslots when date changes
1.25.1 (2025-12-09)
Bug Fixes
- Use barcodeId param for pdf download url
1.25.0 (2025-12-09)
Features
- introduce availability policies for cart item management
- remove availability policies and introduce centralized capacity management
1.24.1 (2025-12-03)
Bug Fixes
- Filter out tickets that do not have capacities for the selected timeslot
1.24.0 (2025-12-02)
Features
- add descriptive class names to CalendarUI components
- add selected-date and filters as reflected attrs to the go-ticket-selection
- add warning for undefined routes in Link component
- optimize calendar fetch logic: Fetch 3 months
1.23.0 (2025-11-30)
Features
- refactor ticket loading methods and introduce
loadEventTickets - update ticket segment logic for event tickets
Bug Fixes
- remove unused logs and improve ticket capacity handling
- update eventTickets imports and unskip TicketSegment test
1.22.3 (2025-11-26)
Bug Fixes
- Add Event item to go-orders-breakdown
1.22.2 (2025-11-26)
Bug Fixes
- Clear cart when go-order mounts
1.22.1 (2025-11-26)
Bug Fixes
- Remove throw error from generateQuantityOptions
1.22.0 (2025-11-25)
Features
- selected-date
1.21.0 (2025-11-25)
Features
- cart.continget to cap the amount of items in the cart
- go link component
- Scaled Price Events respect data.seat to calculate the capacity
- Ticket Selection, event mode
Bug Fixes
- make the cartItem.uuid unique
1.20.1 (2025-11-24)
Bug Fixes
- $ in class
1.20.0 (2025-11-19)
Features
- Add go-order component
1.19.0 (2025-11-18)
Features
- update dummy component styles
1.18.0 (2025-11-18)
Features
- update dummy component styles
1.17.0 (2025-11-18)
Features
- new version
1.16.2 (2025-11-13)
Bug Fixes
- Log error instead of throwing
1.16.1 (2025-11-12)
Bug Fixes
- Do not throw error when evaluating expression
1.16.0 (2025-11-12)
Features
- getDetails
1.15.0 (2025-11-11)
Features
- add cart event dispatching for item addition/removal
1.14.0 (2025-11-11)
Features
- update belvedere staging shop domain
1.13.0 (2025-11-10)
Features
- add confirmation email and password validation for forms
- remove API required fields validation from FormDetails
- remove support for required API keys in forms
- shop.apiPost add validation utilities and integrate body validation in API methods
- update form validation logic and downgrade vitest version
Bug Fixes
- handle missing host connection in createGetDetails
1.12.0 (2025-11-10)
Features
- Add classButton property to go-submit
- Add classLabel and classInput properties to go-field component
1.11.0 (2025-11-04)
Features
- add
go-cart-emptycomponent for empty cart state handling - enhance cart item structure
1.10.0 (2025-11-04)
Features
- Add annual ticket personalization components
1.9.0 (2025-11-03)
Features
- rename ticket group component to ticket segment component
- rename ticket group components to segment components
1.8.6 (2025-10-28)
Bug Fixes
- merge customOptions to go.options
1.8.5 (2025-10-28)
Bug Fixes
- Add Cart counter to exports
1.8.4 (2025-10-23)
Bug Fixes
- Use locales data from gomus
1.8.3 (2025-10-21)
Bug Fixes
- go-if not working inside of go-checkout-form
1.8.2 (2025-10-17)
Bug Fixes
- Do not throw when api is not yet set
- field definition for custom form docs
- Typos
1.8.1 (2025-10-14)
Bug Fixes
- correct
apiKeymapping in form field definitions
1.8.0 (2025-10-14)
Features
- semantic release
1.7.0 (2025-10-14)
Features
- enhance form handling with updated field and error management
- improve form validation and error handling
- refactor form field management and add new form handling logic
- replace
idwithkeyin form fields for consistency - replace
nameattribute withkeyingo-fieldand enhance form handling - update form fields to use
go-fieldand deprecatego-input
Bug Fixes
- remove unnecessary fetch condition and update tests
1.6.0 (2025-10-13)
Features
- add
fieldsgetter toFormDetailscomponent - add
beforeSubmitcallback for forms - add
beforeSubmithook for guest checkout - add conditional logic for form fields in
IfInForm - add custom form documentation and update field serialization logic
- add dynamic conditional logic and documentation for
IfInForm - add support for guest checkout with salutation and validation
- fix spex
- remove
guestCheckoutand related utilities in favor of directshopAPI integration
1.5.0 (2025-10-07)
Features
- (Auth) add expiry handling to the auth
- (Auth) small change
- (Forms) add a formData to form details
Bug Fixes
- auth: ensure invalid auth JSON triggers sign out
- auth: small fix
- auth: small fix
1.4.0 (2025-10-07)
Features
- (Ticket Selection) add ticket-group-ids attribute and also filter by day
1.3.0 (2025-10-06)
Features
- auth: Auth Store and Middleware
- auth: implement AuthMiddleware for request authentication and response handling
1.2.0 (2025-09-30)
Features
- add standard input fields documentation for CheckoutForm
1.1.0 (2025-09-30)
Features
- login form
- login form
1.0.0 (2025-09-25)
Features
- cart, localStorage: Improve cart and localStorage synchronization logic
- cart, tickets: Add local storage handling and integrate cart button
- cart, tickets: Enhance cart attributes and improve local storage handling
- cart, tickets: Enhance cart structure and simplify ticket quantity handling
- cart, tickets: Improve cart and local storage synchronization
- cart, tickets: Refactor
Cartlogic, improve localStorage sync, and enhance tests - cart, tickets: Refactor add-to-cart logic and enhance associated tests
- cart, tickets: Refactor cart and ticket components for improved functionality
- cart, tickets: Refactor components, tests, and mocks for maintainability
- cart, tickets: Update layouts, enhance state handling, and improve UI consistency
- cart, tickets: Update layouts, enhance state handling, and improve UI consistency
- cart: Add CartHost, improve cart functionality, and update tests
- cart: Enhance cart handling with property tracking and sum utility
- Kitbook multilingual preview
- tickets, calendar: Refactor ticket selection and calendar components
- tickets, cart: Modularize and enhance ticket group functionality
- tickets, cart: Refactor ticket selection components and introduce documentation
- wrapInElement: Add utility function and tests for wrapping elements
Bug Fixes
- tickets, cart: Standardize filter usage and improve navigation logic
- Update navigation URLs and clean up snapshots
- Use gomusOrderToken instead of gomusOrderId
- use order token for apm also
Reverts
- Revert "Add back azin specs"
- Revert Azin commits
