@mercurjs/admin 2.2.0-canary.40 → 2.2.0-canary.41

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 (125) hide show
  1. package/dist/{attribute-create-VGL7LGIH.js → attribute-create-VAR6C5GW.js} +4 -2
  2. package/dist/{attribute-detail-EKDAYT4B.js → attribute-detail-LBACUDU3.js} +1 -1
  3. package/dist/{attribute-edit-OBNLNOJS.js → attribute-edit-WXO5FGR6.js} +2 -2
  4. package/dist/{attribute-edit-possible-value-QDFVWLA3.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
  5. package/dist/{campaign-detail-RNB3FEJZ.js → campaign-detail-6J7PTIIP.js} +1 -1
  6. package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-DBAJFIH4.js} +18 -5
  7. package/dist/{campaign-list-CDV4GWWD.js → campaign-list-XH7UM5JJ.js} +1 -1
  8. package/dist/{category-create-AIS2MG7E.js → category-create-CJZZZLDD.js} +1 -1
  9. package/dist/{category-detail-557376TZ.js → category-detail-XV6CDZZL.js} +5 -5
  10. package/dist/{category-edit-LYR2IOTA.js → category-edit-2NCWDSZY.js} +19 -6
  11. package/dist/{category-list-XKRI24VN.js → category-list-WYMOJJLW.js} +1 -1
  12. package/dist/{category-products-44PCDDNN.js → category-products-CQV2TKLY.js} +4 -4
  13. package/dist/{chunk-HRDVGFS7.js → chunk-27XNPAJP.js} +9 -3
  14. package/dist/{chunk-KGA2XI6W.js → chunk-2CJIE5MY.js} +18 -7
  15. package/dist/{chunk-PMVWIBTI.js → chunk-3L4IFGRJ.js} +45 -8
  16. package/dist/{chunk-HQM7D57C.js → chunk-4RLXMDIJ.js} +2 -2
  17. package/dist/{chunk-5ACJR6WB.js → chunk-4XYSIVPO.js} +2 -2
  18. package/dist/{chunk-J3L2FUIA.js → chunk-5DAFNAZJ.js} +49 -33
  19. package/dist/{chunk-BLR3NTU6.js → chunk-5PNM6QNB.js} +2 -0
  20. package/dist/{chunk-GCU4LHGY.js → chunk-5UT374IW.js} +69 -24
  21. package/dist/{chunk-BTJR5RSV.js → chunk-7U2JJYMP.js} +41 -13
  22. package/dist/{chunk-2Z2M5K5A.js → chunk-ADTYNS4J.js} +1 -1
  23. package/dist/chunk-APAT344J.js +144 -0
  24. package/dist/{chunk-NWSKT55Z.js → chunk-BQWSY6FS.js} +1 -1
  25. package/dist/{chunk-NZVS6B77.js → chunk-CBD7HK2G.js} +54 -17
  26. package/dist/{chunk-WKDHY2DJ.js → chunk-COOOOQ2N.js} +1 -1
  27. package/dist/{chunk-56UFDHNO.js → chunk-DJD3MWED.js} +1 -1
  28. package/dist/{chunk-BVIIRGSW.js → chunk-F3F4JC7E.js} +3 -1
  29. package/dist/{chunk-7O7LYBHL.js → chunk-FNCDMOOR.js} +50 -18
  30. package/dist/{chunk-TDJSZ73V.js → chunk-GXU246YJ.js} +31 -4
  31. package/dist/{chunk-OYZIFLLC.js → chunk-I5HY5Q3K.js} +1 -1
  32. package/dist/{chunk-MZOINNCV.js → chunk-IASJSRP5.js} +70 -49
  33. package/dist/{chunk-THPXRTE5.js → chunk-IMLKFVFH.js} +23 -6
  34. package/dist/{chunk-EX4AGESR.js → chunk-IZBV7MCY.js} +61 -27
  35. package/dist/{chunk-Q6QXFLUY.js → chunk-JEN37H6L.js} +2 -0
  36. package/dist/{chunk-FICKHCWL.js → chunk-K2JORJRZ.js} +3 -1
  37. package/dist/{chunk-NISAIYSW.js → chunk-KRFXBBBU.js} +2 -2
  38. package/dist/{chunk-OAN4CZKX.js → chunk-KUCNCDST.js} +2 -0
  39. package/dist/{chunk-VJ4LQXMA.js → chunk-L2D2AMTK.js} +4 -2
  40. package/dist/{chunk-DPG4AWSG.js → chunk-LBDSZT5Q.js} +17 -6
  41. package/dist/{chunk-4346EIRG.js → chunk-LGOPKYNG.js} +1 -1
  42. package/dist/{chunk-VYQ6ASFF.js → chunk-MFCQTAVI.js} +15 -4
  43. package/dist/{chunk-TH26CWVG.js → chunk-NLJ5F7FS.js} +1 -1
  44. package/dist/{chunk-MOG7LT73.js → chunk-NPHYCQMP.js} +4 -2
  45. package/dist/{chunk-LVRCEGL7.js → chunk-ORCMDF54.js} +27 -11
  46. package/dist/{chunk-65YE4SVL.js → chunk-OVUKVGGD.js} +18 -7
  47. package/dist/{chunk-VPYI4X6C.js → chunk-PLU2GB4L.js} +27 -7
  48. package/dist/{chunk-GISFIAGQ.js → chunk-QAONUPAX.js} +42 -13
  49. package/dist/{chunk-W3P3RP5R.js → chunk-QFFF542X.js} +9 -3
  50. package/dist/{chunk-JU2O2H7I.js → chunk-RATQZHCS.js} +2 -2
  51. package/dist/{chunk-DI2M3J5Q.js → chunk-RMB7MPIT.js} +1 -1
  52. package/dist/{chunk-KFYTUQXT.js → chunk-S2C6DUQJ.js} +2 -2
  53. package/dist/{chunk-UZ452ISX.js → chunk-U4MV53CS.js} +32 -14
  54. package/dist/{chunk-VBKFXL2Q.js → chunk-USG4EATH.js} +19 -4
  55. package/dist/{chunk-IVBNI2QE.js → chunk-VIJXGPDE.js} +78 -24
  56. package/dist/{chunk-W7CJSBDM.js → chunk-VLYPVR5U.js} +19 -8
  57. package/dist/{chunk-6KWWJE5P.js → chunk-VXDRQQRZ.js} +3 -3
  58. package/dist/{chunk-DSTHXHJ5.js → chunk-VYSB4CTB.js} +1356 -1356
  59. package/dist/{chunk-YRUCTB6M.js → chunk-WEVSVBVF.js} +1 -1
  60. package/dist/{chunk-3BTRS4AA.js → chunk-WMK3BQPH.js} +1 -1
  61. package/dist/{chunk-EGHDC6K6.js → chunk-X6KFVVHH.js} +2 -2
  62. package/dist/{chunk-2FPQHWJZ.js → chunk-X7IR2TVL.js} +106 -24
  63. package/dist/{collection-add-products-JFUIZEZI.js → collection-add-products-XUKFZOCQ.js} +4 -4
  64. package/dist/{collection-detail-2WOLOVWF.js → collection-detail-ID4FKP22.js} +5 -5
  65. package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-GPUKISIV.js} +18 -5
  66. package/dist/{collection-list-B3Y2ALLZ.js → collection-list-C6U4CPLD.js} +4 -4
  67. package/dist/{customer-detail-ZGDPIWA4.js → customer-detail-IG2QAAQL.js} +1 -1
  68. package/dist/{customer-edit-D55FJLIN.js → customer-edit-TADBOMPB.js} +18 -5
  69. package/dist/{customer-group-detail-FXUICFYC.js → customer-group-detail-2B7XJ7NT.js} +1 -1
  70. package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-BX4HKVNN.js} +33 -18
  71. package/dist/{customer-group-list-R2DP2D42.js → customer-group-list-7LN5TN3G.js} +1 -1
  72. package/dist/{customer-list-Z4DUQHCH.js → customer-list-K5TV3PSF.js} +1 -1
  73. package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-4RXYRJ7O.js} +19 -6
  74. package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-HA6J6U2N.js} +18 -5
  75. package/dist/extension-targets.d.ts +195 -0
  76. package/dist/extension-targets.js +1 -0
  77. package/dist/index.d.ts +6 -2
  78. package/dist/index.js +136 -108
  79. package/dist/{inventory-create-XQKH3HZQ.js → inventory-create-B3FHGX6A.js} +1 -1
  80. package/dist/{inventory-detail-RZJNTJDF.js → inventory-detail-7VEJHRBB.js} +2 -2
  81. package/dist/{inventory-list-SPSBDJXO.js → inventory-list-IRQUQD4G.js} +1 -1
  82. package/dist/{location-fulfillment-providers-XXZ7AIUF.js → location-fulfillment-providers-MFM4SHJJ.js} +2 -2
  83. package/dist/{offer-detail-page-2G5BUOIB.js → offer-detail-page-THKNBFWZ.js} +61 -16
  84. package/dist/{offer-variant-detail-page-V6TKNYZL.js → offer-variant-detail-page-NDGPFP6P.js} +1 -1
  85. package/dist/{offers-2QQFKGAX.js → offers-LYLEYD3A.js} +22 -7
  86. package/dist/{order-detail-QUGH2GXH.js → order-detail-NYKOH7OO.js} +1 -1
  87. package/dist/{order-list-GMUOLGZY.js → order-list-EZWCH5YW.js} +3 -3
  88. package/dist/pages/index.js +47 -47
  89. package/dist/{price-list-create-HKN72A6Q.js → price-list-create-YHSA7U3L.js} +5 -5
  90. package/dist/{price-list-detail-6JAMNNJW.js → price-list-detail-3SS3DGRU.js} +5 -5
  91. package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-TRRPPI43.js} +19 -6
  92. package/dist/{price-list-list-HLWCOORV.js → price-list-list-REIHOWWT.js} +1 -1
  93. package/dist/{price-list-prices-add-ST6WNQNH.js → price-list-prices-add-X2GLUD7O.js} +5 -5
  94. package/dist/{product-add-existing-attributes-J6MML6MT.js → product-add-existing-attributes-GPAZOIXH.js} +2 -2
  95. package/dist/{product-create-B4DTC2OM.js → product-create-6FDBZUB4.js} +3 -3
  96. package/dist/{product-create-attribute-BP6NN4GO.js → product-create-attribute-YFIEH7HD.js} +1 -1
  97. package/dist/{product-create-variant-VDQQNHAK.js → product-create-variant-4O22DW7M.js} +3 -3
  98. package/dist/{product-detail-MFJ3AIU6.js → product-detail-VORTX3LT.js} +3 -3
  99. package/dist/{product-edit-attribute-AXPTES26.js → product-edit-attribute-NUJB7M6R.js} +2 -2
  100. package/dist/{product-list-DMQSLXM4.js → product-list-2WE2JY4F.js} +15 -12
  101. package/dist/{product-media-XRBLOV7D.js → product-media-LINHO45U.js} +2 -2
  102. package/dist/{product-tag-detail-4FL4CU5S.js → product-tag-detail-2PMM6RG6.js} +6 -6
  103. package/dist/{product-tag-list-YPTIDXPX.js → product-tag-list-KBNI6UDN.js} +6 -6
  104. package/dist/{product-type-detail-RAYCHYAF.js → product-type-detail-UKJ6RIHU.js} +5 -5
  105. package/dist/{product-variant-edit-C4HXFQFW.js → product-variant-edit-MAM2RQ4V.js} +2 -2
  106. package/dist/{promotion-create-7VBA6JFM.js → promotion-create-3EDHAI7E.js} +1 -1
  107. package/dist/{promotion-detail-KXXWEFHW.js → promotion-detail-PLGDC3A7.js} +1 -1
  108. package/dist/{promotion-edit-details-YM5JPGEC.js → promotion-edit-details-RTLPOQ4H.js} +20 -6
  109. package/dist/{promotion-list-56ZDROMH.js → promotion-list-D6HSZKGU.js} +1 -1
  110. package/dist/{refund-reason-list-PBLA5HYO.js → refund-reason-list-OWXAGHOQ.js} +5 -5
  111. package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-PWZ3PLC4.js} +2 -2
  112. package/dist/{reservation-list-UWZRPRPH.js → reservation-list-URKNAFIX.js} +1 -1
  113. package/dist/{return-reason-list-NPAAMB5H.js → return-reason-list-4ANB2PXX.js} +5 -5
  114. package/dist/{sales-channel-add-products-2BBIMN6N.js → sales-channel-add-products-NATZ7L5S.js} +4 -4
  115. package/dist/{sales-channel-detail-D5R7HPC7.js → sales-channel-detail-VDYOKH35.js} +5 -5
  116. package/dist/{store-bulk-edit-OIYKZ6AZ.js → store-bulk-edit-I2J5YYZK.js} +1 -1
  117. package/dist/{store-create-Y3BGG5P5.js → store-create-4UHISWQE.js} +1 -1
  118. package/dist/{store-details-56IHJJQV.js → store-details-4D7MSGVL.js} +5 -5
  119. package/dist/{store-edit-HWOGEOCH.js → store-edit-MQZMWYXY.js} +22 -8
  120. package/dist/{store-list-5DRW6QZF.js → store-list-EBAHJOZO.js} +4 -4
  121. package/dist/{store-member-invite-7ORIMT73.js → store-member-invite-J2JFDOHX.js} +1 -1
  122. package/dist/{tax-region-tax-override-create-R5GKEOK6.js → tax-region-tax-override-create-5PIUENUZ.js} +6 -6
  123. package/dist/{tax-region-tax-override-edit-MLJKNLAR.js → tax-region-tax-override-edit-GBPRPUTS.js} +6 -6
  124. package/package.json +17 -12
  125. package/dist/chunk-LFKTHNWI.js +0 -83
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_dist
3
- } from "./chunk-DSTHXHJ5.js";
3
+ } from "./chunk-VYSB4CTB.js";
4
4
  import {
5
5
  useProductTags
6
6
  } from "./chunk-ABS7HMLY.js";
