Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

33.2 KB
Raw Blame

@spree/seller-dashboard

6.0.2

Patch Changes

  • #15022 8890e33 Thanks @damianlegawiec! - Removed dependencies the packages no longer use, so installs are smaller. @spree/dashboard no longer lists next-themes or its own copies of the packages @spree/dashboard-ui already brings. @spree/seller-dashboard drops @dnd-kit and lucide-react, and @spree/dashboard-ui drops the unused TipTap bubble and floating menu extensions. Nothing changes for host apps or plugins.
  • Updated dependencies [7416961]:

6.0.1

Patch Changes

  • #15015 29d95e3 Thanks @damianlegawiec! - Fixed the invitation link redirecting anyone already signed in to the dashboard instead of letting them accept. Someone signed in as the invited account now accepts with one click, and someone signed in as another account is asked to sign out first. The seller panel's acceptance page shares these screens: an existing account confirms its password instead of being asked to set a new one, and the seller invitation lookup now says whether the invitee has an account.

  • #15010 9f0550e Thanks @damianlegawiec! - Store setup moved from a Getting Started nav entry to a checklist card above the account menu in the admin dashboard. It shows overall progress and every step, marks the next one to take, and each step goes straight to where it is done: a settings page, or the address and storefront dialogs opened in place. The card can be minimized to its header, and stays that way until expanded again. Like the old entry, it disappears once setup is done or for staff who cannot change the store. The Getting Started page and the seller panel's onboarding page use the same step icons, now exported from @spree/dashboard-ui as StepIcon and StepProgressRing. AppShell gains a sidebarWidget prop for cards pinned above the account menu.

  • Updated dependencies [29d95e3, 30493b4, 21dc28f]:

6.0.0

Patch Changes

6.0.0-rc.7

Released with Spree 6.0.0.rc7, with no changes of its own. From this release the version matches the version of the Spree gems.

1.0.0-rc.7

Minor Changes

  • #14971 98a79ca Thanks @damianlegawiec! - Sellers can manage the downloadable files on their own digital products. The Seller SDK adds products.digitalAssets (list, get, create, update, delete), and the seller panel's product page shows the same Digital files card as the dashboard: upload, replace and delete files, and set per-file download limits. A file the marketplace delivers through its own provider is listed but cannot be replaced by the seller. The card now lives in @spree/dashboard-core as DigitalAssetsCard, and a panel enables it by registering digitalAssets on its API client; readOnly shows the files without any way to change them and accept narrows the file picker.

    Seller uploads are a marketplace decision: three store settings, edited on the dashboard's Marketplace settings page, say whether sellers may upload at all (off by default), which content types their files may have, and whether a file added to or replaced on an approved product sends it back to review. The seller /me response carries them under store, and the Admin SDK's Store type gains the three fields.

Patch Changes

  • #14947 aebf883 Thanks @mad-eel! - A delivery method's amount for the store's default currency is now saved with its other currencies, so leaving it blank means the method isn't offered in that currency, as the form says. Before, a blank default currency was saved as free. The admin dashboard and the seller panel share one per-currency amount editor, CurrencyAmountsField in @spree/dashboard-core, so sellers can price a method in every currency the marketplace sells in. Both forms ask for an amount in at least one currency.
  • Updated dependencies [98a79ca]:

1.0.0-rc.6

Minor Changes

  • #14940 44b1933 Thanks @damianlegawiec! - Added product page slots for plugins: product.form_main at the end of the main column, product.media.form_fields in the media editor, product.media.actions in the Media card, and product.variant.form_fields in the variant editor, with seller.product.* counterparts in the seller panel. product.form_sidebar now also renders on the new product page, and both column slots receive mode. Fields on a media or variant row register under the product.media and product.variant form keys and save with the product.

  • #14940 44b1933 Thanks @damianlegawiec! - Added <resource>.form_fields slots to the create and edit sheets for markets, stock locations, tax rates, tax categories, sales channels, policies, package types, product types, delivery zones, delivery methods, option types and customer groups. Fields a widget binds there save with the sheet. The seller panel's stock location and package type sheets use seller.stock_location.form_fields and seller.package_type.form_fields. HostFormSlot renders a slot that exposes a form which isn't wrapped in FormProvider.

