This week, the Livewire ecommerce packages finished moving onto the design system that shipped last week. The admin, storefront and kanban board are all rebuilt on Livewire UI Components 3.0, and the ecommerce engine got a release that adds new storefront features. React got a minor release, and Vue work landed ahead of its next release.
This week brought six releases:
- Ecommerce Admin Livewire 2.0.0, Ecommerce Storefront Livewire 2.0.0 and Ecommerce Kanban (Livewire) 2.0.0, all rebuilt on Livewire UI Components 3.0
- Ecommerce 1.4.0, the engine release behind the storefront's new features
@artisanpack-ui/react2.1.0 and@artisanpack-ui/react-laravel2.1.0
All three ecommerce UI releases are major releases with breaking changes. If you use any of them, read the next section before you update.
Before you upgrade
These changes apply to all three ecommerce UI 2.0 releases:
- daisyUI is gone. Colors and styles now come from the design system.
- New front-end requirements. The packages need
artisanpack-ui/livewire-ui-components^3.0(it was^2.1), plus@artisanpack-ui/css^1and@artisanpack-ui/behavior^1in your front-end build. You also need to register the behavior engine and add@apuiThemeScriptto your layout. - Views published from 1.x must be published again. Their markup and classes no longer match. For the kanban board, delete
resources/views/vendor/ecommerce-kanbanand publish again only if you still need overrides. - Custom layouts need
<x-artisanpack-toaster />. In Livewire UI Components 3.0,toastrenders a single static toast. On the kanban board, a layout that keeps<x-artisanpack-toast />shows no board toasts at all. - Version pairing. If Ecommerce Admin Livewire is installed, Kanban 2.0 needs admin 2.0 or later. The storefront still runs on engine
^1.1, but its new features need Ecommerce 1.4.
Each package has an upgrade guide in its docs.
Ecommerce Admin Livewire v2.0.0
Ecommerce Admin Livewire 2.0.0 rebuilds every admin screen on the design system through livewire-ui-components 3.0. It drops daisyUI, ApexCharts and flatpickr, and the template editor no longer loads Ace from a CDN. Screens, abilities, routes and config keys stay the same unless noted below. The admin also needs @artisanpack-ui/livewire-drag-and-drop ^2.
Breaking changes
- The admin palette route returns groups (
[ { id, label, items } ]) instead of a flat list, andAdminSpotlight::icon()returns an icon name instead of SVG. - Toasts are a
toastbrowser event shown by<x-artisanpack-toaster>instead ofwindow.toast(). - Colors for status badges, timelines and navigation come from the design system, and their icons are names from the icon registry.
- Multi-word table and report filter names are now camelCase, such as
ap.ecommerceAdminLivewire.table.licenseKeys.columns. The kebab-case names still run after the camelCase ones and are deprecated until 3.0. - Several methods changed:
Webhooks::statusClass()is replaced bystatusColor().ReportPresenter::chartOptions()andPromotions\Index::usesLabel()are removed.Orders\RefundsPanel::refund()takes the confirmed total.Orders\FulfillmentPanel::$labelProvideris now$labelProviderFor, keyed by shipment.Notes::deleteNote()takes no argument.
New
- Brazilian Portuguese, Japanese, Simplified Chinese, Italian and Arabic translations. The catalogues load in
register(), so they're available while other packages boot. - Send missed deliveries on a webhook subscription, for deliveries that were held back while the subscription was off.
- "Open board" links on the order detail page, plus deep links to a webhook's edit drawer and to a kanban automation.
- The order totals card lists each tax rate from the engine's
meta.tax_breakdown. - New extension points, including
SpotlightProvider::label(),NavBadges::tone(), theec-admin-*Blade component names and new table column options. - A PHP API reference covering every public registry, Livewire concern, extension contract and support class.
Changed
- Rate limiting: the
ecommerce.admin.mutatelimiter counts every mutating call and changed component in a Livewire request, so batching calls no longer gets around it. Real-time refreshes and lazy loads don't count. - Middleware: groups in
admin.middlewareare expanded, so 2FA andverifiedchecks inside a group also run on Livewire updates. - Catalog import: prices must be plain dot decimals, and files that aren't UTF-8, such as Excel's Windows-1252 CSVs, are converted. If an import's worker dies, the import is marked failed after about an hour so you can resume or discard it.
Ecommerce Storefront Livewire v2.0.0
Ecommerce Storefront Livewire 2.0.0 rebuilds every screen, block and x-artisanpack-ec-* component on the design system. It supports light and dark themes and right-to-left layouts. Routes, Livewire component names, config keys and hooks stay the same unless listed in the upgrade guide.
New package layout
The storefront now ships its own layout:
- A store navigation with "Shop all" and the top-level categories
- A footer with link columns
- A menu drawer on phones
- A slim secure header on the checkout page
You can change the links with the ap.ecommerceStorefrontLivewire.layout.navigation and ap.ecommerceStorefrontLivewire.layout.footerLinks filters.
Features that need Ecommerce 1.4
- Rich product options: swatches, option metadata, conditional fields (
visible_when) and live price quotes on the options form. - "Notify me": when a product is sold out, shoppers see a back-in-stock signup instead of the sold-out notice. Turn it off with the
ap.ecommerceStorefrontLivewire.product.backInStockEnabledfilter. - Line summaries: cart, checkout and order lines describe the chosen options, for example "Frame: Black oak · Size: 16 × 20".
Other additions
- Storefront toasts go through the component library's toaster, rendered by the new
<x-artisanpack-ec-toaster>.SendsToastshelpers take an optional$optionsargument for the variant, an icon and one action. - The account navigation has a "Sign out" link. It posts to the new
auth.logout_routeconfig key and is hidden when that route doesn't exist. - New config keys, including
storefront.tagline,cart.free_shipping_thresholdandsearch.keyboard_shortcut, which turns off the header search's "/" shortcut. - New extension points for the add-to-cart row, product highlights, the sold-out notice, payment method cards and the store navigation.
- Brazilian Portuguese, Japanese, Simplified Chinese, Italian and Arabic catalogues. They're machine-translated and awaiting review by native speakers.
Changes
- If an attribute has more than 8 values (set by
product.variation_select_after), the variation picker shows a select instead of swatches. - A successful guest order claim stays on the page, with a success message and a "View orders" link.
- The multi-step checkout shows upcoming steps in a muted style.
- Colors come from the design system's
--apui-*tokens. - The fourth argument of
ToastPayload::make()is now an options array instead of a CSS class string.
Before this release, ecommerce-storefront:install printed only the storefront's two @source lines. A host that followed those instructions got an unstyled storefront with broken drawers, dialogs and toasts. The command now prints the full front-end setup.
Ecommerce Kanban (Livewire) v2.0.0
Ecommerce Kanban (Livewire) 2.0.0 moves the board onto the design system. daisyUI is gone, and Tailwind CSS is now optional. Every view is rebuilt from the v2 designs, and the board's styles use ec-kb-* classes on the design tokens, so the board renders with the design system alone. To set up the front end, run php artisan livewire-ui-components:install --assets=bundler. php artisan ecommerce-kanban:install prints every setup line.
Breaking changes
- Toasts are plain text, so the automation-failure toast no longer includes an "Open order" link.
WidgetViews::TONESentries no longer have aclasskey, andWidgetViews::tone()returns{ color, icon, text }only.- By default,
cardClassesare no longer Tailwind or daisyUI color utilities. Return your own class names and style them with the design tokens. - Choice controls read the 3.0 option shape (
value,labelanddescription). The 2.x keys still work, and the 3.0 keys take priority.
The board also ships five new languages (pt_BR, ja, zh_CN, it and ar), and its standalone layout supports right-to-left. The engine contract hasn't changed, so 2.0 still runs on Ecommerce 1.2 or later.
Ecommerce v1.4.0
Ecommerce 1.4.0 is the engine release behind the storefront's new features.
- Line option descriptions: product types can describe a cart line's options in words through
Contracts\DescribesLineOptionsandSupport\LineOptionDescriber. The REST and GraphQL cart and order items expose the descriptions asoption_lines. Orders keep a copy of them, and the order confirmation, shipped and refunded emails list them under each line. - Richer add-to-cart schema: options can carry
price_delta,image,swatch,hintanddisabled. There's also aswatchfield type and conditional fields throughvisible_when.Support\StorefrontOptionSchemadrops malformed fields and logs a warning. - Price quotes:
Services\PriceQuoteService::quote()returns a list price for a product and its options with no side effects. It's available overPOST products/{product}/quoteand the GraphQLproductQuotequery. - Back-in-stock subscriptions: shoppers can subscribe to a sold-out product and get a notification when available stock rises from zero. Subscriptions are deleted when a customer is erased and are included in
artisanpack-ui/privacyexports.
Stranded payments fix
Sometimes the payment provider confirms a payment that no order can take. This happens when the cart's total changes after its payment session was created, or when a newer session replaces the old one. Before this release, that payment was left with no order, no refund and no record.
Now the engine records every payment session a cart gets, and the checkout.stranded_payments setting (env ECOMMERCE_STRANDED_PAYMENTS) decides what happens:
hold, the default, places the order for staff review and records both amounts.refundrefunds a captured payment or voids an authorized one through the gateway. If the gateway can't send a refund, the payment is held instead.
Staff can accept or reject a held payment.
React 2.1.0
@artisanpack-ui/react 2.1.0 makes the components' built-in text translatable:
- Wrap your app in the new
TranslationProviderwith a locale and a catalogue. Every built-in accessible name, placeholder, empty state and message then renders in that language.useTranslator()is also available. - Without a provider, the components stay in English. Props such as
closeLabelstill override the catalogue. - Catalogues ship for en, es, fr, de, pt_BR, ja, zh_CN, it and ar. To override entries, spread a catalogue and add your own:
messages=. The non-English catalogues are machine-translated first passes awaiting review by fluent speakers. DatePickerandCalendarformat dates in the provider's locale unless you give them their ownlocale.TabletakesrowLabel(row)to name each row in the select and expand labels, such as "Select order #1048".- Fixes:
Breadcrumbsnow says "Show 1 more level" instead of "Show 1 more levels".- The AI
SettingsPagecan now name the API key reveal button through a newapiKeyRevealkey in itslabelsprop.
@artisanpack-ui/react-laravel 2.1.0 adds the LaravelSimplePaginator, LaravelCursorPaginator and LaravelResourcePaginator types for simple, cursor and resource-collection pagination. InertiaPagination also accepts paginated API resource collections, and its preserveQuery option keeps the current search, filter and sort parameters when changing page.
These changes fill the gaps the upcoming ecommerce React ports need.
In development
Vue
Vue isn't released yet, but it caught up with React this week:
- Built-in text translated into nine locales, using the same design as React, through
provideTranslations(),<TranslationProvider>anduseTranslator() - Inertia 3 support, plus Table and paginator APIs that match React's
- The
SettingsPagereveal button fix
Design System
These changes haven't been released yet:
- The drag-and-drop engine moves into
@artisanpack-ui/behavior, with React and Vue adapters, so Livewire, React and Vue all drag, reorder and announce moves the same way. - AppShell keeps wide content inside its grid. Before this change, a wide code block could stretch the page past the screen. Now the code block scrolls on its own.
Hooks - JS
A new Vue adapter at @artisanpack-ui/hooks-js/vue has the same API as the React adapter. It's for the ecommerce Vue packages' client-side extension points.
Docs
The React, Vue, kanban and storefront docs moved to the org documentation standard. Every package's docs now share one layout and standard page names.