@@ -34,6 +34,7 @@ import {
34
34
 
35
35
  // src/pages/orders/order-list/order-list.tsx
36
36
  import { Children as Children3 } from "react";
37
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
37
38
 
38
39
  // src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
39
40
  import { Children as Children2 } from "react";
@@ -71,6 +72,7 @@ import { IconButton as IconButton2, clx } from "@medusajs/ui";
71
72
  import { TriangleRightMini } from "@medusajs/icons";
72
73
  import { keepPreviousData } from "@tanstack/react-query";
73
74
  import { createColumnHelper } from "@tanstack/react-table";
75
+ import { useExtendableTable } from "@mercurjs/dashboard-shared";
74
76
  import { useMemo } from "react";
75
77
  import { useTranslation as useTranslation3 } from "react-i18next";
76
78
 
@@ -196,8 +198,12 @@ var OrderListDataTable = () => {
196
198
  () => transformOrderGroups(order_groups ?? [], t),
197
199
  [order_groups, t]
198
200
  );
199
- const filters = useOrderGroupTableFilters();
200
- const columns = useColumns();
201
+ const baseFilters = useOrderGroupTableFilters();
202
+ const { columns, filters: extFilters } = useColumns();
203
+ const filters = useMemo(
204
+ () => [...baseFilters, ...extFilters],
205
+ [baseFilters, extFilters]
206
+ );
201
207
  const { table } = useDataTable({
202
208
  data: rows,
203
209
  columns,
@@ -245,7 +251,7 @@ var OrderListDataTable = () => {
245
251
  var columnHelper = createColumnHelper();
246
252
  var useColumns = () => {
247
253
  const { t } = useTranslation3();
248
- return useMemo(
254
+ const base = useMemo(
249
255
  () => [
250
256
  columnHelper.accessor("display_id", {
251
257
  header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("orders.fields.groupId") }),
@@ -340,6 +346,11 @@ var useColumns = () => {
340
346
  ],
341
347
  [t]
342
348
  );
349
+ const { columns: extended, filters } = useExtendableTable({
350
+ model: "order",
351
+ columns: base
352
+ });
353
+ return { columns: extended, filters };
343
354
  };
344
355
 
345
356
  // src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
@@ -354,7 +365,7 @@ var OrderListTable = ({ children }) => {
354
365
  // src/pages/orders/order-list/order-list.tsx
355
366
  import { jsx as jsx5 } from "react/jsx-runtime";
356
367
  var Root = ({ children }) => {
357
- return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(OrderListTable, {}) });
368
+ return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: /* @__PURE__ */ jsx5(WidgetZone, { id: "orders.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(OrderListTable, {}) }) });
358
369
  };
359
370
  var OrderListPage = Object.assign(Root, {
360
371
  Table: OrderListTable,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_dist
3
- } from "./chunk-DSTHXHJ5.js";
3
+ } from "./chunk-VYSB4CTB.js";
4
4
  import {
5
5
  __toESM
6
6
  } from "./chunk-NBMM2TZK.js";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-U5MJIHLY.js";
14
14
  import {
15
15
  useProductTableColumns
16
- } from "./chunk-OYZIFLLC.js";
16
+ } from "./chunk-I5HY5Q3K.js";
17
17
  import {
18
18
  useProductTableFilters
19
- } from "./chunk-4346EIRG.js";
19
+ } from "./chunk-LGOPKYNG.js";
20
20
  import {
21
21
  useProductTableQuery
22
22
  } from "./chunk-H7NIKMPE.js";
@@ -705,6 +705,8 @@ var PriceListCreateForm = ({
705
705
  return /* @__PURE__ */ jsx4(
706
706
  TabbedForm,
707
707
  {
708
+ model: "price_list",
709
+ zone: "create",
708
710
  form,
709
711
  onSubmit: handleSubmit,
710
712
  isLoading: isPending,
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-VM56ZITS.js";
5
5
  import {
6
6
  useProductTableColumns
7
- } from "./chunk-OYZIFLLC.js";
7
+ } from "./chunk-I5HY5Q3K.js";
8
8
  import {
9
9
  useProductTableFilters
10
- } from "./chunk-4346EIRG.js";
10
+ } from "./chunk-LGOPKYNG.js";
11
11
  import {
12
12
  useProductTableQuery
13
13
  } from "./chunk-H7NIKMPE.js";
@@ -36,10 +36,12 @@ import {
36
36
  // src/pages/collections/collection-detail/collection-detail.tsx
37
37
  import { Children } from "react";
38
38
  import { useLoaderData, useParams } from "react-router-dom";
39
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
39
40
 
40
41
  // src/pages/collections/collection-detail/components/collection-general-section/collection-general-section.tsx
41
42
  import { PencilSquare, Trash } from "@medusajs/icons";
42
43
  import { Container, Heading, Text, usePrompt } from "@medusajs/ui";
44
+ import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
43
45
  import { useTranslation } from "react-i18next";
44
46
  import { useNavigate } from "react-router-dom";
45
47
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -66,7 +68,7 @@ var CollectionGeneralSection = ({
66
68
  };
67
69
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
68
70
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
69
- /* @__PURE__ */ jsx(Heading, { children: collection.title }),
71
+ /* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "title", data: collection, children: /* @__PURE__ */ jsx(Heading, { children: collection.title }) }),
70
72
  /* @__PURE__ */ jsx(
71
73
  ActionMenu,
72
74
  {
@@ -95,19 +97,29 @@ var CollectionGeneralSection = ({
95
97
  }
96
98
  )
97
99
  ] }),
98
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
100
+ /* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "handle", data: collection, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
99
101
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
100
102
  /* @__PURE__ */ jsxs(Text, { size: "small", children: [
101
103
  "/",
102
104
  collection.handle
103
105
  ] })
104
- ] })
106
+ ] }) }),
107
+ /* @__PURE__ */ jsx(
108
+ DisplayExtensionZone,
109
+ {
110
+ model: "collection",
111
+ zone: "general",
112
+ data: collection,
113
+ builtInFieldIds: ["title", "handle"]
114
+ }
115
+ )
105
116
  ] });
