@mercurjs/admin 2.3.9-canary.3 → 2.3.9-canary.4

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.
Files changed (35) hide show
  1. package/dist/{category-detail-NCT667Q5.js → category-detail-3O5R5ERZ.js} +1 -1
  2. package/dist/{chunk-PC2KYGGZ.js → chunk-2WC2HCAF.js} +18 -5
  3. package/dist/{chunk-BTHHPKCS.js → chunk-4PX63HUF.js} +31 -7
  4. package/dist/{chunk-7OFD2K5S.js → chunk-5GPXMPGI.js} +15 -3
  5. package/dist/{chunk-AUNBNATP.js → chunk-7V3JWYEO.js} +16 -2
  6. package/dist/{chunk-A6JWUPH5.js → chunk-BCGTBSGP.js} +2 -2
  7. package/dist/{chunk-H4ZFKIVQ.js → chunk-FGSYS2KD.js} +2 -2
  8. package/dist/{chunk-VI7SQHZW.js → chunk-LH4AV4VB.js} +40 -11
  9. package/dist/{chunk-EEVKZMQQ.js → chunk-NEUJTY2R.js} +22 -6
  10. package/dist/{chunk-YJBT2HTY.js → chunk-TWHVBX3P.js} +1 -1
  11. package/dist/{chunk-NHLKAUGR.js → chunk-UKVEQ24N.js} +446 -199
  12. package/dist/{chunk-DKRNK7LD.js → chunk-WAYBZLBI.js} +2 -2
  13. package/dist/{chunk-SNRPCOU4.js → chunk-ZASF7XBG.js} +57 -1
  14. package/dist/{chunk-XZ4GKMFM.js → chunk-ZEXGMG5L.js} +1 -1
  15. package/dist/{collection-detail-C2VHK6JM.js → collection-detail-SREJ5XM6.js} +1 -1
  16. package/dist/extension-targets.d.ts +45 -0
  17. package/dist/index.js +21 -21
  18. package/dist/{inventory-detail-4O53UJDE.js → inventory-detail-VUGZZMVT.js} +1 -1
  19. package/dist/{inventory-stock-3SDSWZ45.js → inventory-stock-FRETNM2W.js} +1 -1
  20. package/dist/{location-service-zone-shipping-option-create-PDEJJ6E3.js → location-service-zone-shipping-option-create-VZVSNB3W.js} +3 -3
  21. package/dist/{location-service-zone-shipping-option-pricing-JZAQVSGB.js → location-service-zone-shipping-option-pricing-CTDN4AEZ.js} +2 -2
  22. package/dist/{offer-detail-page-4U4PPA7Q.js → offer-detail-page-SFMQXRGK.js} +16 -3
  23. package/dist/{offer-variant-detail-page-4ZDMBL4R.js → offer-variant-detail-page-MG6QWFMT.js} +1 -1
  24. package/dist/pages/index.d.ts +10 -0
  25. package/dist/pages/index.js +12 -12
  26. package/dist/{price-list-create-R2JDXJRG.js → price-list-create-K4NOZFAS.js} +3 -3
  27. package/dist/{price-list-prices-add-Q7UR2HAT.js → price-list-prices-add-63TWHUTG.js} +3 -3
  28. package/dist/{price-list-prices-edit-Q7VBH25K.js → price-list-prices-edit-SP67DNIG.js} +2 -2
  29. package/dist/{product-bulk-edit-UA4PM7Q5.js → product-bulk-edit-B4IJNNYK.js} +1 -1
  30. package/dist/{product-create-7OOB5EJF.js → product-create-75ITVW4M.js} +3 -3
  31. package/dist/{product-detail-YOLJY6UR.js → product-detail-D4C4BPM3.js} +1 -1
  32. package/dist/{product-media-AE3YKMZI.js → product-media-EN27BB3X.js} +1 -1
  33. package/dist/{store-bulk-edit-5G5STIL2.js → store-bulk-edit-OGATAAML.js} +1 -1
  34. package/dist/{store-edit-FXGGXEPH.js → store-edit-YXUNYHEB.js} +1 -1
  35. package/package.json +6 -6
