@mercurjs/admin 2.2.1-canary.1 → 2.2.1-canary.2

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.
@@ -58,7 +58,8 @@ var OfferActions = ({ product }) => {
58
58
  const confirmed = await prompt({
59
59
  title: t("general.areYouSure"),
60
60
  description: t("offers.bulkDelete.description", {
61
- count: product.offerIds.length
61
+ count: product.offerIds.length,
62
+ storeName: product.storeName ?? t("offers.fields.store")
62
63
  }),
63
64
  confirmText: t("actions.delete"),
64
65
  cancelText: t("actions.cancel"),
@@ -203,8 +204,9 @@ var useOfferTableColumns = (options) => {
203
204
  {
204
205
  product: {
205
206
  id: row.original.product_id,
206
- offerIds: [row.original.id],
207
- sellerId: hideStoreAction ? null : row.original.seller_id ?? null
207
+ offerIds: row.original.offer_ids?.length ? row.original.offer_ids : [row.original.id],
208
+ sellerId: hideStoreAction ? null : row.original.seller_id ?? null,
209
+ storeName: row.original.seller?.name ?? null
208
210
  }
209
211
  }
210
212
  )
@@ -236,7 +238,8 @@ var useOfferTableCommands = (options) => {
236
238
  const confirmed = await prompt({
237
239
  title: t("general.areYouSure"),
238
240
  description: t("offers.bulkDelete.description", {
239
- count: offerIds.length
241
+ count: offerIds.length,
242
+ storeName: t("offers.fields.store")
240
243
  }),
241
244
  confirmText: t("actions.delete"),
242
245
  cancelText: t("actions.cancel"),
@@ -397,6 +400,7 @@ var OFFER_LIST_FIELDS = [
397
400
  "variant_id",
398
401
  "sku",
399
402
  "variant_count",
403
+ "offer_ids",
400
404
  "created_at",
401
405
  "updated_at",
402
406
  "product.id",
@@ -9,7 +9,7 @@ import {
9
9
  useOfferTableCommands,
10
10
  useOfferTableFilters,
11
11
  useOfferTableQuery
12
- } from "./chunk-4JNQHJKX.js";
12
+ } from "./chunk-ML74OTDD.js";
13
13
  import {
14
14
  useOrderTableFilters
15
15
  } from "./chunk-QMEFPNCA.js";
package/dist/index.js CHANGED
@@ -4108,7 +4108,7 @@ function getRouteMap({
4108
4108
  {
4109
4109
  path: ":id",
4110
4110
  lazy: async () => {
4111
- const { Breadcrumb } = await import("./store-details-KDCMXPK2.js");
4111
+ const { Breadcrumb } = await import("./store-details-LNL3UDNL.js");
4112
4112
  return {
4113
4113
  Component: Outlet4,
4114
4114
  handle: {
@@ -4119,7 +4119,7 @@ function getRouteMap({
4119
4119
  children: [
4120
4120
  {
4121
4121
  path: "",
4122
- lazy: () => import("./store-details-KDCMXPK2.js"),
4122
+ lazy: () => import("./store-details-LNL3UDNL.js"),
4123
4123
  children: [
4124
4124
  {
4125
4125
  path: "edit",
@@ -4241,7 +4241,7 @@ function getRouteMap({
4241
4241
  {
4242
4242
  path: "",
4243
4243
  lazy: async () => {
4244
- const { OfferListPage } = await import("./offers-NKMURHLM.js");
4244
+ const { OfferListPage } = await import("./offers-NHVC5MYX.js");
4245
4245
  return { Component: OfferListPage };
4246
4246
  }
4247
4247
  },
@@ -4262,7 +4262,7 @@ function getRouteMap({
4262
4262
  {
4263
4263
  path: "",
4264
4264
  lazy: async () => {
4265
- const { OfferDetailPage } = await import("./offer-detail-page-GHSCR452.js");
4265
+ const { OfferDetailPage } = await import("./offer-detail-page-VB6U7H5I.js");
4266
4266
  return { Component: OfferDetailPage };
4267
4267
  }
4268
4268
  },
@@ -108,7 +108,10 @@ var OfferDetailGeneralSection = ({
108
108
  }
109
109
  const confirmed = await prompt({
110
110
  title: t("general.areYouSure"),
111
- description: t("offers.bulkDelete.description", { count: offerIds.length }),
111
+ description: t("offers.bulkDelete.description", {
112
+ count: offerIds.length,
113
+ storeName: t("offers.fields.store")
114
+ }),
112
115
  confirmText: t("actions.delete"),
113
116
  cancelText: t("actions.cancel"),
114
117
  variant: "danger"
@@ -6,7 +6,7 @@ import {
6
6
  useOfferTableCommands,
7
7
  useOfferTableFilters,
8
8
  useOfferTableQuery
9
- } from "./chunk-4JNQHJKX.js";
9
+ } from "./chunk-ML74OTDD.js";
10
10
  import {
11
11
  useOffers
12
12
  } from "./chunk-UBME2ENV.js";
@@ -128,10 +128,10 @@ import {
128
128
  import "../chunk-APAT344J.js";
129
129
  import {
130
130
  StoreDetailPage
131
- } from "../chunk-TF74ITJS.js";
131
+ } from "../chunk-NXRR4HEQ.js";
132
132
  import "../chunk-DBYUB2YI.js";
133
133
  import "../chunk-U2EI2ZLM.js";
134
- import "../chunk-4JNQHJKX.js";
134
+ import "../chunk-ML74OTDD.js";
135
135
  import {
136
136
  PayoutListPage
137
137
  } from "../chunk-IPC6RQQ7.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  StoreDetailPage,
3
3
  storeDetailLoader
4
- } from "./chunk-TF74ITJS.js";
4
+ } from "./chunk-NXRR4HEQ.js";
5
5
  import "./chunk-DBYUB2YI.js";
6
6
  import "./chunk-U2EI2ZLM.js";
7
- import "./chunk-4JNQHJKX.js";
7
+ import "./chunk-ML74OTDD.js";
8
8
  import "./chunk-QMEFPNCA.js";
9
9
  import "./chunk-NOWUEJ74.js";
10
10
  import "./chunk-UBME2ENV.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.2.1-canary.1",
3
+ "version": "2.2.1-canary.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -34,8 +34,8 @@
34
34
  "lint": "oxlint --max-warnings 0"
35
35
  },
36
36
  "dependencies": {
37
- "@mercurjs/dashboard-shared": "2.2.1-canary.1",
38
- "@mercurjs/client": "2.2.1-canary.1",
37
+ "@mercurjs/dashboard-shared": "2.2.1-canary.2",
38
+ "@mercurjs/client": "2.2.1-canary.2",
39
39
  "@ariakit/react": "^0.4.15",
40
40
  "@babel/runtime": "^8.0.0",
41
41
  "@dnd-kit/core": "^6.1.0",
@@ -88,8 +88,8 @@
88
88
  "tsup": "^8.0.2",
89
89
  "typescript": "5.9.3",
90
90
  "@medusajs/types": "2.17.2",
91
- "@mercurjs/core": "2.2.1-canary.1",
92
- "@mercurjs/dashboard-sdk": "2.2.1-canary.1",
93
- "@mercurjs/types": "2.2.1-canary.1"
91
+ "@mercurjs/core": "2.2.1-canary.2",
92
+ "@mercurjs/dashboard-sdk": "2.2.1-canary.2",
93
+ "@mercurjs/types": "2.2.1-canary.2"
94
94
  }
95
95
  }