106
117
  };
107
118
 
108
119
  // src/pages/collections/collection-detail/components/collection-icon-section/collection-icon-section.tsx
109
120
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
110
121
  import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
122
+ import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
111
123
  import { useTranslation as useTranslation2 } from "react-i18next";
112
124
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
113
125
  var CollectionIconSection = ({
@@ -156,13 +168,14 @@ var CollectionIconSection = ({
156
168
  }
157
169
  ),
158
170
  /* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-muted", children: t("collections.icon.empty.description") })
159
- ] }) })
171
+ ] }) }),
172
+ /* @__PURE__ */ jsx2(DisplayExtensionZone2, { model: "collection", zone: "icon", data: collection })
160
173
  ] });
161
174
  };
162
175
 
163
176
  // src/pages/collections/collection-detail/components/collection-media-section/collection-media-section.tsx
164
177
  import { PencilSquare as PencilSquare3, ThumbnailBadge } from "@medusajs/icons";
165
- import { ListBadge } from "@mercurjs/dashboard-shared";
178
+ import { DisplayExtensionZone as DisplayExtensionZone3, ListBadge } from "@mercurjs/dashboard-shared";
166
179
  import { Container as Container3, Heading as Heading3, Text as Text3, Tooltip } from "@medusajs/ui";
167
180
  import { useTranslation as useTranslation3 } from "react-i18next";