@@ -3,7 +3,7 @@ import {
3
3
  buildOfferGridData,
4
4
  usePriceListCurrencyData,
5
5
  usePriceListGridColumns
6
- } from "./chunk-YJBT2HTY.js";
6
+ } from "./chunk-TWHVBX3P.js";
7
7
  import {
8
8
  useOfferTableColumns,
9
9
  useOfferTableFilters,
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-FREUYHMS.js";
23
23
  import {
24
24
  DataGrid
25
- } from "./chunk-SNRPCOU4.js";
25
+ } from "./chunk-ZASF7XBG.js";
26
26
  import {
27
27
  RouteFocusModal,
28
28
  useRouteModal
@@ -4200,6 +4200,61 @@ var createDataGridPriceColumns = ({
4200
4200
  ];
4201
4201
  };
4202
4202
 
4203
+ // src/components/data-grid/helpers/create-data-grid-extension-column.tsx
4204
+ import {
4205
+ resolveFormFieldType
4206
+ } from "@mercurjs/dashboard-shared";
4207
+ import { jsx as jsx17 } from "react/jsx-runtime";
4208
+ var createDataGridExtensionColumn = ({
4209
+ id,
4210
+ field,
4211
+ getFieldName
4212
+ }) => {
4213
+ const helper = createDataGridHelper();
4214
+ const header = field.label ?? id;
4215
+ const Component = field.component;
4216
+ if (Component) {
4217
+ return helper.column({
4218
+ id,
4219
+ name: header,
4220
+ header,
4221
+ cell: (context) => /* @__PURE__ */ jsx17(DataGridReadonlyCell, { context, children: /* @__PURE__ */ jsx17(Component, { data: context.row.original }) })
4222
+ });
4223
+ }
4224
+ const inputType = resolveFormFieldType(field);
4225
+ const type = inputType === "textarea" ? "text" : inputType;
4226
+ const options = field.options ?? [];
4227
+ return helper.column({
4228
+ id,
4229
+ name: header,
4230
+ header,
4231
+ field: (context) => getFieldName(context),
4232
+ type,
4233
+ cell: (context) => {
4234
+ if (!getFieldName(context)) {
4235
+ return /* @__PURE__ */ jsx17(DataGridReadonlyCell, { context });
4236
+ }
4237
+ switch (type) {
4238
+ case "number":
4239
+ return /* @__PURE__ */ jsx17(DataGridNumberCell, { context, placeholder: field.placeholder });
4240
+ case "boolean":
4241
+ return /* @__PURE__ */ jsx17(DataGridBooleanCell, { context });
4242
+ case "select":
4243
+ return /* @__PURE__ */ jsx17(
4244
+ DataGridSelectCell,
4245
+ {
4246
+ context,
4247
+ options,
4248
+ placeholder: field.placeholder ?? ""
4249
+ }
4250
+ );
4251
+ default:
4252
+ return /* @__PURE__ */ jsx17(DataGridTextCell, { context });
4253
+ }
4254
+ }
4255
+ });
4256
+ };
4257
+
4203
4258
  export {
4204
4259
  useCombinedRefs,
4205
4260
  useDataGridCell,
@@ -4209,5 +4264,6 @@ export {
4209
4264
  DataGrid,
4210
4265
  createDataGridHelper,
4211
4266
  IncludesTaxTooltip,
4212
- createDataGridPriceColumns
4267
+ createDataGridPriceColumns,
4268
+ createDataGridExtensionColumn
4213
4269
  };
@@ -15,7 +15,7 @@ import {
15
15
  useCombinedRefs,
16
16
  useDataGridCell,
17
17
  useDataGridCellError
18
- } from "./chunk-SNRPCOU4.js";
18
+ } from "./chunk-ZASF7XBG.js";
19
19
  import {
20
20
  currencies
21
21
  } from "./chunk-IQPN4PZJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CollectionDetailPage
3
- } from "./chunk-PC2KYGGZ.js";
3
+ } from "./chunk-2WC2HCAF.js";
4
4
  import "./chunk-2VKBKPQ3.js";
5
5
  import "./chunk-ETS5KFYF.js";
6
6
  import "./chunk-D2T6A6TA.js";
