@mercurjs/admin 2.2.0-canary.47 → 2.2.0-canary.49

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 (42) hide show
  1. package/dist/{add-campaign-promotions-BC7ISVHX.js → add-campaign-promotions-QQUFYFRH.js} +3 -3
  2. package/dist/{campaign-detail-KC3F4S57.js → campaign-detail-PF3LUUZU.js} +4 -4
  3. package/dist/{campaign-edit-FCFTVZ7A.js → campaign-edit-6CIGS4ZU.js} +1 -0
  4. package/dist/{category-create-GA4QBQDP.js → category-create-NTSIOKLK.js} +1 -1
  5. package/dist/{category-detail-P5NZLIVR.js → category-detail-NQIXS2WH.js} +2 -2
  6. package/dist/{category-edit-UFRYILZF.js → category-edit-4PGWERPJ.js} +1 -0
  7. package/dist/{category-list-O7KNSXRZ.js → category-list-5XGK4PEB.js} +2 -2
  8. package/dist/{chunk-2NHJ3D6N.js → chunk-3RRHQY24.js} +2 -2
  9. package/dist/{chunk-AZDSIOYG.js → chunk-7CQD5AQ6.js} +1 -5
  10. package/dist/{chunk-O6OZASFC.js → chunk-GVPKRQWI.js} +1 -5
  11. package/dist/{chunk-BGQCG4S5.js → chunk-KQVRWXAL.js} +1 -1
  12. package/dist/{chunk-YYRDUEYJ.js → chunk-MVRIYUOU.js} +1 -1
  13. package/dist/{chunk-WR7ZTUOY.js → chunk-N2CMOV3N.js} +1 -1
  14. package/dist/{chunk-QVQJOMEY.js → chunk-NASXWD7N.js} +1 -1
  15. package/dist/{chunk-4SPHSUWU.js → chunk-NI4FAFNL.js} +1 -1
  16. package/dist/{chunk-YR6Q3TKU.js → chunk-OAGTPKC5.js} +1 -1
  17. package/dist/{chunk-655ECEGW.js → chunk-OPE24DZA.js} +1 -1
  18. package/dist/{chunk-QZETW7FG.js → chunk-Q2CJGCIA.js} +21 -20
  19. package/dist/{chunk-UQZBS67R.js → chunk-WV4SPFOD.js} +1 -1
  20. package/dist/{chunk-KHW3GRN4.js → chunk-YPM6XXSO.js} +2 -0
  21. package/dist/{chunk-RCI2GQZY.js → chunk-ZCQMFJ4X.js} +1 -1
  22. package/dist/{collection-detail-K4L3X45M.js → collection-detail-MQ7ZH6OT.js} +1 -1
  23. package/dist/{collection-edit-VD57ORSY.js → collection-edit-ZFAECPWC.js} +1 -0
  24. package/dist/{customer-edit-MHSXLB6U.js → customer-edit-RAWO66UL.js} +1 -0
  25. package/dist/{customer-group-edit-LXPAPBZ7.js → customer-group-edit-E7JX2L4J.js} +1 -0
  26. package/dist/{edit-inventory-item-4J3KFOUC.js → edit-inventory-item-QPWV4MSP.js} +1 -0
  27. package/dist/{edit-reservation-VGB7GCD5.js → edit-reservation-PTUSCC6C.js} +1 -0
  28. package/dist/index.js +31 -31
  29. package/dist/{order-edit-billing-address-3OMGU4CK.js → order-edit-billing-address-ZAQ3FPRT.js} +1 -1
  30. package/dist/pages/index.js +14 -14
  31. package/dist/{price-list-edit-UADWQDT2.js → price-list-edit-4JPSL2NL.js} +1 -0
  32. package/dist/{product-create-3LKSDOHR.js → product-create-KCMW6PCB.js} +3 -3
  33. package/dist/{product-detail-N7YTQ45T.js → product-detail-A6DZWYEL.js} +1 -1
  34. package/dist/{product-media-SHU5ULOK.js → product-media-P57SRDNX.js} +2 -2
  35. package/dist/{product-organization-JSYFCGNL.js → product-organization-QNCCL277.js} +1 -1
  36. package/dist/{promotion-detail-GP5KBQB7.js → promotion-detail-H6S4JYYD.js} +3 -3
  37. package/dist/{promotion-edit-details-W7XDJ4OD.js → promotion-edit-details-GXA4FDTK.js} +1 -0
  38. package/dist/{promotion-list-2MUOOIOJ.js → promotion-list-A3V4W5DY.js} +4 -4
  39. package/dist/{reset-password-C347RVO7.js → reset-password-7KNQD6OM.js} +1 -1
  40. package/dist/{store-edit-GIKORSX3.js → store-edit-HABD7SAL.js} +3 -2
  41. package/dist/{tax-region-create-EGMJMBYE.js → tax-region-create-SKBBBZXJ.js} +1 -1
  42. package/package.json +6 -6
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-YR6Q3TKU.js";
4
+ } from "./chunk-OAGTPKC5.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
8
- import "./chunk-WR7ZTUOY.js";
8
+ import "./chunk-N2CMOV3N.js";
9
9
  import "./chunk-JHIMVLB2.js";
10
10
  import "./chunk-FMFVTERD.js";
11
11
  import "./chunk-DB6ANJBO.js";
12
12
  import "./chunk-PHOCVOZ5.js";
13
- import "./chunk-QZETW7FG.js";
13
+ import "./chunk-Q2CJGCIA.js";
14
14
  import "./chunk-TKGWSUEI.js";