168
181
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -225,13 +238,15 @@ var CollectionMediaSection = ({
225
238
  }
226
239
  ),
227
240
  /* @__PURE__ */ jsx3(Text3, { size: "small", className: "text-ui-fg-muted", children: t("collections.media.empty.description") })
228
- ] }) })
241
+ ] }) }),
242
+ /* @__PURE__ */ jsx3(DisplayExtensionZone3, { model: "collection", zone: "media", data: collection })
229
243
  ] });
230
244
  };
231
245
 
232
246
  // src/pages/collections/collection-detail/components/collection-product-section/collection-product-section.tsx
233
247
  import { PencilSquare as PencilSquare4, Plus, Trash as Trash2 } from "@medusajs/icons";
234
248
  import { Checkbox, Container as Container4, Heading as Heading4, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
249
+ import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
235
250
  import { keepPreviousData } from "@tanstack/react-query";
236
251
  import { createColumnHelper } from "@tanstack/react-table";
237
252
  import { useMemo } from "react";
@@ -352,7 +367,8 @@ var CollectionProductSection = ({
352
367
  message: t("collections.products.list.noRecordsMessage")
353
368
  }
354
369
  }
355
- )
370
+ ),
371
+ /* @__PURE__ */ jsx4(DisplayExtensionZone4, { model: "collection", zone: "products", data: collection })
356
372
  ] });