@@ -232,92 +232,137 @@ declare module "@mercurjs/dashboard-sdk" {
232
232
  "attribute": {
233
233
  formZones: "create"
234
234
  formTabs: { "create": "details" | "type" }
235
+ formFieldIds: never
235
236
  displayZones: never
236
237
  displayFieldIds: never
238
+ listZones: never
239
+ listColumnIds: never
237
240
  }
238
241
  "campaign": {
239
242
  formZones: "edit"
240
243
  formTabs: Record<string, string>
244
+ formFieldIds: never
241
245
  displayZones: "configuration" | "general" | "promotions"
242
246
  displayFieldIds: "campaign_identifier" | "description" | "name" | "owner" | "status"
247
+ listZones: "list"
248
+ listColumnIds: "campaign_identifier" | "description" | "ends_at" | "name" | "owner" | "starts_at" | "status" | "type"
243
249
  }
244
250
  "category": {
245
251
  formZones: "create" | "edit"
246
252
  formTabs: { "create": "details" | "organize" }
253
+ formFieldIds: never
247
254
  displayZones: "general" | "icon" | "media" | "organize" | "products"
248
255
  displayFieldIds: "description" | "handle" | "is_active" | "is_internal" | "name"
256
+ listZones: "list" | "products"
257
+ listColumnIds: "categories" | "collection" | "handle" | "is_active" | "is_internal" | "name" | "product" | "status" | "variants"
249
258
  }
250
259
  "collection": {
251
260
  formZones: "edit"
252
261
  formTabs: Record<string, string>
262
+ formFieldIds: never
253
263
  displayZones: "general" | "icon" | "media" | "products"
254
264
  displayFieldIds: "handle" | "title"
265
+ listZones: "list" | "products"
266
+ listColumnIds: "categories" | "collection" | "handle" | "product" | "products" | "status" | "title" | "variants"
255
267
  }
256
268
  "customer": {
257
269
  formZones: "edit"
258
270
  formTabs: Record<string, string>
271
+ formFieldIds: never
259
272
  displayZones: "addresses" | "general" | "groups" | "orders"
260
273
  displayFieldIds: "company_name" | "email" | "name" | "phone" | "status"
274
+ listZones: "list"
275
+ listColumnIds: "created_at" | "email" | "has_account" | "name"
261
276
  }
262
277
  "customer_group": {
263
278
  formZones: "edit"
264
279
  formTabs: Record<string, string>
280
+ formFieldIds: never
265
281
  displayZones: "customers" | "general"
266
282
  displayFieldIds: "customers" | "name" | "owner"
283
+ listZones: "list"
284
+ listColumnIds: "created_at" | "customers" | "name" | "owner" | "updated_at"
267
285
  }
268
286
  "inventory_item": {
269
287
  formZones: "edit"
270
288
  formTabs: Record<string, string>
289
+ formFieldIds: never
271
290
  displayZones: "attributes" | "general" | "locations" | "reservations" | "variants"
272
291
  displayFieldIds: "available_quantity" | "reserved_quantity" | "sku" | "stocked_quantity" | "title"
292
+ listZones: "list" | "location-levels"
293
+ listColumnIds: "available_quantity" | "location" | "product" | "reserved_quantity" | "sku" | "stocked_quantity" | "store" | "title"
273
294
  }
274
295
  "offer": {
275
296
  formZones: never
276
297
  formTabs: Record<string, string>
298
+ formFieldIds: never
277
299
  displayZones: "associated-product" | "general" | "store" | "variants"
278
300
  displayFieldIds: "description" | "discountable" | "handle" | "status" | "subtitle" | "title"
301
+ listZones: "inventory" | "list" | "variants"
302
+ listColumnIds: "categories" | "collection" | "inventory" | "product" | "required_quantity" | "sku" | "status" | "store" | "title" | "variants"
279
303
  }
280
304
  "order": {
281
305
  formZones: never
282
306
  formTabs: Record<string, string>
307
+ formFieldIds: never
283
308
  displayZones: "activity" | "customer" | "general" | "order-group" | "payment" | "summary"
284
309
  displayFieldIds: "created_at" | "display_id" | "fulfillment_status" | "payment_status" | "status"
310
+ listZones: "list"
311
+ listColumnIds: "created_at" | "customer_name" | "display_id" | "fulfillment_status" | "order_ids" | "payment_status" | "total" | "vendor"
285
312
  }
286
313
  "price_list": {
287
314
  formZones: "create" | "edit"
288
315
  formTabs: { "create": "detail" | "price" | "product" }
316
+ formFieldIds: never
289
317
  displayZones: "configuration" | "general" | "products"
290
318
  displayFieldIds: "description" | "price_overrides" | "status" | "title" | "type"
319
+ listZones: "list"
320
+ listColumnIds: "owner" | "prices" | "status" | "title" | "type"
291
321
  }
292
322
  "product": {
293
323
  formZones: "create"
294
324
  formTabs: { "create": "attributes" | "details" | "organize" | "variants" }
325
+ formFieldIds: "attributes" | "category_id" | "collection_id" | "description" | "discountable" | "globally_available" | "handle" | "media" | "seller_ids" | "sku" | "subtitle" | "tags" | "title" | "type_id"
295
326
  displayZones: "general" | "media" | "organize" | "request" | "variants"
296
327
  displayFieldIds: "description" | "discountable" | "handle" | "status" | "subtitle" | "title"
328
+ listZones: "list" | "variants"
329
+ listColumnIds: "categories" | "collection" | "product" | "sku" | "status" | "title" | "variants"
297
330
  }
298
331
  "promotion": {
299
332
  formZones: "create" | "edit"
300
333
  formTabs: { "create": "campaign" | "promotion" | "type" }
334
+ formFieldIds: never
301
335
  displayZones: "campaign" | "general"
302
336
  displayFieldIds: "allocation" | "code" | "code_badge" | "coverage" | "is_automatic" | "is_tax_inclusive" | "owner" | "status" | "type" | "usage_limit" | "value"
337
+ listZones: "list"
338
+ listColumnIds: "campaign" | "code" | "method" | "owner" | "status" | "type"
303
339
  }
304
340
  "reservation": {
305
341
  formZones: "edit"
306
342
  formTabs: Record<string, string>
343
+ formFieldIds: never
307
344
  displayZones: "general"
308
345
  displayFieldIds: "available_quantity" | "description" | "header" | "item_id" | "location" | "reserved_quantity" | "stocked_quantity"
346
+ listZones: "inventory-item" | "list"
347
+ listColumnIds: "created_at" | "description" | "inventory_item.sku" | "inventory_item.title" | "line_item.order_id" | "location.name" | "product" | "quantity" | "sku" | "store"
309
348
  }
310
349
  "seller": {
311
350
  formZones: "create" | "edit"
312
351
  formTabs: { "create": "details" | "users" }
352
+ formFieldIds: never
313
353
  displayZones: "address" | "company-details" | "configuration" | "general" | "members" | "offers" | "orders" | "payment-details" | "regions" | "requests"
314
354
  displayFieldIds: "currency_code" | "description" | "email" | "handle" | "phone" | "website_url"
355
+ listZones: "list"
356
+ listColumnIds: "created_at" | "email" | "is_premium" | "name" | "status"
315
357
  }
316
358
  "user": {
317
359
  formZones: never
318
360
  formTabs: Record<string, string>
361
+ formFieldIds: never
319
362
  displayZones: "general"
320
363
  displayFieldIds: "email" | "language" | "name"
364
+ listZones: "list"
365
+ listColumnIds: "created_at" | "email" | "first_name" | "last_name" | "updated_at"
321
366
  }
322
367
  }