Patch Changes

  • #14938 7c295c4 Thanks @damianlegawiec! - Moved the money, percentage, typed-amount, display-name and code-shape helpers and the list of currencies still in use into @spree/core, which the dashboard packages and the seller panel now depend on. @spree/dashboard-core still exports them under the same names.

    • A customer's average order value is now worked out exactly.
    • Calculator summaries show money with each currency's own number of decimals.
    • The bulk variant editor now reads 1,500 as fifteen hundred and 1,234.5 correctly when you type or paste a weight or dimension.
  • #14944 a0e5b66 Thanks @damianlegawiec! - Added every status, kind and other value list the Spree API returns to @spree/core, each as a list of its values (PRODUCT_STATUSES, MEDIA_TYPES, …) and a type (ProductStatus, MediaType, …) — open where extensions may add values, closed otherwise — plus subsetOf for picking the values an action accepts with each one checked at compile time. The SDKs re-export these types instead of each carrying its own copy, so their names and values are unchanged. The dashboards and the seller panel build their status filters and action checks from these lists, so a status added on the server shows up without a dashboard change. Value lists the SDKs used to spell out inline, such as a seller transfer's kind, now have names of their own; MediaType, CollectionRuleMatchPolicy and CollectionSortOrder in @spree/admin-sdk, and ClaimResolution in @spree/dashboard-ui, now come from the generated lists under the same names. A seller's tax_remittance and payouts_schedule_interval, a claim's resolution, a collection's sort_order, a shipping label's format, purchase order and stock transfer statuses, and tax and commission lines' taxability_reason are now typed with their lists instead of as plain strings.

  • Updated dependencies [1a86817, a0e5b66, 06fc8b0]:

1.0.0-rc.5

Minor Changes

  • #14906 6bcdb66 Thanks @damianlegawiec! - sellerClient is now exported, so seller panel customizations can call the Seller API from their own hooks.

Patch Changes

  • #14917 dd72579 Thanks @damianlegawiec! - Apps no longer choose the versions of @tanstack/react-table, @tanstack/react-hotkeys and @hookform/resolvers used inside the dashboard packages: they are now regular dependencies, so upgrading them in an app (for example to React Table 9) no longer breaks type checking or the dashboard itself. Table column definitions are available as DataGridColumn from @spree/dashboard-ui. The TipTap menu extensions are pinned to the same version as the rest of the editor.

    @spree/dashboard and @spree/seller-dashboard now list the libraries they share with the app (React, TanStack Router and Query, React Hook Form, i18next, react-i18next and the Spree dashboard packages) as peer dependencies, so the app's copy is the only one. Before, an app on a different version got a second copy, which crashes React or makes plugins disappear. Apps must list these packages as their own dependencies; the starter templates now include React Hook Form, i18next and react-i18next.

  • Updated dependencies [11b9a03]:

1.0.0-rc.4

Patch Changes

1.0.0-rc.3

Minor Changes

  • #14856 05d6372 Thanks @damianlegawiec! - The Admin and Seller APIs no longer return display_* money fields, so their types drop them; format the amount with its currency instead. The dashboard and seller panel format every amount in the admin's own language. formatMoney writes a currency's ISO 4217 decimals and takes { unitPrice: true } for up to four.

  • #14866 cbde8fe Thanks @damianlegawiec! - directUploads.create() is replaced by files.create() and files.upload(), which uploads a file and resolves to a signed_id in one call, either straight to storage or in the request itself. The signed_id expires after a day. Every parameter that takes one is now named signed_id or <slot>_signed_id (avatar_signed_id, logo_signed_id, attachment_signed_id, document_signed_id, file_signed_id, po_document_signed_id, …). In @spree/dashboard-core, useDirectUpload becomes useFileUpload({ visibility }), and signedIdParam builds the three-state write for an image or document field.

  • #14853 3001ebf Thanks @damianlegawiec! - Changed preferences to a typed contract. Every /…/types entry returns schema, the JSON Schema of the type's preferences, instead of preference_schema, and rows no longer repeat it; PreferenceField and DeliveryPreferenceField are replaced by PreferenceSchema. Each configurable family's settings are typed per type (PromotionRulePreferencesMap, TypedPromotionRule, …), and an extension adds its own by declaration merging. Store, channel, import and seller profile settings drop the preferred_ prefix (guest_checkout, timezone, delimiter), the store's decimal settings are strings, and delivery methods read and write calculator: { type, preferences }. Preference writes are validated, refused with invalid_preferences and a JSON pointer per failing value. paymentMethods.types() lists every provider with installed set on those the store already has.