357
373
  };
358
374
  var ProductActions = ({
@@ -480,12 +496,12 @@ var Root = ({ children }) => {
480
496
  if (isError) {
481
497
  throw error;
482
498
  }
483
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children }) : /* @__PURE__ */ jsxs5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children: [
499
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children }) : /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "collections.detail.main", data: collection, children: [
484
500
  /* @__PURE__ */ jsx5(CollectionGeneralSection, { collection }),
485
501
  /* @__PURE__ */ jsx5(CollectionMediaSection, { collection }),
486
502
  /* @__PURE__ */ jsx5(CollectionIconSection, { collection }),
487
503
  /* @__PURE__ */ jsx5(CollectionProductSection, { collection })
488
- ] });
504
+ ] }) });
489
505
  };
490
506
  var CollectionDetailPage = Object.assign(Root, {
491
507
  GeneralSection: CollectionGeneralSection,
@@ -23,12 +23,14 @@ import {
23
23
 
24
24
  // src/pages/customers/customer-list/customer-list.tsx
25
25
  import { Children as Children2 } from "react";
26
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
26
27
 
27
28
  // src/pages/customers/customer-list/components/customer-list-table/customer-list-table.tsx
28
29
  import { PencilSquare } from "@medusajs/icons";
29
30
  import { Button, Container, Heading } from "@medusajs/ui";
30
31
  import { keepPreviousData } from "@tanstack/react-query";
31
32
  import { createColumnHelper } from "@tanstack/react-table";
33
+ import { useExtendableTable } from "@mercurjs/dashboard-shared";
32
34
  import { useMemo, Children } from "react";
33
35
  import { useTranslation } from "react-i18next";
34
36
  import { Link } from "react-router-dom";
@@ -69,8 +71,12 @@ var CustomerListDataTable = () => {
69
71
  placeholderData: keepPreviousData
70
72
  }
71
73
  );
72
- const filters = useCustomerTableFilters();
73
- const columns = useColumns();
74
+ const baseFilters = useCustomerTableFilters();
75
+ const { columns, filters: extFilters } = useColumns();
76
+ const filters = useMemo(
77
+ () => [...baseFilters, ...extFilters],
78
+ [baseFilters, extFilters]
79
+ );
74
80
  const { table } = useDataTable({
75
81
  data: customers ?? [],
76
82
  columns,
@@ -139,23 +145,28 @@ var CustomerActions = ({
139
145
  };
140
146
  var columnHelper = createColumnHelper();
141
147
  var useColumns = () => {
142
- const columns = useCustomerTableColumns();
143
- return useMemo(
148
+ const base = useCustomerTableColumns();
149
+ const { columns: extended, filters } = useExtendableTable({
150
+ model: "customer",
151
+ columns: base
152
+ });
153
+ const columns = useMemo(
144
154
  () => [
145
- ...columns,
155
+ ...extended,
146
156
  columnHelper.display({
147
157
  id: "actions",
148
158
  cell: ({ row }) => /* @__PURE__ */ jsx(CustomerActions, { customer: row.original })
149
159
  })
150
160
  ],
151
- [columns]
161
+ [extended]
152
162
  );
163
+ return { columns, filters };
153
164
  };
154
165
 
155
166
  // src/pages/customers/customer-list/customer-list.tsx
156
167
  import { jsx as jsx2 } from "react/jsx-runtime";
157
168
  var Root = ({ children }) => {
158
- return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerListTable, {}) });
169
+ return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "customers.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerListTable, {}) }) });
159
170
  };
160
171
  var CustomerListPage = Object.assign(Root, {
161
172
  Table: CustomerListTable,
@@ -30,10 +30,12 @@ import {
30
30
  // src/pages/customer-groups/customer-group-detail/customer-group-detail.tsx
31
31
  import { Children } from "react";
32
32
  import { useLoaderData, useParams } from "react-router-dom";
33
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
33
34
 
34
35
  // src/pages/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx
35
36
  import { PencilSquare, Trash } from "@medusajs/icons";
36
37
  import { Button, Checkbox, Container, Heading, usePrompt } from "@medusajs/ui";
38
+ import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
37
39
  import { createColumnHelper } from "@tanstack/react-table";
38
40
  import { useMemo, useState } from "react";
39
41
  import { useTranslation } from "react-i18next";
@@ -131,6 +133,14 @@ var CustomerGroupCustomerSection = ({
131
133
  message: t("customerGroups.customers.list.noRecordsMessage")
132
134
  }
133
135
  }
136
+ ),
137
+ /* @__PURE__ */ jsx(
138
+ DisplayExtensionZone,
139
+ {
140
+ model: "customer_group",
141
+ zone: "customers",
142
+ data: group
143
+ }
134
144
  )
135
145
  ] });
136
146
  };
@@ -235,6 +245,7 @@ var useColumns = () => {
235
245
  // src/pages/customer-groups/customer-group-detail/components/customer-group-general-section/customer-group-general-section.tsx
236
246
  import { PencilSquare as PencilSquare2, Trash as Trash2 } from "@medusajs/icons";
237
247
  import { Container as Container2, Heading as Heading2, Text, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
248
+ import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
238
249
  import { useTranslation as useTranslation2 } from "react-i18next";
239
250
  import { useNavigate } from "react-router-dom";
240
251
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -273,7 +284,7 @@ var CustomerGroupGeneralSection = ({
273
284
  };
274
285
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "customer-group-general-section", children: [
275
286
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-group-general-section-header", children: [
276
- /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }),
287
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "name", data: group, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }) }),
277
288
  /* @__PURE__ */ jsx2(
278
289
  ActionMenu,
279
290
  {
@@ -301,14 +312,23 @@ var CustomerGroupGeneralSection = ({
301
312
  }
302
313
  )
303
314
  ] }),