323
368
  }
package/dist/index.js CHANGED
@@ -275,12 +275,12 @@ function getRouteMap({
275
275
  {
276
276
  path: "create",
277
277
  handle: { permissions: "products:edit" },
278
- lazy: () => import("./product-create-7OOB5EJF.js")
278
+ lazy: () => import("./product-create-75ITVW4M.js")
279
279
  },
280
280
  {
281
281
  path: "bulk-edit",
282
282
  handle: { permissions: "products:edit" },
283
- lazy: () => import("./product-bulk-edit-UA4PM7Q5.js")
283
+ lazy: () => import("./product-bulk-edit-B4IJNNYK.js")
284
284
  }
285
285
  ]
286
286
  },
@@ -288,7 +288,7 @@ function getRouteMap({
288
288
  path: ":id",
289
289
  errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
290
290
  lazy: async () => {
291
- const { Breadcrumb, loader } = await import("./product-detail-YOLJY6UR.js");
291
+ const { Breadcrumb, loader } = await import("./product-detail-D4C4BPM3.js");
292
292
  return {
293
293
  Component: Outlet3,
294
294
  loader: withPermission(loader, "products:view"),
@@ -300,7 +300,7 @@ function getRouteMap({
300
300
  children: [
301
301
  {
302
302
  path: "",
303
- lazy: () => import("./product-detail-YOLJY6UR.js").then(withLoaderPermission("products:view")),
303
+ lazy: () => import("./product-detail-D4C4BPM3.js").then(withLoaderPermission("products:view")),
304
304
  children: [
305
305
  {
306
306
  path: "edit",
@@ -350,7 +350,7 @@ function getRouteMap({
350
350
  {
351
351
  path: "media",
352
352
  handle: { permissions: "products:edit" },
353
- lazy: () => import("./product-media-AE3YKMZI.js")
353
+ lazy: () => import("./product-media-EN27BB3X.js")
354
354
  },
355
355
  {
356
356
  path: "variants/create",
@@ -426,7 +426,7 @@ function getRouteMap({
426
426
  {
427
427
  path: ":id",
428
428
  lazy: async () => {
429
- const { Breadcrumb, loader } = await import("./category-detail-NCT667Q5.js");
429
+ const { Breadcrumb, loader } = await import("./category-detail-3O5R5ERZ.js");
430
430
  return {
431
431
  Component: Outlet3,
432
432
  loader: withPermission(loader, "product_categories:view"),
@@ -438,7 +438,7 @@ function getRouteMap({
438
438
  children: [
439
439
  {
440
440
  path: "",
441
- lazy: () => import("./category-detail-NCT667Q5.js").then(withLoaderPermission("product_categories:view")),
441
+ lazy: () => import("./category-detail-3O5R5ERZ.js").then(withLoaderPermission("product_categories:view")),
442
442
  children: [
443
443
  {
444
444
  path: "edit",
@@ -745,7 +745,7 @@ function getRouteMap({
745
745
  {
746
746
  path: ":id",
747
747
  lazy: async () => {
748
- const { Breadcrumb, loader } = await import("./collection-detail-C2VHK6JM.js");
748
+ const { Breadcrumb, loader } = await import("./collection-detail-SREJ5XM6.js");
749
749
  return {
750
750
  Component: Outlet3,
751
751
  loader: withPermission(loader, "product_collections:view"),
@@ -757,7 +757,7 @@ function getRouteMap({
757
757
  children: [
758
758
  {
759
759
  path: "",
760
- lazy: () => import("./collection-detail-C2VHK6JM.js").then(withLoaderPermission("product_collections:view")),
760
+ lazy: () => import("./collection-detail-SREJ5XM6.js").then(withLoaderPermission("product_collections:view")),
761
761
  children: [
762
762
  {
763
763
  path: "edit",
@@ -805,7 +805,7 @@ function getRouteMap({
805
805
  {
806
806
  path: "create",
807
807
  handle: { permissions: "price_lists:edit" },
808
- lazy: () => import("./price-list-create-R2JDXJRG.js")
808
+ lazy: () => import("./price-list-create-K4NOZFAS.js")
809
809
  }
810
810
  ]
811
811
  },
@@ -844,12 +844,12 @@ function getRouteMap({
844
844
  {
845
845
  path: "products/add",
846
846
  handle: { permissions: "price_lists:edit" },
847
- lazy: () => import("./price-list-prices-add-Q7UR2HAT.js")
847
+ lazy: () => import("./price-list-prices-add-63TWHUTG.js")
848
848
  },
849
849
  {
850
850
  path: "products/edit",
851
851
  handle: { permissions: "price_lists:edit" },
852
- lazy: () => import("./price-list-prices-edit-Q7VBH25K.js")
852
+ lazy: () => import("./price-list-prices-edit-SP67DNIG.js")
853
853
  }
854
854
  ]
855
855
  }
@@ -1006,7 +1006,7 @@ function getRouteMap({
1006
1006
  {
1007
1007
  path: "bulk-edit",
1008
1008
  handle: { permissions: "sellers:edit" },
1009
- lazy: () => import("./store-bulk-edit-5G5STIL2.js")
1009
+ lazy: () => import("./store-bulk-edit-OGATAAML.js")
1010
1010
  }
1011
1011
  ]
1012
1012
  },
@@ -1029,7 +1029,7 @@ function getRouteMap({
1029
1029
  {
1030
1030
  path: "edit",
1031
1031
  handle: { permissions: "sellers:edit" },
1032
- lazy: () => import("./store-edit-FXGGXEPH.js")
1032
+ lazy: () => import("./store-edit-YXUNYHEB.js")
1033
1033
  },
1034
1034
  {
1035
1035
  path: "edit-address",
@@ -1184,7 +1184,7 @@ function getRouteMap({
1184
1184
  {
1185
1185
  path: "",
1186
1186
  lazy: async () => {
1187
- const { OfferDetailPage } = await import("./offer-detail-page-4U4PPA7Q.js");
1187
+ const { OfferDetailPage } = await import("./offer-detail-page-SFMQXRGK.js");
1188
1188
  return { Component: OfferDetailPage };
1189
1189
  }
1190
1190
  },
@@ -1205,7 +1205,7 @@ function getRouteMap({
1205
1205
  {
1206
1206
  path: "",
1207
1207
  lazy: async () => {
1208
- const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-4ZDMBL4R.js");
1208
+ const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-MG6QWFMT.js");
1209
1209
  return { Component: OfferVariantDetailPage };
1210
1210
  }
1211
1211
  }
@@ -1230,14 +1230,14 @@ function getRouteMap({
1230
1230
  {
1231
1231
  path: "stock",
1232
1232
  handle: { permissions: ["inventory_items:edit", "stock_locations:view"] },
1233
- lazy: () => import("./inventory-stock-3SDSWZ45.js")
1233
+ lazy: () => import("./inventory-stock-FRETNM2W.js")
1234
1234
  }
1235
1235
  ]
1236
1236
  },
1237
1237
  {
1238
1238
  path: ":id",
1239
1239
  lazy: async () => {
1240
- const { Breadcrumb, loader } = await import("./inventory-detail-4O53UJDE.js");
1240
+ const { Breadcrumb, loader } = await import("./inventory-detail-VUGZZMVT.js");
1241
1241
  return {
1242
1242
  Component: Outlet3,
1243
1243
  loader: withPermission(loader, "inventory_items:view"),
@@ -1249,7 +1249,7 @@ function getRouteMap({
1249
1249
  children: [
1250
1250
  {
1251
1251
  path: "",
1252
- lazy: () => import("./inventory-detail-4O53UJDE.js").then(withLoaderPermission("inventory_items:view")),
1252
+ lazy: () => import("./inventory-detail-VUGZZMVT.js").then(withLoaderPermission("inventory_items:view")),
1253
1253
  children: [
1254
1254
  {
1255
1255
  path: "edit",
@@ -1765,7 +1765,7 @@ function getRouteMap({
1765
1765
  {
1766
1766
  path: "create",
1767
1767
  handle: { permissions: "shipping_options:edit" },
1768
- lazy: () => import("./location-service-zone-shipping-option-create-PDEJJ6E3.js")
1768
+ lazy: () => import("./location-service-zone-shipping-option-create-VZVSNB3W.js")
1769
1769
  },
1770
1770
  {
1771
1771
  path: ":so_id",
@@ -1778,7 +1778,7 @@ function getRouteMap({
1778
1778
  {
1779
1779
  path: "pricing",
1780
1780
  handle: { permissions: "shipping_options:edit" },
1781
- lazy: () => import("./location-service-zone-shipping-option-pricing-JZAQVSGB.js")
1781
+ lazy: () => import("./location-service-zone-shipping-option-pricing-CTDN4AEZ.js")
1782
1782
  }
1783
1783
  ]
1784
1784
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  INVENTORY_DETAIL_FIELDS,
3
3
  InventoryDetailPage
4
- } from "./chunk-BTHHPKCS.js";
4
+ } from "./chunk-4PX63HUF.js";
5
5
  import "./chunk-UST2RGWB.js";
6
6
  import "./chunk-U2EI2ZLM.js";
7
7
  import "./chunk-W6Y3PPU5.js";
@@ -12,7 +12,7 @@ import {
12
12
  useCombinedRefs,
13
13
  useDataGridCell,
14
14
  useDataGridCellError
15
- } from "./chunk-SNRPCOU4.js";
15
+ } from "./chunk-ZASF7XBG.js";
16
16
  import "./chunk-IQPN4PZJ.js";
17
17
  import "./chunk-TKGWSUEI.js";
18
18
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LocationServiceZoneShippingOptionCreate
3
- } from "./chunk-A6JWUPH5.js";
4
- import "./chunk-XZ4GKMFM.js";
3
+ } from "./chunk-BCGTBSGP.js";
4
+ import "./chunk-ZEXGMG5L.js";
5
5
  import "./chunk-LXSBG6LK.js";
6
6
  import "./chunk-VW56KWO2.js";
7
7
  import "./chunk-PXYDR7WQ.js";
@@ -11,7 +11,7 @@ import "./chunk-PYDRHQTY.js";
11
11
  import "./chunk-SR3DYN52.js";
12
12
  import "./chunk-FREUYHMS.js";
13
13
  import "./chunk-2EME4AWX.js";
14
- import "./chunk-SNRPCOU4.js";
14
+ import "./chunk-ZASF7XBG.js";
15
15
  import "./chunk-IQPN4PZJ.js";
16
16
  import "./chunk-TKGWSUEI.js";
17
17
  import "./chunk-SITRHMZZ.js";
@@ -4,7 +4,7 @@ import {
4
4
  UpdateConditionalPriceSchema,
5
5
  buildShippingOptionPriceRules,
6
6
  useShippingOptionPriceColumns
7
- } from "./chunk-XZ4GKMFM.js";
7
+ } from "./chunk-ZEXGMG5L.js";
8
8
  import {
9
9
  CONDITIONAL_PRICES_STACKED_MODAL_ID,
10
10
  ITEM_TOTAL_ATTRIBUTE,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-SMQT3ZNO.js";
17
17
  import {
18
18
  DataGrid
19
- } from "./chunk-SNRPCOU4.js";
19
+ } from "./chunk-ZASF7XBG.js";
20
20
  import "./chunk-IQPN4PZJ.js";
21
21
  import "./chunk-TKGWSUEI.js";
22
22
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OfferStoreSidebar
3
- } from "./chunk-7OFD2K5S.js";
3
+ } from "./chunk-5GPXMPGI.js";
4
4
  import {
5
5
  OFFER_PRODUCT_DETAIL_FIELDS
6
6
  } from "./chunk-OPQG43I5.js";
@@ -238,7 +238,10 @@ import {
238
238
  import { createColumnHelper } from "@tanstack/react-table";
239
239
  import { useCallback, useMemo } from "react";
240
240
  import { useTranslation as useTranslation2 } from "react-i18next";
241
- import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
241
+ import {
242
+ DisplayExtensionZone as DisplayExtensionZone2,
243
+ useExtendableTable
244
+ } from "@mercurjs/dashboard-shared";
242
245
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
243
246
  var PAGE_SIZE = 10;
244
247
  var PREFIX = "ov";
@@ -286,7 +289,7 @@ var useColumns = ({
286
289
  onDelete
287
290
  }) => {
288
291
  const { t } = useTranslation2();
289
- return useMemo(
292
+ const base = useMemo(
290
293
  () => [
291
294
  columnHelper.accessor((row) => row.variant.title ?? "", {
292
295
  id: "title",
@@ -382,6 +385,16 @@ var useColumns = ({
382
385
  ],
383
386
  [t, optionTitles, thumbnail, onDelete]
384
387
  );
388
+ const actionsColumn = base[base.length - 1];
389
+ const { columns: extended } = useExtendableTable({
390
+ model: "offer",
391
+ zone: "variants",
392
+ columns: base.slice(0, -1)
393
+ });
394
+ return useMemo(
395
+ () => [...extended, actionsColumn],
396
+ [extended, actionsColumn]
397
+ );
385
398
  };
386
399
  var OfferVariantsSection = ({
387
400
  variants,
@@ -2,7 +2,7 @@ import {
2
2
  OfferInventorySection,
3
3
  OfferPricingSection,
4
4
  OfferStoreSidebar
5
- } from "./chunk-7OFD2K5S.js";
5
+ } from "./chunk-5GPXMPGI.js";
6
6
  import {
7
7
  OFFER_VARIANT_DETAIL_FIELDS
8
8
  } from "./chunk-OPQG43I5.js";
@@ -1066,6 +1066,7 @@ declare const ProductCreateSchema: z.ZodObject<{
1066
1066
  sku: z.ZodOptional<z.ZodString>;
1067
1067
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1068
1068
  variant_rank: z.ZodNumber;
1069
+ additional_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1069
1070
  }, z.core.$strip>>;
1070
1071
  media: z.ZodOptional<z.ZodArray<z.ZodObject<{
1071
1072
  id: z.ZodOptional<z.ZodString>;
@@ -1073,6 +1074,7 @@ declare const ProductCreateSchema: z.ZodObject<{
1073
1074
  isThumbnail: z.ZodBoolean;
1074
1075
  file: z.ZodNullable<z.ZodAny>;
1075
1076
  }, z.core.$strip>>>;
1077
+ additional_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1076
1078
  }, z.core.$strip>;
1077
1079
 
1078
1080
  type ProductCreateSchemaType = z.infer<typeof ProductCreateSchema>;
@@ -1110,6 +1112,7 @@ declare const ProductCreatePage: (({ children }: {
1110
1112
  origin_country?: string | undefined;
1111
1113
  sku?: string | undefined;
1112
1114
  options?: Record<string, string> | undefined;
1115
+ additional_data?: Record<string, unknown> | undefined;
1113
1116
  }[];
1114
1117
  subtitle?: string | undefined;
1115
1118
  handle?: string | undefined;
@@ -1145,6 +1148,7 @@ declare const ProductCreatePage: (({ children }: {
1145
1148
  file: any;
1146
1149
  id?: string | undefined;
1147
1150
  }[] | undefined;
1151
+ additional_data?: Record<string, unknown> | undefined;
1148
1152
  }>;
1149
1153
  };
1150
1154
  OrganizeTab: {
@@ -1172,6 +1176,7 @@ declare const ProductCreatePage: (({ children }: {
1172
1176
  origin_country?: string | undefined;
1173
1177
  sku?: string | undefined;
1174
1178
  options?: Record<string, string> | undefined;
1179
+ additional_data?: Record<string, unknown> | undefined;
1175
1180
  }[];
1176
1181
  subtitle?: string | undefined;
1177
1182
  handle?: string | undefined;
@@ -1207,6 +1212,7 @@ declare const ProductCreatePage: (({ children }: {
1207
1212
  file: any;
1208
1213
  id?: string | undefined;
1209
1214
  }[] | undefined;
1215
+ additional_data?: Record<string, unknown> | undefined;
1210
1216
  }>;
1211
1217
  };
1212
1218
  AttributesTab: {
@@ -1234,6 +1240,7 @@ declare const ProductCreatePage: (({ children }: {
1234
1240
  origin_country?: string | undefined;
1235
1241
  sku?: string | undefined;
1236
1242
  options?: Record<string, string> | undefined;
1243
+ additional_data?: Record<string, unknown> | undefined;
1237
1244
  }[];
1238
1245
  subtitle?: string | undefined;
1239
1246
  handle?: string | undefined;
@@ -1269,6 +1276,7 @@ declare const ProductCreatePage: (({ children }: {
1269
1276
  file: any;
1270
1277
  id?: string | undefined;
1271
1278
  }[] | undefined;
1279
+ additional_data?: Record<string, unknown> | undefined;
1272
1280
  }>;
1273
1281
  };
1274
1282
  VariantsTab: {
@@ -1296,6 +1304,7 @@ declare const ProductCreatePage: (({ children }: {
1296
1304
  origin_country?: string | undefined;
1297
1305
  sku?: string | undefined;
1298
1306
  options?: Record<string, string> | undefined;
1307
+ additional_data?: Record<string, unknown> | undefined;
1299
1308
  }[];
1300
1309
  subtitle?: string | undefined;
1301
1310
  handle?: string | undefined;
@@ -1331,6 +1340,7 @@ declare const ProductCreatePage: (({ children }: {
1331
1340
  file: any;
1332
1341
  id?: string | undefined;
1333
1342
  }[] | undefined;
1343
+ additional_data?: Record<string, unknown> | undefined;
1334
1344
  }>;
1335
1345
  };
1336
1346
  Tab: ({ children, }: {