Patch Changes

1.0.0-rc.2

Patch Changes

  • #14845 9a0a293 Thanks @damianlegawiec! - Fixed type checking in projects that install the dashboard or seller panel with pnpm. The generated route file imported the routes through the package's node_modules link, where TypeScript cannot find the dashboard's own dependencies, so tsc reported hundreds of "Cannot find module" errors. It now imports them from the installed location again. Under pnpm that location includes the package version, so an upgrade rewrites the import paths in routeTree.gen.ts.

  • Updated dependencies [dca32db, 9a0a293]:

1.0.0-rc.1

Minor Changes

  • #14784 a4baf49 Thanks @damianlegawiec! - Plugins can now add cards to more detail pages. The admin dashboard has new slots on the seller payout, catalog, price list, promotion, purchase order, stock transfer and webhook endpoint pages, and the catalog, price list and promotion pages now save extension fields bound with useHostForm() with the page's own Save button. The seller panel has new slots on its product, order, payout and profile pages, and its product page saves extension fields the same way, under the form key seller.product. The slots catalog lists every slot and the context it receives.

Patch Changes

  • #14776 9335e9f Thanks @mad-eel! - The New claim dialog now pre-fills each line's refund with what the customer paid for those items after discounts, instead of their list price, which the claim would refuse to refund on a discounted order. The amount follows the claimed quantity until the merchant types one of their own. Code that builds the dialog's lines itself passes discountedAmount (the line's discounted_amount) in place of price, which ClaimableLine no longer accepts.

  • #14776 9335e9f Thanks @mad-eel! - A received return that is owed nothing, such as a free gift sent back, now offers "Complete return" instead of "Refund". The dialog explains that no money goes back and closes the return without asking for an amount or a refund method.

  • #14799 c9d9a2f Thanks @mad-eel! - The refund dialog says how much tax the pre-filled amount gives back, and the claim dialog pre-fills each line with the tax the customer paid on top of the price. Shipping an exchange whose replacement costs more asks first, because the difference is added to the order as a balance due, and that fee is labelled "Exchange" on the order.

  • #14799 c9d9a2f Thanks @mad-eel! - Admin returns carry display_refunded_total. A refunded return's card in the dashboard and the seller panel now shows what was actually refunded instead of what the return was worth, and names both when less went back, for example "Refunded $25.00 of $30.26".

  • #14764 291238d Thanks @damianlegawiec! - Fixed the seller panel opening with an empty sidebar when a seller returned with a live session but no remembered seller, for example after the browser cleared site storage. The panel now loads the seller's permissions once it knows which seller is active.

  • #14747 a0151c1 Thanks @damianlegawiec! - Fixed the setup screen of a new project reloading while the merchant was filling it in. The generated route file now refers to installed packages by their stable location, and spree add generates it right after installing, so the first dev start has nothing to rewrite. Upgrades also no longer rewrite every line of that file, so its diff shows only the pages an upgrade added.

  • Updated dependencies [3b80c52, f52fc12, 9335e9f, 9335e9f, 4bd1741, 7fa7a64, c9d9a2f, 3a2a78b, 446d3cb, c9d9a2f, c9d9a2f, 291238d, 9335e9f, 95c27af, a0151c1, f52fc12, f52fc12, 53d9925]:

1.0.0-beta.8

Patch Changes

  • #14746 3ad9173 Thanks @damianlegawiec! - The setup screen no longer says an installation is already set up when it simply could not check. A rate-limited check shows "Too many attempts" and a failed one shows "Couldn't check setup", each with a retry button; "Setup is not available" now appears only when the server confirms setup is done. The setup status is also no longer re-checked every time the browser tab regains focus.

  • Updated dependencies []:

1.0.0-beta.7

Patch Changes

  • 928c1ba Thanks @damianlegawiec! - Fixed the dashboard failing to start in newly created projects.

    Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with SyntaxError: ... does not provide an export named 'useSyncExternalStore'. The store setup form had switched to deep imports into @spree/dashboard-ui and @spree/dashboard-core, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.

  • Updated dependencies [928c1ba]:

