For the complete documentation index, see llms.txt. This page is also available as Markdown.

Store and Employee

This page documents the carpose-store-*, carpose-employee-* and carpose-ui-* events dispatched by the Carposé application.

All events below are dispatched in the v2 envelope on document.body.

Store

Every store event carries the same base payload shape: { id, name }.

Note: carpose-store-select is dispatched only from the store map marker (Store/Map.tsx). The plain store list (Store/List.tsx) has no click handler on its rows, so browsing a list of stores does not by itself emit a select event — only interacting with a map marker does.

Store Select Event

Dispatched when a user selects a store marker on the store map.

Event Name: carpose-store-select

Event Data:

{
  message: "Store select",
  type: "store",
  action: "select",
  component: "store-map",
  version: 2,
  data: {
    id: "store-42",
    name: "Autohaus Musterstadt"
  }
}

How to Listen:

Store Contact Phone Event

Dispatched when a user clicks a tel: contact link for a store.

Event Name: carpose-store-contact-phone

Event Data:

How to Listen:

Store Contact Mail Event

Dispatched when a user clicks a mailto: contact link for a store.

Event Name: carpose-store-contact-mail

Event Data:

How to Listen:

Employee

Note: there is no carpose-employee-select. Employee cards are static — only their tel: and mailto: links are interactive, so those are the only employee events that exist.

Employee Contact Phone Event

Dispatched when a user clicks a tel: contact link for an employee.

Event Name: carpose-employee-contact-phone

Event Data:

How to Listen:

Employee Contact Mail Event

Dispatched when a user clicks a mailto: contact link for an employee.

Event Name: carpose-employee-contact-mail

Event Data:

How to Listen:

UI

Floating Button Click Event

Dispatched when a user clicks a configured floating link button (a generic, non-vehicle/offer/store/employee floating action).

Event Name: carpose-ui-floating-button-click

Event Data:

How to Listen:

Last updated