@spree/seller-dashboard 6.0.2 → 6.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spree/seller-dashboard",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Spree marketplace seller panel — the seller-facing counterpart to the admin dashboard.",
@@ -40,8 +40,8 @@
40
40
  "@tanstack/router-plugin": "^1.168.47",
41
41
  "@tanstack/virtual-file-routes": "^1.162.0",
42
42
  "zod": "^4.6.7",
43
- "@spree/seller-sdk": "6.0.2",
44
- "@spree/core": "^6.0.2"
43
+ "@spree/core": "^6.0.3",
44
+ "@spree/seller-sdk": "6.0.3"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@tanstack/react-query": "^5.104.5",
@@ -51,9 +51,9 @@
51
51
  "react-dom": "^19.3.1",
52
52
  "react-hook-form": "^7.90.0",
53
53
  "react-i18next": "^17.1.0",
54
- "@spree/admin-sdk": "^6.0.2",
55
- "@spree/dashboard-ui": "^6.0.2",
56
- "@spree/dashboard-core": "^6.0.2"
54
+ "@spree/dashboard-core": "^6.0.3",
55
+ "@spree/dashboard-ui": "^6.0.3",
56
+ "@spree/admin-sdk": "^6.0.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "^2.4.14",
@@ -71,9 +71,9 @@
71
71
  "tsup": "^9.0.0",
72
72
  "typescript": "~7.0.2",
73
73
  "vite": "^8.3.4",
74
- "@spree/dashboard-core": "6.0.2",
75
- "@spree/dashboard-ui": "6.0.2",
76
- "@spree/admin-sdk": "6.0.2"
74
+ "@spree/dashboard-core": "6.0.3",
75
+ "@spree/admin-sdk": "6.0.3",
76
+ "@spree/dashboard-ui": "6.0.3"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "pnpm generate:routes && tsup",
@@ -667,7 +667,8 @@
667
667
  "columns": {
668
668
  "name": "المنتج",
669
669
  "price": "السعر",
670
- "status": "الحالة"
670
+ "status": "الحالة",
671
+ "inventory": "جرد"
671
672
  },
672
673
  "custom_fields": "تفاصيل المنتج",
673
674
  "details": "التفاصيل",
@@ -655,7 +655,8 @@
655
655
  "columns": {
656
656
  "name": "Produkt",
657
657
  "price": "Preis",
658
- "status": "Status"
658
+ "status": "Status",
659
+ "inventory": "Bestand"
659
660
  },
660
661
  "custom_fields": "Produktangaben",
661
662
  "details": "Details",
@@ -655,7 +655,8 @@
655
655
  "columns": {
656
656
  "name": "Product",
657
657
  "price": "Price",
658
- "status": "Status"
658
+ "status": "Status",
659
+ "inventory": "Inventory"
659
660
  },
660
661
  "custom_fields": "Product details",
661
662
  "details": "Details",
@@ -655,7 +655,8 @@
655
655
  "columns": {
656
656
  "name": "Produit",
657
657
  "price": "Prix",
658
- "status": "Statut"
658
+ "status": "Statut",
659
+ "inventory": "Stock"
659
660
  },
660
661
  "custom_fields": "Détails du produit",
661
662
  "details": "Détails",
@@ -655,7 +655,8 @@
655
655
  "columns": {
656
656
  "name": "商品",
657
657
  "price": "価格",
658
- "status": "状態"
658
+ "status": "状態",
659
+ "inventory": "在庫"
659
660
  },
660
661
  "custom_fields": "商品の詳細",
661
662
  "details": "詳細",
@@ -661,7 +661,8 @@
661
661
  "columns": {
662
662
  "name": "Produkt",
663
663
  "price": "Cena",
664
- "status": "Status"
664
+ "status": "Status",
665
+ "inventory": "Stan magazynowy"
665
666
  },
666
667
  "custom_fields": "Szczegóły produktu",
667
668
  "details": "Szczegóły",
@@ -655,7 +655,8 @@
655
655
  "columns": {
656
656
  "name": "Sản phẩm",
657
657
  "price": "Giá",
658
- "status": "Trạng thái"
658
+ "status": "Trạng thái",
659
+ "inventory": "Hàng tồn kho"
659
660
  },
660
661
  "custom_fields": "Chi tiết sản phẩm",
661
662
  "details": "Chi tiết",
@@ -652,7 +652,8 @@
652
652
  "columns": {
653
653
  "name": "商品",
654
654
  "price": "价格",
655
- "status": "状态"
655
+ "status": "状态",
656
+ "inventory": "库存"
656
657
  },
657
658
  "custom_fields": "商品详情",
658
659
  "details": "详情",
@@ -1,5 +1,5 @@
1
1
  import { PRODUCT_STATUSES } from '@spree/core'
2
- import { defineTable, formatPrice } from '@spree/dashboard-core'
2
+ import { defineTable, formatPrice, ProductStockSummary } from '@spree/dashboard-core'
3
3
  import { ResourceNameCell, StatusBadge, Thumbnail } from '@spree/dashboard-ui'
4
4
  import { PackageIcon } from '@spree/dashboard-ui/icons'
5
5
  import type { Product } from '@spree/seller-sdk'
@@ -44,6 +44,12 @@ defineTable<Product>('seller-products', {
44
44
  />
45
45
  ),
46
46
  },
47
+ {
48
+ key: 'inventory',
49
+ label: i18n.t('products.columns.inventory'),
50
+ default: true,
51
+ render: (product) => <ProductStockSummary product={product} />,
52
+ },
47
53
  {
48
54
  key: 'price',
49
55
  label: i18n.t('products.columns.price'),