15
15
  import {
16
16
  KeyboundForm
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  CAMPAIGN_DETAIL_FIELDS,
3
3
  CampaignDetailPage
4
- } from "./chunk-BGQCG4S5.js";
5
- import "./chunk-YR6Q3TKU.js";
4
+ } from "./chunk-KQVRWXAL.js";
5
+ import "./chunk-OAGTPKC5.js";
6
6
  import "./chunk-S2WEYEQR.js";
7
7
  import "./chunk-RK5N3XIX.js";
8
- import "./chunk-WR7ZTUOY.js";
8
+ import "./chunk-N2CMOV3N.js";
9
9
  import "./chunk-JHIMVLB2.js";
10
10
  import "./chunk-FMFVTERD.js";
11
11
  import "./chunk-DB6ANJBO.js";
12
12
  import "./chunk-PHOCVOZ5.js";
13
- import "./chunk-QZETW7FG.js";
13
+ import "./chunk-Q2CJGCIA.js";
14
14
  import "./chunk-IQPN4PZJ.js";
15
15
  import "./chunk-E74OUNA3.js";
16
16
  import "./chunk-FQERBIVS.js";
@@ -49,6 +49,7 @@ var EditCampaignForm = ({ campaign }) => {
49
49
  const form = useExtendableForm({
50
50
  schema: EditCampaignSchema,
51
51
  model: "campaign",
52
+ zone: "edit",
52
53
  data: campaign,
53
54
  defaultValues: {
54
55
  name: campaign.name || "",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CategoryCreate
3
- } from "./chunk-O6OZASFC.js";
3
+ } from "./chunk-GVPKRQWI.js";
4
4
  import "./chunk-XLA2CNCW.js";
5
5
  import "./chunk-BW7BDHZV.js";
6
6
  import "./chunk-Y456KVIN.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  CategoryDetailPage
3
- } from "./chunk-QVQJOMEY.js";
3
+ } from "./chunk-NASXWD7N.js";
4
4
  import "./chunk-7AV5EJJ5.js";
5
- import "./chunk-AZDSIOYG.js";
5
+ import "./chunk-7CQD5AQ6.js";
6
6
  import "./chunk-Y456KVIN.js";
7
7
  import "./chunk-QJCUPZZQ.js";
8
8
  import "./chunk-I5HY5Q3K.js";
