@constructor-io/constructorio-ui-pia 2.9.0 → 2.10.1

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
@@ -105,6 +105,7 @@ The component supports multiple display modes via the `displayConfigs` prop:
105
105
  |--------|------|-------------|
106
106
  | `onQuestionSubmit` | `(question: string) => void` | Called when a question is submitted (via Enter key, Send button, or suggested question click) |
107
107
  | `onProductCardClick` | `(item: Item) => void` | Called when a product card in the carousel is clicked |
108
+ | `onAddToCart` | `(item: Item, event: React.MouseEvent) => void` | Called when the "Add to Cart" button on a product card is clicked. Passing this callback is what renders the button; without it no cart control is shown |
108
109
  | `onFeedback` | `(type: 'up' \| 'down') => void` | Called when the user submits positive or negative feedback on an answer |
109
110
 
110
111
  ### Using the JavaScript Bundle