1.0.0-beta.6

Patch Changes

  • 0b50f65 Thanks @damianlegawiec! - Held Base UI at 1.5.0 so a scaffolded dashboard starts.

    @base-ui/react 1.6.0 moved to @base-ui/utils 0.3.x, which added a useStore helper importing useSyncExternalStore by name from the CommonJS use-sync-external-store shim. Vite converts CommonJS while prebundling an ordinary dependency, but @spree/dashboard-ui ships source: in the Spree monorepo it is a workspace link that Vite crawls as application source, while an installed copy lives in node_modules and is not crawled. That file then reaches the browser with the named CommonJS import intact and the dashboard fails with a SyntaxError before rendering.

    1.5.0 pins @base-ui/utils 0.2.9, which has no such file. The previous release pinned 1.8.0 — exact, but on the wrong side of the change — so this supersedes it.

  • 3bc3e01 Thanks @damianlegawiec! - Pinned every @spree/dashboard-ui dependency to an exact version.

    The package ships source rather than a bundle, so its dependencies are compiled into each consuming app by that app's own Vite. A floating range means a scaffolded project installs whatever those packages published most recently, not what Spree built and tested against — which is how a Base UI release that had never been tested here reached users and stopped the dashboard from starting.

    recharts moves to 3.10.1 as part of this: 3.8.1 pinned reselect 5.1.1, which published without the provenance its predecessors had, so the workspace's no-downgrade trust policy refuses it. 3.10.1 resolves reselect 5.2.0, which carries provenance again. react-redux is overridden to 9.3.0 for the same reason — 9.2.0 dropped the provenance 9.1.0 had, and recharts' own range accepts 9.3.0.

    Every other pin records the version already installed, so nothing else about the tree changes.

  • Updated dependencies [0b50f65, 3bc3e01]:

1.0.0-beta.5

Patch Changes

  • 35fb9e8 Thanks @damianlegawiec! - Pinned Base UI to an exact version so a scaffolded dashboard boots.

    @base-ui/react was caret-ranged, so every new project installed whatever Base UI had published most recently rather than the version Spree tested against. @base-ui/utils 0.3.0 added a useStore helper that imports useSyncExternalStore by name from the CommonJS use-sync-external-store shim. Vite converts that during prebundling for an ordinary dependency, but @spree/dashboard-ui ships source, so an installed copy reached the browser with the named CommonJS import intact and the dashboard failed to start with a SyntaxError.

    The monorepo's committed lockfile hid this — only fresh installs floated onto the newer Base UI. It is now pinned exactly, in the packages and as a workspace override, and the monorepo runs the same version a scaffold installs.

  • Updated dependencies [35fb9e8]:

1.0.0-beta.4

Patch Changes

1.0.0-beta.3

Patch Changes

  • #14667 53008b4 Thanks @damianlegawiec! - Re-export the framework and the design system, so an application has one import to remember.

    @spree/dashboard and @spree/seller-dashboard now expose everything from @spree/dashboard-core and @spree/dashboard-ui, and a host app writing its own pages no longer has to work out which package useStore, Button or defineTable lives in. Both packages stay importable directly, which is what a distributed plugin still does — it extends the shell rather than shipping it.

    A few names exist in both packages, where the design system ships a presentational component and the framework wraps it with data. export * drops such a name rather than picking one, so ResourceCombobox, ResourceMultiAutocomplete, Slot, StatusCard and DateRange resolved to the design system's version and the data-fetching one was unreachable through the shell. They are now re-exported explicitly, and a test fails when a new duplicate appears.

  • Updated dependencies []:

1.0.0-beta.2

Minor Changes

  • Removed the address map from the design system.

    The map was rendered on one card — a seller's billing and returns addresses — and could not plot anything, because Spree addresses carry no coordinates. It also cost every dashboard user around a megabyte of MapLibre in the main bundle.

    Its ?worker&url import made the package impossible to install, too: Vite's dependency optimizer cannot resolve that specifier inside node_modules, so any project depending on @spree/dashboard-ui failed to start its dev server. Projects on the previous release should upgrade.

Patch Changes

1.0.0-beta.1

Patch Changes