@@ -55,6 +55,7 @@ var EditCategoryForm = ({ category }) => {
55
55
  const form = useExtendableForm({
56
56
  schema: EditCategorySchema,
57
57
  model: "category",
58
+ zone: "edit",
58
59
  data: category,
59
60
  defaultValues: {
60
61
  name: category.name,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CategoryListPage
3
- } from "./chunk-YYRDUEYJ.js";
4
- import "./chunk-AZDSIOYG.js";
3
+ } from "./chunk-MVRIYUOU.js";
4
+ import "./chunk-7CQD5AQ6.js";
5
5
  import "./chunk-JHIMVLB2.js";
6
6
  import "./chunk-Y456KVIN.js";
7
7
  import "./chunk-QJCUPZZQ.js";
@@ -105,11 +105,11 @@ var ConfirmPrompt = ({
105
105
  await onConfirm(showNoteField && trimmed ? trimmed : void 0);
106
106
  };
107
107
  return /* @__PURE__ */ jsx(Prompt, { open, onOpenChange: handleOpenChange, variant, children: /* @__PURE__ */ jsxs(Prompt.Content, { children: [
108
- /* @__PURE__ */ jsxs(Prompt.Header, { children: [
108
+ /* @__PURE__ */ jsxs(Prompt.Header, { className: showNoteField ? "pb-6" : void 0, children: [
109
109
  /* @__PURE__ */ jsx(Prompt.Title, { children: title }),
110
110
  description ? /* @__PURE__ */ jsx(Prompt.Description, { children: description }) : null
111
111
  ] }),
112
- showNoteField ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2 px-6 py-4", children: [
112
+ showNoteField ? /* @__PURE__ */ jsxs("div", { className: "border-ui-border-base flex flex-col gap-y-2 border-y px-6 py-4", children: [
113
113
  /* @__PURE__ */ jsxs(Label, { size: "small", weight: "plus", children: [
114
114
  noteLabel,
115
115
  noteOptional ? /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-muted ml-1 font-normal", children: [
@@ -25,11 +25,7 @@ var useDeleteProductCategoryAction = (category) => {
25
25
  }
26
26
  await mutateAsync(void 0, {
27
27
  onSuccess: () => {
28
- toast.success(
29
- t("categories.delete.successToast", {
30
- name: category.name
31
- })
32
- );
28
+ toast.success(t("categories.delete.successToast"));
33
29
  navigate("/categories", {
34
30
  replace: true
35
31
  });
@@ -357,11 +357,7 @@ var CreateCategoryForm = ({
357
357
  },
358
358
  {
359
359
  onSuccess: ({ product_category }) => {
360
- toast.success(
361
- t("categories.create.successToast", {
362
- name: product_category.name
363
- })
364
- );
360
+ toast.success(t("categories.create.successToast"));
365
361
  handleSuccess(`/categories/${product_category.id}`);
366
362
  },
367
363
  onError: (error) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-YR6Q3TKU.js";
4
+ } from "./chunk-OAGTPKC5.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDeleteProductCategoryAction
3
- } from "./chunk-AZDSIOYG.js";
3
+ } from "./chunk-7CQD5AQ6.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-QZETW7FG.js";
3
+ } from "./chunk-Q2CJGCIA.js";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var getPromotionStatusMap = () => ({
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7AV5EJJ5.js";
4
4
  import {
5
5
  useDeleteProductCategoryAction
6
- } from "./chunk-AZDSIOYG.js";
6
+ } from "./chunk-7CQD5AQ6.js";
7
7
  import {
8
8
  getCategoryChildren,
9
9
  getCategoryPath,
@@ -10,7 +10,7 @@ import {
10
10
  decorateVariantsWithDefaultValues,
11
11
  generateVariantsFromAttributes,
12
12
  normalizeProductFormValues
13
- } from "./chunk-655ECEGW.js";
13
+ } from "./chunk-OPE24DZA.js";
14
14
  import {
15
15
  HandleInput
16
16
  } from "./chunk-HJ56YXBU.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-WR7ZTUOY.js";
3
+ } from "./chunk-N2CMOV3N.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AJLGY3LQ.js";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-QZETW7FG.js";
6
+ } from "./chunk-Q2CJGCIA.js";
7
7
  import {
8
8
  require_dist
9
9
  } from "./chunk-VYSB4CTB.js";
@@ -9436,21 +9436,21 @@ var en_default = {
9436
9436
  },
9437
9437
  confirmPrompt: {
9438
9438
  title: "Confirm request",
9439
- description: "You are about to confirm this product request. Once confirmed, the product will appear on the storefront. Only products with stock levels and prices set will be visible.",
9440
- noteLabel: "Notes for store",
9439
+ description: "You are about to confirm this product update request. Once confirmed, any offers created for this product will appear on the storefront. Only offers with stock levels and prices set will be visible.",
9440
+ noteLabel: "Note for store",
9441
9441
  notePlaceholder: "Specify changes you made or additional requests"
9442
9442
  },
9443
9443
  requestUpdatePrompt: {
9444
9444
  title: "Request update",
9445
- description: "Request update to this product before publishing. Add notes to explain what needs to be updated.",
9446
- noteLabel: "Notes for store",
9445
+ description: "Request update to this product before publishing. Add note to explain what needs to be updated.",
9446
+ noteLabel: "Note for store",
9447
9447
  notePlaceholder: "Describe what needs to be updated (e.g., missing images, incorrect price, incomplete description)",
9448
9448
  send: "Send"
9449
9449
  },
9450
9450
  rejectPrompt: {
9451
9451
  title: "Reject request",
9452
9452
  description: "You are about to reject this product request.",
9453
- noteLabel: "Notes for store",
9453
+ noteLabel: "Note for store",
9454
9454
  notePlaceholder: "Explain why you reject the request",
9455
9455
  confirm: "Reject"
9456
9456
  },
@@ -9470,16 +9470,16 @@ var en_default = {
9470
9470
  reject: "Reject"
9471
9471
  },
9472
9472
  confirmPrompt: {
9473
- title: "Confirm update request",
9474
- description: "You are about to confirm this product update request. Once confirmed, the changes will be applied to the product and published on the storefront.",
9475
- noteLabel: "Notes for store",
9476
- notePlaceholder: "Add an optional note for the store"
9473
+ title: "Confirm request",
9474
+ description: "You are about to confirm this product update request. Once confirmed, the product will be updated on the storefront.",
9475
+ noteLabel: "Note for store",
9476
+ notePlaceholder: "Specify changes you made or additional requests"
9477
9477
  },
9478
9478
  rejectPrompt: {
9479
- title: "Reject update request",
9480
- description: "You are about to reject this product update request. The requested changes will be discarded.",
9481
- noteLabel: "Notes for store",
9482
- notePlaceholder: "Explain why you reject the update request",
9479
+ title: "Reject request",
9480
+ description: "You are about to reject this product request.",
9481
+ noteLabel: "Note for store",
9482
+ notePlaceholder: "Explain why you reject the request or suggest changes",
9483
9483
  confirm: "Reject"
9484
9484
  },
9485
9485
  toast: {
@@ -9709,6 +9709,7 @@ var en_default = {
9709
9709
  removeProductsWarning_other: "You are about to remove {{count}} products from the collection. This action cannot be undone.",
9710
9710
  products: {
9711
9711
  list: {
9712
+ noRecordsTitle: "No products yet",
9712
9713
  noRecordsMessage: "There are no products in the collection."
9713
9714
  },
9714
9715
  add: {
@@ -9786,7 +9787,7 @@ var en_default = {
9786
9787
  details: "Details",
9787
9788
  organize: "Organize Ranking"
9788
9789
  },
9789
- successToast: "Category {{name}} was successfully created."
9790
+ successToast: "Category was successfully created."
9790
9791
  },
9791
9792
  edit: {
9792
9793
  header: "Edit Category",
@@ -9795,19 +9796,19 @@ var en_default = {
9795
9796
  },
9796
9797
  delete: {
9797
9798
  confirmation: "You are about to delete the category {{name}}. This action cannot be undone.",
9798
- successToast: "Category {{name}} was successfully deleted."
9799
+ successToast: "Category was successfully deleted."
9799
9800
  },
9800
9801
  products: {
9801
9802
  add: {
9802
9803
  disabledTooltip: "The product is already in this category.",
9803
- successToast_one: "Added {{count}} product to the category.",
9804
- successToast_other: "Added {{count}} products to the category."
9804
+ successToast_one: "Product was successfully added to the category.",
9805
+ successToast_other: "Products were successfully added to the category."
9805
9806
  },
9806
9807
  remove: {
9807
9808
  confirmation_one: "You are about to remove {{count}} product from the category. This action cannot be undone.",
9808
9809
  confirmation_other: "You are about to remove {{count}} products from the category. This action cannot be undone.",
9809
- successToast_one: "Removed {{count}} product from the category.",
9810
- successToast_other: "Removed {{count}} products from the category."
9810
+ successToast_one: "Product was successfully removed from the category.",
9811
+ successToast_other: "Products were successfully removed from the category."
9811
9812
  },
9812
9813
  list: {
9813
9814
  noRecordsTitle: "No products yet",
@@ -9817,7 +9818,7 @@ var en_default = {
9817
9818
  organize: {
9818
9819
  header: "Organize",
9819
9820
  action: "Edit ranking",
9820
- successToast: "Category ranking was updated successfully."
9821
+ successToast: "Ranking was successfully updated."
9821
9822
  },
9822
9823
  media: {
9823
9824
  label: "Media",
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RK5N3XIX.js";
4
4
  import {
5
5
  getPromotionStatus
6
- } from "./chunk-WR7ZTUOY.js";
6
+ } from "./chunk-N2CMOV3N.js";
7
7
  import {
8
8
  formatPercentage
9
9
  } from "./chunk-QDPLZDMX.js";
@@ -372,6 +372,8 @@ var CollectionProductSection = ({
372
372
  }
373
373
  ],
374
374
  noRecords: {
375
+ icon: null,
376
+ title: t("collections.products.list.noRecordsTitle"),
375
377
  message: t("collections.products.list.noRecordsMessage")
376
378
  }
377
379
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-YR6Q3TKU.js";
4
+ } from "./chunk-OAGTPKC5.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CollectionDetailPage
3
- } from "./chunk-KHW3GRN4.js";
3
+ } from "./chunk-YPM6XXSO.js";
4
4
  import "./chunk-VM56ZITS.js";
5
5
  import "./chunk-I5HY5Q3K.js";
6
6
  import "./chunk-RMB7MPIT.js";
@@ -45,6 +45,7 @@ var EditCollectionForm = ({ collection }) => {
45
45
  const form = useExtendableForm({
46
46
  schema: EditCollectionSchema,
47
47
  model: "collection",
48
+ zone: "edit",
48
49
  data: collection,
49
50
  defaultValues: {
50
51
  title: collection.title,
@@ -48,6 +48,7 @@ var EditCustomerForm = ({ customer }) => {
48
48
  const form = useExtendableForm({
49
49
  schema: EditCustomerSchema,
50
50
  model: "customer",
51
+ zone: "edit",
51
52
  data: customer,
52
53
  defaultValues: {
53
54
  email: customer.email || "",
@@ -44,6 +44,7 @@ var EditCustomerGroupForm = ({
44
44
  const form = useExtendableForm({
45
45
  schema: EditCustomerGroupSchema,
46
46
  model: "customer_group",
47
+ zone: "edit",
47
48
  data: group,
48
49
  defaultValues: {
49
50
  name: group.name || ""
@@ -79,6 +79,7 @@ var EditInventoryItemForm = ({ item }) => {
79
79
  const form = useExtendableForm({
80
80
  schema: EditInventoryItemSchema,
81
81
  model: "inventory_item",
82
+ zone: "edit",
82
83
  data: item,
83
84
  defaultValues: getDefaultValues(item)
84
85
  });
@@ -74,6 +74,7 @@ var EditReservationForm = ({
74
74
  const form = useExtendableForm({
75
75
  schema: EditReservationSchema,
76
76
  model: "reservation",
77
+ zone: "edit",
77
78
  data: reservation,
78
79
  defaultValues: getDefaultValues(reservation)
79
80
  });
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-KDE4HKH2.js";
25
25
  import {
26
26
  I18n
27
- } from "./chunk-QZETW7FG.js";
27
+ } from "./chunk-Q2CJGCIA.js";
28
28
  import {
29
29
  SwitchBox
30
30
  } from "./chunk-2EME4AWX.js";
@@ -3496,7 +3496,7 @@ function getRouteMap({
3496
3496
  children: [
3497
3497
  {
3498
3498
  path: "create",
3499
- lazy: () => import("./product-create-3LKSDOHR.js")
3499
+ lazy: () => import("./product-create-KCMW6PCB.js")
3500
3500
  },
3501
3501
  {
3502
3502
  path: "bulk-edit",
@@ -3508,7 +3508,7 @@ function getRouteMap({
3508
3508
  path: ":id",
3509
3509
  errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3510
3510
  lazy: async () => {
3511
- const { Breadcrumb, loader } = await import("./product-detail-N7YTQ45T.js");
3511
+ const { Breadcrumb, loader } = await import("./product-detail-A6DZWYEL.js");
3512
3512
  return {
3513
3513
  Component: Outlet4,
3514
3514
  loader,
@@ -3520,7 +3520,7 @@ function getRouteMap({
3520
3520
  children: [
3521
3521
  {
3522
3522
  path: "",
3523
- lazy: () => import("./product-detail-N7YTQ45T.js"),
3523
+ lazy: () => import("./product-detail-A6DZWYEL.js"),
3524
3524
  children: [
3525
3525
  {
3526
3526
  path: "edit",
@@ -3552,7 +3552,7 @@ function getRouteMap({
3552
3552
  },
3553
3553
  {
3554
3554
  path: "organization",
3555
- lazy: () => import("./product-organization-JSYFCGNL.js")
3555
+ lazy: () => import("./product-organization-QNCCL277.js")
3556
3556
  },
3557
3557
  {
3558
3558
  path: "shipping-profile",
@@ -3560,7 +3560,7 @@ function getRouteMap({
3560
3560
  },
3561
3561
  {
3562
3562
  path: "media",
3563
- lazy: () => import("./product-media-SHU5ULOK.js")
3563
+ lazy: () => import("./product-media-P57SRDNX.js")
3564
3564
  },
3565
3565
  {
3566
3566
  path: "variants/create",
@@ -3614,11 +3614,11 @@ function getRouteMap({
3614
3614
  children: [
3615
3615
  {
3616
3616
  path: "",
3617
- lazy: () => import("./category-list-O7KNSXRZ.js"),
3617
+ lazy: () => import("./category-list-5XGK4PEB.js"),
3618
3618
  children: [
3619
3619
  {
3620
3620
  path: "create",
3621
- lazy: () => import("./category-create-GA4QBQDP.js")
3621
+ lazy: () => import("./category-create-NTSIOKLK.js")
3622
3622
  },
3623
3623
  {
3624
3624
  path: "organize",
@@ -3629,7 +3629,7 @@ function getRouteMap({
3629
3629
  {
3630
3630
  path: ":id",
3631
3631
  lazy: async () => {
3632
- const { Breadcrumb, loader } = await import("./category-detail-P5NZLIVR.js");
3632
+ const { Breadcrumb, loader } = await import("./category-detail-NQIXS2WH.js");
3633
3633
  return {
3634
3634
  Component: Outlet4,
3635
3635
  loader,
@@ -3641,11 +3641,11 @@ function getRouteMap({
3641
3641
  children: [
3642
3642
  {
3643
3643
  path: "",
3644
- lazy: () => import("./category-detail-P5NZLIVR.js"),
3644
+ lazy: () => import("./category-detail-NQIXS2WH.js"),
3645
3645
  children: [
3646
3646
  {
3647
3647
  path: "edit",
3648
- lazy: () => import("./category-edit-UFRYILZF.js")
3648
+ lazy: () => import("./category-edit-4PGWERPJ.js")
3649
3649
  },
3650
3650
  {
3651
3651
  path: "media",
@@ -3735,7 +3735,7 @@ function getRouteMap({
3735
3735
  },
3736
3736
  {
3737
3737
  path: "billing-address",
3738
- lazy: () => import("./order-edit-billing-address-3OMGU4CK.js")
3738
+ lazy: () => import("./order-edit-billing-address-ZAQ3FPRT.js")
3739
3739
  },
3740
3740
  {
3741
3741
  path: "metadata/edit",
@@ -3756,7 +3756,7 @@ function getRouteMap({
3756
3756
  children: [
3757
3757
  {
3758
3758
  path: "",
3759
- lazy: () => import("./promotion-list-2MUOOIOJ.js")
3759
+ lazy: () => import("./promotion-list-A3V4W5DY.js")
3760
3760
  },
3761
3761
  {
3762
3762
  path: "create",
@@ -3765,7 +3765,7 @@ function getRouteMap({
3765
3765
  {
3766
3766
  path: ":id",
3767
3767
  lazy: async () => {
3768
- const { Breadcrumb, loader } = await import("./promotion-detail-GP5KBQB7.js");
3768
+ const { Breadcrumb, loader } = await import("./promotion-detail-H6S4JYYD.js");
3769
3769
  return {
3770
3770
  Component: Outlet4,
3771
3771
  loader,
@@ -3777,11 +3777,11 @@ function getRouteMap({
3777
3777
  children: [
3778
3778
  {
3779
3779
  path: "",
3780
- lazy: () => import("./promotion-detail-GP5KBQB7.js"),
3780
+ lazy: () => import("./promotion-detail-H6S4JYYD.js"),
3781
3781
  children: [
3782
3782
  {
3783
3783
  path: "edit",
3784
- lazy: () => import("./promotion-edit-details-W7XDJ4OD.js")
3784
+ lazy: () => import("./promotion-edit-details-GXA4FDTK.js")
3785
3785
  },
3786
3786
  {
3787
3787
  path: "add-to-campaign",
@@ -3816,7 +3816,7 @@ function getRouteMap({
3816
3816
  {
3817
3817
  path: ":id",
3818
3818
  lazy: async () => {
3819
- const { Breadcrumb, loader } = await import("./campaign-detail-KC3F4S57.js");
3819
+ const { Breadcrumb, loader } = await import("./campaign-detail-PF3LUUZU.js");
3820
3820
  return {
3821
3821
  Component: Outlet4,
3822
3822
  loader,
@@ -3828,11 +3828,11 @@ function getRouteMap({
3828
3828
  children: [
3829
3829
  {
3830
3830
  path: "",
3831
- lazy: () => import("./campaign-detail-KC3F4S57.js"),
3831
+ lazy: () => import("./campaign-detail-PF3LUUZU.js"),
3832
3832
  children: [
3833
3833
  {
3834
3834
  path: "edit",
3835
- lazy: () => import("./campaign-edit-FCFTVZ7A.js")
3835
+ lazy: () => import("./campaign-edit-6CIGS4ZU.js")
3836
3836
  },
3837
3837
  {
3838
3838
  path: "configuration",
@@ -3844,7 +3844,7 @@ function getRouteMap({
3844
3844
  },
3845
3845
  {
3846
3846
  path: "add-promotions",
3847
- lazy: () => import("./add-campaign-promotions-BC7ISVHX.js")
3847
+ lazy: () => import("./add-campaign-promotions-QQUFYFRH.js")
3848
3848
  }
3849
3849
  ]
3850
3850
  }
@@ -3872,7 +3872,7 @@ function getRouteMap({
3872
3872
  {
3873
3873
  path: ":id",
3874
3874
  lazy: async () => {
3875
- const { Breadcrumb, loader } = await import("./collection-detail-K4L3X45M.js");
3875
+ const { Breadcrumb, loader } = await import("./collection-detail-MQ7ZH6OT.js");
3876
3876
  return {
3877
3877
  Component: Outlet4,
3878
3878
  loader,
@@ -3884,11 +3884,11 @@ function getRouteMap({
3884
3884
  children: [
3885
3885
  {
3886
3886
  path: "",
3887
- lazy: () => import("./collection-detail-K4L3X45M.js"),
3887
+ lazy: () => import("./collection-detail-MQ7ZH6OT.js"),
3888
3888
  children: [
3889
3889
  {
3890
3890
  path: "edit",
3891
- lazy: () => import("./collection-edit-VD57ORSY.js")
3891
+ lazy: () => import("./collection-edit-ZFAECPWC.js")
3892
3892
  },
3893
3893
  {
3894
3894
  path: "media",
@@ -3948,7 +3948,7 @@ function getRouteMap({
3948
3948
  children: [
3949
3949
  {
3950
3950
  path: "edit",
3951
- lazy: () => import("./price-list-edit-UADWQDT2.js")
3951
+ lazy: () => import("./price-list-edit-4JPSL2NL.js")
3952
3952
  },
3953
3953
  {
3954
3954
  path: "configuration",
@@ -4004,7 +4004,7 @@ function getRouteMap({
4004
4004
  children: [
4005
4005
  {
4006
4006
  path: "edit",
4007
- lazy: () => import("./customer-edit-MHSXLB6U.js")
4007
+ lazy: () => import("./customer-edit-RAWO66UL.js")
4008
4008
  },
4009
4009
  {
4010
4010
  path: "create-address",
@@ -4068,7 +4068,7 @@ function getRouteMap({
4068
4068
  children: [
4069
4069
  {
4070
4070
  path: "edit",
4071
- lazy: () => import("./customer-group-edit-LXPAPBZ7.js")
4071
+ lazy: () => import("./customer-group-edit-E7JX2L4J.js")
4072
4072
  },
4073
4073
  {
4074
4074
  path: "add-customers",
@@ -4123,7 +4123,7 @@ function getRouteMap({
4123
4123
  children: [
4124
4124
  {
4125
4125
  path: "edit",
4126
- lazy: () => import("./store-edit-GIKORSX3.js")
4126
+ lazy: () => import("./store-edit-HABD7SAL.js")
4127
4127
  },
4128
4128
  {
4129
4129
  path: "edit-address",
@@ -4219,7 +4219,7 @@ function getRouteMap({
4219
4219
  children: [
4220
4220
  {
4221
4221
  path: "edit",
4222
- lazy: () => import("./edit-reservation-VGB7GCD5.js")
4222
+ lazy: () => import("./edit-reservation-PTUSCC6C.js")
4223
4223
  },
4224
4224
  {
4225
4225
  path: "metadata/edit",
@@ -4333,7 +4333,7 @@ function getRouteMap({
4333
4333
  children: [
4334
4334
  {
4335
4335
  path: "edit",
4336
- lazy: () => import("./edit-inventory-item-4J3KFOUC.js")
4336
+ lazy: () => import("./edit-inventory-item-QPWV4MSP.js")
4337
4337
  },
4338
4338
  {
4339
4339
  path: "attributes",
@@ -5091,7 +5091,7 @@ function getRouteMap({
5091
5091
  children: [
5092
5092
  {
5093
5093
  path: "create",
5094
- lazy: () => import("./tax-region-create-EGMJMBYE.js")
5094
+ lazy: () => import("./tax-region-create-SKBBBZXJ.js")
5095
5095
  }
5096
5096
  ]
5097
5097
  },
@@ -5257,7 +5257,7 @@ function getRouteMap({
5257
5257
  },
5258
5258
  {
5259
5259
  path: "/reset-password",
5260
- lazy: () => import("./reset-password-C347RVO7.js")
5260
+ lazy: () => import("./reset-password-7KNQD6OM.js")
5261
5261
  },
5262
5262
  {
5263
5263
  path: "/invite",
@@ -9,7 +9,7 @@ import "./chunk-FMFVTERD.js";
9
9
  import "./chunk-JRTZWK77.js";
10
10
  import {
11
11
  i18n
12
- } from "./chunk-QZETW7FG.js";
12
+ } from "./chunk-Q2CJGCIA.js";
13
13
  import "./chunk-TKGWSUEI.js";
14
14
  import {
15
15
  KeyboundForm
@@ -185,7 +185,7 @@ import "../chunk-LPIPSLR7.js";
185
185
  import "../chunk-DUVYF37J.js";
186
186
  import {
187
187
  CollectionDetailPage
188
- } from "../chunk-KHW3GRN4.js";
188
+ } from "../chunk-YPM6XXSO.js";
189
189
  import "../chunk-VM56ZITS.js";
190
190
  import {
191
191
  CampaignListPage
@@ -193,11 +193,11 @@ import {
193
193
  import "../chunk-HINXQTCW.js";
194
194
  import {
195
195
  CampaignDetailPage
196
- } from "../chunk-BGQCG4S5.js";
196
+ } from "../chunk-KQVRWXAL.js";
197
197
  import {
198
198
  PromotionListPage
199
- } from "../chunk-RCI2GQZY.js";
200
- import "../chunk-YR6Q3TKU.js";
199
+ } from "../chunk-ZCQMFJ4X.js";
200
+ import "../chunk-OAGTPKC5.js";
201
201
  import "../chunk-S2WEYEQR.js";
202
202
  import {
203
203
  CreatePromotionSchema,
@@ -208,9 +208,9 @@ import "../chunk-AASCLZ5N.js";
208
208
  import "../chunk-54TMLQH3.js";
209
209
  import {
210
210
  PromotionDetailPage
211
- } from "../chunk-UQZBS67R.js";
211
+ } from "../chunk-WV4SPFOD.js";
212
212
  import "../chunk-RK5N3XIX.js";
213
- import "../chunk-WR7ZTUOY.js";
213
+ import "../chunk-N2CMOV3N.js";
214
214
  import "../chunk-MAEP2UCK.js";
215
215
  import "../chunk-5CHUXS7G.js";
216
216
  import "../chunk-2V74T2WI.js";
@@ -236,7 +236,7 @@ import "../chunk-XSX255FK.js";
236
236
  import "../chunk-JHBNG7OD.js";
237
237
  import {
238
238
  CategoryDetailPage
239
- } from "../chunk-QVQJOMEY.js";
239
+ } from "../chunk-NASXWD7N.js";
240
240
  import "../chunk-7AV5EJJ5.js";
241
241
  import {
242
242
  OrderListPage
@@ -265,12 +265,12 @@ import {
265
265
  } from "../chunk-VH4W6LKI.js";
266
266
  import {
267
267
  CategoryListPage
268
- } from "../chunk-YYRDUEYJ.js";
269
- import "../chunk-AZDSIOYG.js";
268
+ } from "../chunk-MVRIYUOU.js";
269
+ import "../chunk-7CQD5AQ6.js";
270
270
  import "../chunk-JHIMVLB2.js";
271
271
  import {
272
272
  CategoryCreatePage
273
- } from "../chunk-O6OZASFC.js";
273
+ } from "../chunk-GVPKRQWI.js";
274
274
  import "../chunk-XLA2CNCW.js";
275
275
  import {
276
276
  CreateCategorySchema
@@ -297,12 +297,12 @@ import "../chunk-DB6ANJBO.js";
297
297
  import "../chunk-PHOCVOZ5.js";
298
298
  import {
299
299
  ProductCreatePage
300
- } from "../chunk-4SPHSUWU.js";
300
+ } from "../chunk-NI4FAFNL.js";
301
301
  import "../chunk-IIFQ7KYL.js";
302
302
  import "../chunk-32URSQ4F.js";
303
303
  import {
304
304
  ProductCreateSchema
305
- } from "../chunk-655ECEGW.js";
305
+ } from "../chunk-OPE24DZA.js";
306
306
  import "../chunk-HJ56YXBU.js";
307
307
  import "../chunk-AJLGY3LQ.js";
308
308
  import "../chunk-SMQT3ZNO.js";
@@ -316,7 +316,7 @@ import "../chunk-AW77UWCZ.js";
316
316
  import "../chunk-FREUYHMS.js";
317
317
  import "../chunk-VSLHL2AZ.js";
318
318
  import "../chunk-KDE4HKH2.js";
319
- import "../chunk-QZETW7FG.js";
319
+ import "../chunk-Q2CJGCIA.js";
320
320
  import "../chunk-2EME4AWX.js";
321
321
  import "../chunk-LO2ZWQGL.js";
322
322
  import "../chunk-JXSXBSV6.js";
@@ -327,7 +327,7 @@ import "../chunk-FWJLS7XD.js";
327
327
  import "../chunk-3QSRE5LS.js";
328
328
  import {
329
329
  ProductDetailPage
330
- } from "../chunk-2NHJ3D6N.js";
330
+ } from "../chunk-3RRHQY24.js";
331
331
  import "../chunk-KUBTN5TC.js";
332
332
  import "../chunk-FI474ADU.js";
333
333
  import "../chunk-3XPXUIK3.js";
@@ -62,6 +62,7 @@ var PriceListEditForm = ({ priceList }) => {
62
62
  const form = useExtendableForm({
63
63
  schema: PriceListEditSchema,
64
64
  model: "price_list",
65
+ zone: "edit",
65
66
  data: priceList,
66
67
  defaultValues: {
67
68
  type: priceList.type,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProductCreate
3
- } from "./chunk-4SPHSUWU.js";
3
+ } from "./chunk-NI4FAFNL.js";
4
4
  import "./chunk-IIFQ7KYL.js";
5
5
  import "./chunk-32URSQ4F.js";
6
- import "./chunk-655ECEGW.js";
6
+ import "./chunk-OPE24DZA.js";
7
7
  import "./chunk-HJ56YXBU.js";
8
8
  import "./chunk-AJLGY3LQ.js";
9
9
  import "./chunk-SMQT3ZNO.js";
@@ -17,7 +17,7 @@ import "./chunk-AW77UWCZ.js";
17
17
  import "./chunk-FREUYHMS.js";
18
18
  import "./chunk-VSLHL2AZ.js";
19
19
  import "./chunk-KDE4HKH2.js";
20
- import "./chunk-QZETW7FG.js";
20
+ import "./chunk-Q2CJGCIA.js";
21
21
  import "./chunk-2EME4AWX.js";
22
22
  import "./chunk-JXSXBSV6.js";
23
23
  import "./chunk-IQPN4PZJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProductDetailPage
3
- } from "./chunk-2NHJ3D6N.js";
3
+ } from "./chunk-3RRHQY24.js";
4
4
  import "./chunk-KUBTN5TC.js";
5
5
  import "./chunk-FI474ADU.js";
6
6
  import "./chunk-3XPXUIK3.js";
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-32URSQ4F.js";
4
4
  import {
5
5
  EditProductMediaSchema
6
- } from "./chunk-655ECEGW.js";
6
+ } from "./chunk-OPE24DZA.js";
7
7
  import "./chunk-AJLGY3LQ.js";
8
8
  import "./chunk-SMQT3ZNO.js";
9
9
  import "./chunk-VSLHL2AZ.js";
10
- import "./chunk-QZETW7FG.js";
10
+ import "./chunk-Q2CJGCIA.js";
11
11
  import "./chunk-TKGWSUEI.js";
12
12
  import {
13
13
  KeyboundForm
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-AW77UWCZ.js";
11
11
  import {
12
12
  i18n
13
- } from "./chunk-QZETW7FG.js";
13
+ } from "./chunk-Q2CJGCIA.js";
14
14
  import {
15
15
  SwitchBox
16
16
  } from "./chunk-2EME4AWX.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  PromotionDetailPage
3
- } from "./chunk-UQZBS67R.js";
3
+ } from "./chunk-WV4SPFOD.js";
4
4
  import "./chunk-RK5N3XIX.js";
5
- import "./chunk-WR7ZTUOY.js";
5
+ import "./chunk-N2CMOV3N.js";
6
6
  import "./chunk-QDPLZDMX.js";
7
7
  import "./chunk-XSX255FK.js";
8
8
  import "./chunk-FMFVTERD.js";
9
- import "./chunk-QZETW7FG.js";
9
+ import "./chunk-Q2CJGCIA.js";
10
10
  import "./chunk-E74OUNA3.js";
11
11
  import "./chunk-PAYQJPGK.js";
12
12
  import "./chunk-H6MYB7GB.js";
@@ -80,6 +80,7 @@ var EditPromotionDetailsForm = ({
80
80
  const form = useExtendableForm({
81
81
  schema: EditPromotionSchema,
82
82
  model: "promotion",
83
+ zone: "edit",
83
84
  data: promotion,
84
85
  defaultValues: {
85
86
  is_automatic: promotion.is_automatic.toString(),
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  PromotionListPage
3
- } from "./chunk-RCI2GQZY.js";
4
- import "./chunk-YR6Q3TKU.js";
3
+ } from "./chunk-ZCQMFJ4X.js";
4
+ import "./chunk-OAGTPKC5.js";
5
5
  import "./chunk-S2WEYEQR.js";
6
- import "./chunk-WR7ZTUOY.js";
6
+ import "./chunk-N2CMOV3N.js";
7
7
  import "./chunk-JHIMVLB2.js";
8
8
  import "./chunk-FMFVTERD.js";
9
9
  import "./chunk-DB6ANJBO.js";
10
10
  import "./chunk-PHOCVOZ5.js";
11
- import "./chunk-QZETW7FG.js";
11
+ import "./chunk-Q2CJGCIA.js";
12
12
  import "./chunk-E74OUNA3.js";
13
13
  import "./chunk-FQERBIVS.js";
14
14
  import "./chunk-6ZVV2XHU.js";
@@ -5,7 +5,7 @@ import "./chunk-U2EI2ZLM.js";
5
5
  import "./chunk-FMFVTERD.js";
6
6
  import {
7
7
  i18n
8
- } from "./chunk-QZETW7FG.js";
8
+ } from "./chunk-Q2CJGCIA.js";
9
9
  import {
10
10
  Form
11
11
  } from "./chunk-3QSRE5LS.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MediaSchema
3
- } from "./chunk-655ECEGW.js";
3
+ } from "./chunk-OPE24DZA.js";
4
4
  import {
5
5
  HandleInput
6
6
  } from "./chunk-HJ56YXBU.js";
@@ -9,7 +9,7 @@ import "./chunk-SMQT3ZNO.js";
9
9
  import {
10
10
  FileUpload
11
11
  } from "./chunk-VSLHL2AZ.js";
12
- import "./chunk-QZETW7FG.js";
12
+ import "./chunk-Q2CJGCIA.js";
13
13
  import {
14
14
  SwitchBox
15
15
  } from "./chunk-2EME4AWX.js";
@@ -123,6 +123,7 @@ var StoreEditForm = ({ seller }) => {
123
123
  const form = useExtendableForm({
124
124
  schema: EditStoreSchema,
125
125
  model: "seller",
126
+ zone: "edit",
126
127
  data: seller,
127
128
  defaultValues: {
128
129
  status: seller.status ?? import_types.SellerStatus.OPEN,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-AW77UWCZ.js";
20
20
  import {
21
21
  i18n
22
- } from "./chunk-QZETW7FG.js";
22
+ } from "./chunk-Q2CJGCIA.js";
23
23
  import "./chunk-TKGWSUEI.js";
24
24
  import {
25
25
  KeyboundForm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.2.0-canary.47",
3
+ "version": "2.2.0-canary.49",
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.0-canary.47",
38
- "@mercurjs/client": "2.2.0-canary.47",
37
+ "@mercurjs/dashboard-shared": "2.2.0-canary.49",
38
+ "@mercurjs/client": "2.2.0-canary.49",
39
39
  "@ariakit/react": "^0.4.15",
40
40
  "@babel/runtime": "^7.26.10",
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.0-canary.47",
92
- "@mercurjs/dashboard-sdk": "2.2.0-canary.47",
93
- "@mercurjs/types": "2.2.0-canary.47"
91
+ "@mercurjs/core": "2.2.0-canary.49",
92
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.49",
93
+ "@mercurjs/types": "2.2.0-canary.49"
94
94
  }
95
95
  }