304
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
315
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "customers", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
305
316
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-customers-label", children: t("customers.domain") }),
306
317
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-customers-value", children: group.customers?.length || "-" })
307
- ] }),
308
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
318
+ ] }) }),
319
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "owner", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
309
320
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-owner-label", children: t("fields.owner") }),
310
321
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-owner-value", children: group.seller?.name || "-" })
311
- ] })
322
+ ] }) }),
323
+ /* @__PURE__ */ jsx2(
324
+ DisplayExtensionZone2,
325
+ {
326
+ model: "customer_group",
327
+ zone: "general",
328
+ data: group,
329
+ builtInFieldIds: ["name", "customers", "owner"]
330
+ }
331
+ )
312
332
  ] });
313
333
  };
314
334
 
@@ -333,10 +353,10 @@ var Root = ({ children }) => {
333
353
  if (isError) {
334
354
  throw error;
335
355
  }
336
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children: [
356
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "customer-groups.detail.main", data: customer_group, children: [
337
357
  /* @__PURE__ */ jsx3(CustomerGroupGeneralSection, { group: customer_group }),
338
358
  /* @__PURE__ */ jsx3(CustomerGroupCustomerSection, { group: customer_group })
339
- ] });
359
+ ] }) });
340
360
  };
341
361
  var CustomerGroupDetailPage = Object.assign(Root, {
342
362
  GeneralSection: CustomerGroupGeneralSection,
@@ -34,6 +34,7 @@ import {
34
34
  // src/pages/campaigns/campaign-detail/campaign-detail.tsx
35
35
  import { Children } from "react";
36
36
  import { useLoaderData, useParams } from "react-router-dom";
37
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
37
38
 
38
39
  // src/pages/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx
39
40
  import { ChartPie, PencilSquare } from "@medusajs/icons";
@@ -120,6 +121,7 @@ var CampaignBudget = ({ campaign }) => {
120
121
  import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
121
122
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
122
123
  import { useTranslation as useTranslation2 } from "react-i18next";
124
+ import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
123
125
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
124
126
  var CampaignConfigurationSection = ({
125
127
  campaign
@@ -154,6 +156,14 @@ var CampaignConfigurationSection = ({
154
156
  showTime: true,
155
157
  "data-testid": "campaign-configuration-section-date-range"
156
158
  }
159
+ ),
160
+ /* @__PURE__ */ jsx2(
161
+ DisplayExtensionZone,
162
+ {
163
+ model: "campaign",
164
+ zone: "configuration",
165
+ data: campaign
166
+ }
157
167
  )
158
168
  ] });
159
169
  };
@@ -171,6 +181,7 @@ import {
171
181
  } from "@medusajs/ui";
172
182
  import { useTranslation as useTranslation3 } from "react-i18next";
173
183
  import { useNavigate } from "react-router-dom";
184
+ import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
174
185
 
175
186
  // src/pages/campaigns/common/utils/campaign-status.ts
176
187
  import { isAfter, isBefore } from "date-fns";
@@ -202,6 +213,13 @@ var statusColor = (status) => {
202
213
 
203
214
  // src/pages/campaigns/campaign-detail/components/campaign-general-section/campaign-general-section.tsx
204
215
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
216
+ var GENERAL_FIELD_IDS = [
217
+ "name",
218
+ "status",
219
+ "campaign_identifier",
220
+ "description",
221
+ "currency_code"
222
+ ];
205
223
  var CampaignGeneralSection = ({
206
224
  campaign
207
225
  }) => {
@@ -238,9 +256,9 @@ var CampaignGeneralSection = ({
238
256
  const status = campaignStatus(campaign);
239
257
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "campaign-general-section-container", children: [
240
258
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-general-section-header", children: [
241
- /* @__PURE__ */ jsx3(Heading3, { "data-testid": "campaign-general-section-name", children: campaign.name }),
259
+ /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "name", data: campaign, children: /* @__PURE__ */ jsx3(Heading3, { "data-testid": "campaign-general-section-name", children: campaign.name }) }),
242
260
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
243
- /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), "data-testid": "campaign-general-section-status", children: t(`campaigns.status.${status}`) }),
261
+ /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "status", data: campaign, children: /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), "data-testid": "campaign-general-section-status", children: t(`campaigns.status.${status}`) }) }),
244
262
  /* @__PURE__ */ jsx3(
245
263
  ActionMenu,
246
264
  {
@@ -269,21 +287,30 @@ var CampaignGeneralSection = ({
269
287
  )
270
288
  ] })
