v5.1.0
artu-widget
Adds embeddable cart/catalog widget as a separate bundle (cart.min.js) for displaying product menus from WhatsApp-linked ordering flows.
Patch notes
- New cart widget bundle (cart.min.js, 49KB / 16KB gzip) — independent from chat, shares auth infrastructure.
- Product catalog displayed as a card grid grouped by category with scrollable pill tabs.
- Zustand-powered cart with localStorage persistence across sessions.
- Two modes: fullscreen (for WhatsApp deep links) and embedded (data-mode="cart-embedded" with data-target selector).
- Bottom drawer with editable item list, quantities, notes field, and total.
- Shadow DOM isolation, theming via --wc-* CSS variables, i18n (es/en).
- Public API: window.WebcartWidget with setTheme(), setLocale(), destroy().
- CDN build now includes cart.min.js alongside widget.min.js with live example pages.
Bundle
Download .min.js<script
src="../artu-widget-5.1.0.min.js"
data-app-id="app_xxx"
data-publishable-key="webchat_pk_xxx"
></script>