@yassirbenmoussa/aicommerce-sdk 1.9.3 → 1.9.10

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/dist/index.d.mts CHANGED
@@ -204,6 +204,12 @@ interface WidgetConfig {
204
204
  onProductClick?: (product: Product) => void;
205
205
  /** Callback when add to cart button is clicked */
206
206
  onAddToCart?: (product: Product) => void | Promise<void>;
207
+ /** Whether to show the Add to Cart button (default: true) */
208
+ showAddToCart?: boolean;
209
+ /** Callback when buy now button is clicked */
210
+ onBuyNow?: (product: Product) => void | Promise<void>;
211
+ /** Whether to show the Buy Now button (default: true) */
212
+ showBuyNow?: boolean;
207
213
  /** Callback when a message is sent */
208
214
  onMessage?: (message: string, response: ChatResponse) => void;
209
215
  }
package/dist/index.d.ts CHANGED
@@ -204,6 +204,12 @@ interface WidgetConfig {
204
204
  onProductClick?: (product: Product) => void;
205
205
  /** Callback when add to cart button is clicked */
206
206
  onAddToCart?: (product: Product) => void | Promise<void>;
207
+ /** Whether to show the Add to Cart button (default: true) */
208
+ showAddToCart?: boolean;
209
+ /** Callback when buy now button is clicked */
210
+ onBuyNow?: (product: Product) => void | Promise<void>;
211
+ /** Whether to show the Buy Now button (default: true) */
212
+ showBuyNow?: boolean;
207
213
  /** Callback when a message is sent */
208
214
  onMessage?: (message: string, response: ChatResponse) => void;
209
215
  }