271
289
  ] }),
272
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-identifier", children: [
290
+ /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "campaign_identifier", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-identifier", children: [
273
291
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-identifier-label", children: t("campaigns.fields.identifier") }),
274
292
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-identifier-value", children: campaign.campaign_identifier })
275
- ] }),
276
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-description", children: [
293
+ ] }) }),
294
+ /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "description", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-description", children: [
277
295
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-description-label", children: t("fields.description") }),
278
296
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-description-value", children: campaign.description || "-" })
279
- ] }),
280
- campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-currency", children: [
297
+ ] }) }),
298
+ campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsx3(DisplayField, { model: "campaign", zone: "general", id: "currency_code", data: campaign, children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-currency", children: [
281
299
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-currency-label", children: t("fields.currency") }),
282
300
  /* @__PURE__ */ jsxs3("div", { "data-testid": "campaign-general-section-currency-value", children: [
283
301
  /* @__PURE__ */ jsx3(Badge, { size: "xsmall", "data-testid": "campaign-general-section-currency-badge", children: campaign?.budget.currency_code }),
284
302
  /* @__PURE__ */ jsx3(Text2, { className: "inline pl-3", size: "small", leading: "compact", "data-testid": "campaign-general-section-currency-name", children: currencies[campaign?.budget.currency_code?.toUpperCase()]?.name })
285
303
  ] })
286
- ] })
304
+ ] }) }),
305
+ /* @__PURE__ */ jsx3(
306
+ DisplayExtensionZone2,
307
+ {
308
+ model: "campaign",
309
+ zone: "general",
310
+ data: campaign,
311
+ builtInFieldIds: GENERAL_FIELD_IDS
312
+ }
313
+ )
287
314
  ] });
288
315
  };
289
316
 
@@ -294,6 +321,7 @@ import { createColumnHelper } from "@tanstack/react-table";
294
321
  import { useMemo, useState } from "react";
295
322
  import { useTranslation as useTranslation4 } from "react-i18next";
296
323
  import { Link } from "react-router-dom";
324
+ import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
297
325
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
298
326
  var PAGE_SIZE = 10;
299
327
  var CampaignPromotionSection = ({
@@ -381,7 +409,8 @@ var CampaignPromotionSection = ({
381
409
  },
382
410
  "data-testid": "campaign-promotion-section-table"
383
411
  }
384
- )
412
+ ),
413
+ /* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "campaign", zone: "promotions", data: campaign })
385
414
  ] });
386
415
  };
387
416
  var PromotionActions = ({
@@ -566,15 +595,15 @@ var Root = ({ children }) => {
566
595
  throw error;
567
596
  }
568
597
  return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children: [
569
- /* @__PURE__ */ jsxs6(TwoColumnPage.Main, { children: [
598
+ /* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.main", data: campaign, children: [
570
599
  /* @__PURE__ */ jsx6(CampaignGeneralSection, { campaign }),
571
600
  /* @__PURE__ */ jsx6(CampaignPromotionSection, { campaign })
572
- ] }),
573
- /* @__PURE__ */ jsxs6(TwoColumnPage.Sidebar, { children: [
601
+ ] }) }),
602
+ /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "campaigns.detail.side", data: campaign, children: [
574
603
  /* @__PURE__ */ jsx6(CampaignConfigurationSection, { campaign }),
575
604
  /* @__PURE__ */ jsx6(CampaignSpend, { campaign }),
576
605
  /* @__PURE__ */ jsx6(CampaignBudget, { campaign })
577
- ] })
606
+ ] }) })
578
607
  ] });
579
608
  };
580
609
  var CampaignDetailPage = Object.assign(Root, {
@@ -38,6 +38,7 @@ import {
38
38
 
39
39
  // src/pages/categories/category-list/category-list.tsx
40
40
  import { Children as Children3 } from "react";
41
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
41
42
 
42
43
  // src/pages/categories/category-list/components/category-list-table/category-list-table.tsx
43
44
  import { Children as Children2 } from "react";
@@ -76,6 +77,7 @@ var CategoryListHeader = ({
76
77
 
77
78
  // src/pages/categories/category-list/components/category-list-table/category-list-data-table.tsx
78
79
  import { PencilSquare, Trash } from "@medusajs/icons";
80
+ import { useExtendableTable } from "@mercurjs/dashboard-shared";
79
81
  import { keepPreviousData } from "@tanstack/react-query";
80
82
  import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
81
83
  import { useMemo as useMemo2 } from "react";
@@ -274,9 +276,13 @@ var CategoryRowActions = ({
274
276
  var columnHelper2 = createColumnHelper2();
275
277
  var useColumns = () => {
276
278
  const base = useCategoryTableColumns();
279
+ const { columns: extended } = useExtendableTable({
280
+ model: "category",
281
+ columns: base
282
+ });
277
283
  return useMemo2(
278
284
  () => [
279
- ...base,
285
+ ...extended,
280
286
  columnHelper2.display({
281
287
  id: "actions",
282
288
  cell: ({ row }) => {
@@ -284,7 +290,7 @@ var useColumns = () => {
284
290
  }
285
291
  })
286
292
  ],
287
- [base]
293
+ [extended]
288
294
  );
289
295
  };
290
296
 
@@ -300,7 +306,7 @@ var CategoryListTable = ({ children }) => {
300
306
  // src/pages/categories/category-list/category-list.tsx
301
307
  import { jsx as jsx5 } from "react/jsx-runtime";
302
308
  var Root = ({ children }) => {
303
- return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CategoryListTable, {}) });
309
+ return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx5(WidgetZone, { id: "categories.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CategoryListTable, {}) }) });
304
310
  };
305
311
  var CategoryListPage = Object.assign(Root, {
306
312
  Table: CategoryListTable,
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-U5MJIHLY.js";
10
10
  import {
11
11
  useProductTableColumns
12
- } from "./chunk-OYZIFLLC.js";
12
+ } from "./chunk-I5HY5Q3K.js";
13
13
  import {
14
14
  useProductTableFilters
15
- } from "./chunk-4346EIRG.js";
15
+ } from "./chunk-LGOPKYNG.js";
16
16
  import {
17
17
  useProductTableQuery
18
18
  } from "./chunk-H7NIKMPE.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PHOCVOZ5.js";
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-DSTHXHJ5.js";
9
+ } from "./chunk-VYSB4CTB.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-NBMM2TZK.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-K6RZE3F7.js";
4
4
  import {
5
5
  useProductTableColumns
6
- } from "./chunk-OYZIFLLC.js";
6
+ } from "./chunk-I5HY5Q3K.js";
7
7
  import {
8
8
  useProductTableFilters
9
- } from "./chunk-4346EIRG.js";
9
+ } from "./chunk-LGOPKYNG.js";
10
10
  import {
11
11
  useProductTableQuery
12
12
  } from "./chunk-H7NIKMPE.js";