@mercurjs/admin 2.3.0 → 2.3.2-canary.0

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 (31) hide show
  1. package/dist/{adjust-inventory-CFQ6LD2U.js → adjust-inventory-BBAU3NMM.js} +1 -1
  2. package/dist/{collection-edit-3ZZCDIUY.js → collection-edit-HMOZIS7Z.js} +1 -1
  3. package/dist/{customer-edit-RBPGTG32.js → customer-edit-5EH2AUGN.js} +1 -1
  4. package/dist/{customer-group-edit-A74OFHEH.js → customer-group-edit-ZQTBUZVR.js} +1 -1
  5. package/dist/{edit-inventory-item-JLTBJEVA.js → edit-inventory-item-ZSV4WF6G.js} +1 -1
  6. package/dist/{edit-inventory-item-attributes-BENAJP4P.js → edit-inventory-item-attributes-NWSAQMKX.js} +1 -1
  7. package/dist/{edit-reservation-FVJZ2NRW.js → edit-reservation-W3THLKKK.js} +1 -1
  8. package/dist/{edit-rules-BVZS6GBQ.js → edit-rules-RJC3AYJN.js} +1 -1
  9. package/dist/index.js +30 -30
  10. package/dist/{location-edit-TQFZN2RW.js → location-edit-XRGRJCVB.js} +1 -1
  11. package/dist/{location-service-zone-edit-36TATZI4.js → location-service-zone-edit-KFG52K4W.js} +1 -1
  12. package/dist/{location-service-zone-shipping-option-edit-HOEBC3D6.js → location-service-zone-shipping-option-edit-UUIR7B5S.js} +2 -2
  13. package/dist/{manage-locations-5CF36BYN.js → manage-locations-ZFIRHMNH.js} +1 -1
  14. package/dist/{marketplace-edit-GWOPSYXL.js → marketplace-edit-G7YNGABC.js} +1 -1
  15. package/dist/{order-create-refund-4MKAZL7C.js → order-create-refund-FJLL4CUD.js} +1 -1
  16. package/dist/{order-edit-billing-address-5OYY6SEI.js → order-edit-billing-address-2BSCXUTK.js} +1 -1
  17. package/dist/{order-edit-email-GM3HKYR6.js → order-edit-email-BREEW246.js} +1 -1
  18. package/dist/{order-edit-shipping-address-ZWGROPKU.js → order-edit-shipping-address-XUG74AFY.js} +1 -1
  19. package/dist/{order-request-transfer-OTGRHY6N.js → order-request-transfer-RYVK4WYW.js} +1 -1
  20. package/dist/{price-list-edit-ZZZDR62K.js → price-list-edit-ZVP6CCPE.js} +1 -1
  21. package/dist/{product-create-attribute-2PTO2UCX.js → product-create-attribute-FC26KQN4.js} +1 -1
  22. package/dist/{product-type-edit-IEMK45NK.js → product-type-edit-X7VSBPUG.js} +1 -1
  23. package/dist/{promotion-add-campaign-TVTKI5EP.js → promotion-add-campaign-VAF3HTLK.js} +1 -1
  24. package/dist/{promotion-edit-details-FFTEJ2CV.js → promotion-edit-details-7PHH756U.js} +1 -1
  25. package/dist/{region-edit-N6FXU7NY.js → region-edit-NUMG2V5L.js} +1 -1
  26. package/dist/{sales-channel-edit-2SCFS7SA.js → sales-channel-edit-CO2V2VER.js} +1 -1
  27. package/dist/{shipping-option-type-edit-6PWBHHFP.js → shipping-option-type-edit-WXTEQM32.js} +1 -1
  28. package/dist/{store-edit-IP6FR2NJ.js → store-edit-W6NHNE3S.js} +1 -1
  29. package/dist/{store-member-invite-RKP7K2S4.js → store-member-invite-5S64PDTE.js} +1 -1
  30. package/dist/{user-edit-Z3ODTSMN.js → user-edit-O2M5II52.js} +1 -1
  31. package/package.json +7 -7
@@ -252,7 +252,7 @@ var AdjustInventoryDrawer = () => {
252
252
  throw error;
253
253
  }
254
254
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "inventory-adjust-inventory-drawer", children: [
255
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-adjust-inventory-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-adjust-inventory-drawer-title", children: t("inventory.manageLocationQuantity") }) }),
255
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-adjust-inventory-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-adjust-inventory-drawer-title", children: t("inventory.manageLocationQuantity") }) }) }),
256
256
  ready && /* @__PURE__ */ jsx2(
257
257
  AdjustInventoryForm,
258
258
  {
@@ -136,7 +136,7 @@ var CollectionEdit = () => {
136
136
  throw error;
137
137
  }
138
138
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
139
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("collections.editCollection") }) }),
139
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("collections.editCollection") }) }) }),
140
140
  !isLoading && collection && /* @__PURE__ */ jsx2(EditCollectionForm, { collection })
141
141
  ] });
142
142
  };
@@ -202,7 +202,7 @@ var CustomerEdit = () => {
202
202
  throw error;
203
203
  }
204
204
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
205
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("customers.edit.header") }) }),
205
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("customers.edit.header") }) }) }),
206
206
  !isLoading && customer && /* @__PURE__ */ jsx2(EditCustomerForm, { customer })
207
207
  ] });
208
208
  };
@@ -121,7 +121,7 @@ var CustomerGroupEdit = () => {
121
121
  throw error;
122
122
  }
123
123
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
124
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("customerGroups.edit.header") }) }),
124
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("customerGroups.edit.header") }) }) }),
125
125
  !isLoading && customer_group && /* @__PURE__ */ jsx2(EditCustomerGroupForm, { group: customer_group })
126
126
  ] });
127
127
  };
@@ -164,7 +164,7 @@ var InventoryItemEdit = () => {
164
164
  throw error;
165
165
  }
166
166
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "inventory-edit-item-drawer", children: [
167
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-edit-item-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-edit-item-drawer-title", children: t("inventory.editItemDetails") }) }),
167
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-edit-item-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-edit-item-drawer-title", children: t("inventory.editItemDetails") }) }) }),
168
168
  ready && /* @__PURE__ */ jsx2(EditInventoryItemForm, { item: inventoryItem })
169
169
  ] });
170
170
  };
@@ -321,7 +321,7 @@ var InventoryItemAttributesEdit = () => {
321
321
  throw error;
322
322
  }
323
323
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "inventory-edit-item-attributes-drawer", children: [
324
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-edit-item-attributes-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-edit-item-attributes-drawer-title", children: t("products.editAttributes") }) }),
324
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "inventory-edit-item-attributes-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "inventory-edit-item-attributes-drawer-title", children: t("products.editAttributes") }) }) }),
325
325
  ready && /* @__PURE__ */ jsx2(EditInventoryItemAttributesForm, { item: inventoryItem })
326
326
  ] });
327
327
  };
@@ -297,7 +297,7 @@ var ReservationEdit = () => {
297
297
  throw error;
298
298
  }
299
299
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
300
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.reservation.editItemDetails") }) }),
300
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.reservation.editItemDetails") }) }) }),
301
301
  ready && /* @__PURE__ */ jsx2(
302
302
  EditReservationForm,
303
303
  {
@@ -321,7 +321,7 @@ var EditRules2 = () => {
321
321
  throw error;
322
322
  }
323
323
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": `promotion-edit-rules-${ruleType}`, children: [
324
- /* @__PURE__ */ jsx3(RouteDrawer.Header, { "data-testid": `promotion-edit-rules-header-${ruleType}`, children: /* @__PURE__ */ jsx3(Heading, { "data-testid": `promotion-edit-rules-heading-${ruleType}`, children: t(`promotions.edit.${ruleType}.title`) }) }),
324
+ /* @__PURE__ */ jsx3(RouteDrawer.Header, { "data-testid": `promotion-edit-rules-header-${ruleType}`, children: /* @__PURE__ */ jsx3(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx3(Heading, { "data-testid": `promotion-edit-rules-heading-${ruleType}`, children: t(`promotions.edit.${ruleType}.title`) }) }) }),
325
325
  !isLoading && promotion && /* @__PURE__ */ jsx3(
326
326
  EditRulesWrapper,
327
327
  {
package/dist/index.js CHANGED
@@ -3562,7 +3562,7 @@ function getRouteMap({
3562
3562
  },
3563
3563
  {
3564
3564
  path: "attributes/create",
3565
- lazy: () => import("./product-create-attribute-2PTO2UCX.js")
3565
+ lazy: () => import("./product-create-attribute-FC26KQN4.js")
3566
3566
  },
3567
3567
  {
3568
3568
  path: "attributes/add",
@@ -3741,23 +3741,23 @@ function getRouteMap({
3741
3741
  },
3742
3742
  {
3743
3743
  path: "refund",
3744
- lazy: () => import("./order-create-refund-4MKAZL7C.js")
3744
+ lazy: () => import("./order-create-refund-FJLL4CUD.js")
3745
3745
  },
3746
3746
  {
3747
3747
  path: "transfer",
3748
- lazy: () => import("./order-request-transfer-OTGRHY6N.js")
3748
+ lazy: () => import("./order-request-transfer-RYVK4WYW.js")
3749
3749
  },
3750
3750
  {
3751
3751
  path: "email",
3752
- lazy: () => import("./order-edit-email-GM3HKYR6.js")
3752
+ lazy: () => import("./order-edit-email-BREEW246.js")
3753
3753
  },
3754
3754
  {
3755
3755
  path: "shipping-address",
3756
- lazy: () => import("./order-edit-shipping-address-ZWGROPKU.js")
3756
+ lazy: () => import("./order-edit-shipping-address-XUG74AFY.js")
3757
3757
  },
3758
3758
  {
3759
3759
  path: "billing-address",
3760
- lazy: () => import("./order-edit-billing-address-5OYY6SEI.js")
3760
+ lazy: () => import("./order-edit-billing-address-2BSCXUTK.js")
3761
3761
  },
3762
3762
  {
3763
3763
  path: "metadata/edit",
@@ -3803,15 +3803,15 @@ function getRouteMap({
3803
3803
  children: [
3804
3804
  {
3805
3805
  path: "edit",
3806
- lazy: () => import("./promotion-edit-details-FFTEJ2CV.js")
3806
+ lazy: () => import("./promotion-edit-details-7PHH756U.js")
3807
3807
  },
3808
3808
  {
3809
3809
  path: "add-to-campaign",
3810
- lazy: () => import("./promotion-add-campaign-TVTKI5EP.js")
3810
+ lazy: () => import("./promotion-add-campaign-VAF3HTLK.js")
3811
3811
  },
3812
3812
  {
3813
3813
  path: ":ruleType/edit",
3814
- lazy: () => import("./edit-rules-BVZS6GBQ.js")
3814
+ lazy: () => import("./edit-rules-RJC3AYJN.js")
3815
3815
  }
3816
3816
  ]
3817
3817
  }
@@ -3953,7 +3953,7 @@ function getRouteMap({
3953
3953
  children: [
3954
3954
  {
3955
3955
  path: "edit",
3956
- lazy: () => import("./collection-edit-3ZZCDIUY.js")
3956
+ lazy: () => import("./collection-edit-HMOZIS7Z.js")
3957
3957
  },
3958
3958
  {
3959
3959
  path: "media",
@@ -4013,7 +4013,7 @@ function getRouteMap({
4013
4013
  children: [
4014
4014
  {
4015
4015
  path: "edit",
4016
- lazy: () => import("./price-list-edit-ZZZDR62K.js")
4016
+ lazy: () => import("./price-list-edit-ZVP6CCPE.js")
4017
4017
  },
4018
4018
  {
4019
4019
  path: "configuration",
@@ -4073,7 +4073,7 @@ function getRouteMap({
4073
4073
  children: [
4074
4074
  {
4075
4075
  path: "edit",
4076
- lazy: () => import("./customer-edit-RBPGTG32.js")
4076
+ lazy: () => import("./customer-edit-5EH2AUGN.js")
4077
4077
  },
4078
4078
  {
4079
4079
  path: "create-address",
@@ -4089,7 +4089,7 @@ function getRouteMap({
4089
4089
  },
4090
4090
  {
4091
4091
  path: ":order_id/transfer",
4092
- lazy: () => import("./order-request-transfer-OTGRHY6N.js")
4092
+ lazy: () => import("./order-request-transfer-RYVK4WYW.js")
4093
4093
  },
4094
4094
  {
4095
4095
  path: "metadata/edit",
@@ -4137,7 +4137,7 @@ function getRouteMap({
4137
4137
  children: [
4138
4138
  {
4139
4139
  path: "edit",
4140
- lazy: () => import("./customer-group-edit-A74OFHEH.js")
4140
+ lazy: () => import("./customer-group-edit-ZQTBUZVR.js")
4141
4141
  },
4142
4142
  {
4143
4143
  path: "add-customers",
@@ -4192,7 +4192,7 @@ function getRouteMap({
4192
4192
  children: [
4193
4193
  {
4194
4194
  path: "edit",
4195
- lazy: () => import("./store-edit-IP6FR2NJ.js")
4195
+ lazy: () => import("./store-edit-W6NHNE3S.js")
4196
4196
  },
4197
4197
  {
4198
4198
  path: "edit-address",
@@ -4212,7 +4212,7 @@ function getRouteMap({
4212
4212
  },
4213
4213
  {
4214
4214
  path: "invite",
4215
- lazy: () => import("./store-member-invite-RKP7K2S4.js")
4215
+ lazy: () => import("./store-member-invite-5S64PDTE.js")
4216
4216
  }
4217
4217
  ]
4218
4218
  }
@@ -4288,7 +4288,7 @@ function getRouteMap({
4288
4288
  children: [
4289
4289
  {
4290
4290
  path: "edit",
4291
- lazy: () => import("./edit-reservation-FVJZ2NRW.js")
4291
+ lazy: () => import("./edit-reservation-W3THLKKK.js")
4292
4292
  },
4293
4293
  {
4294
4294
  path: "metadata/edit",
@@ -4398,11 +4398,11 @@ function getRouteMap({
4398
4398
  children: [
4399
4399
  {
4400
4400
  path: "edit",
4401
- lazy: () => import("./edit-inventory-item-JLTBJEVA.js")
4401
+ lazy: () => import("./edit-inventory-item-ZSV4WF6G.js")
4402
4402
  },
4403
4403
  {
4404
4404
  path: "attributes",
4405
- lazy: () => import("./edit-inventory-item-attributes-BENAJP4P.js")
4405
+ lazy: () => import("./edit-inventory-item-attributes-NWSAQMKX.js")
4406
4406
  },
4407
4407
  {
4408
4408
  path: "metadata/edit",
@@ -4410,11 +4410,11 @@ function getRouteMap({
4410
4410
  },
4411
4411
  {
4412
4412
  path: "locations",
4413
- lazy: () => import("./manage-locations-5CF36BYN.js")
4413
+ lazy: () => import("./manage-locations-ZFIRHMNH.js")
4414
4414
  },
4415
4415
  {
4416
4416
  path: "locations/:location_id",
4417
- lazy: () => import("./adjust-inventory-CFQ6LD2U.js")
4417
+ lazy: () => import("./adjust-inventory-BBAU3NMM.js")
4418
4418
  }
4419
4419
  ]
4420
4420
  }
@@ -4502,7 +4502,7 @@ function getRouteMap({
4502
4502
  children: [
4503
4503
  {
4504
4504
  path: "edit",
4505
- lazy: () => import("./region-edit-N6FXU7NY.js")
4505
+ lazy: () => import("./region-edit-NUMG2V5L.js")
4506
4506
  },
4507
4507
  {
4508
4508
  path: "countries/add",
@@ -4532,7 +4532,7 @@ function getRouteMap({
4532
4532
  children: [
4533
4533
  {
4534
4534
  path: "edit",
4535
- lazy: () => import("./marketplace-edit-GWOPSYXL.js")
4535
+ lazy: () => import("./marketplace-edit-G7YNGABC.js")
4536
4536
  },
4537
4537
  {
4538
4538
  path: "currencies",
@@ -4635,7 +4635,7 @@ function getRouteMap({
4635
4635
  children: [
4636
4636
  {
4637
4637
  path: "edit",
4638
- lazy: () => import("./user-edit-Z3ODTSMN.js")
4638
+ lazy: () => import("./user-edit-O2M5II52.js")
4639
4639
  },
4640
4640
  {
4641
4641
  path: "metadata/edit",
@@ -4684,7 +4684,7 @@ function getRouteMap({
4684
4684
  children: [
4685
4685
  {
4686
4686
  path: "edit",
4687
- lazy: () => import("./sales-channel-edit-2SCFS7SA.js")
4687
+ lazy: () => import("./sales-channel-edit-CO2V2VER.js")
4688
4688
  },
4689
4689
  {
4690
4690
  path: "add-products",
@@ -4797,7 +4797,7 @@ function getRouteMap({
4797
4797
  children: [
4798
4798
  {
4799
4799
  path: "edit",
4800
- lazy: () => import("./shipping-option-type-edit-6PWBHHFP.js")
4800
+ lazy: () => import("./shipping-option-type-edit-WXTEQM32.js")
4801
4801
  }
4802
4802
  ]
4803
4803
  }
@@ -4824,7 +4824,7 @@ function getRouteMap({
4824
4824
  children: [
4825
4825
  {
4826
4826
  path: "edit",
4827
- lazy: () => import("./location-edit-TQFZN2RW.js")
4827
+ lazy: () => import("./location-edit-XRGRJCVB.js")
4828
4828
  },
4829
4829
  {
4830
4830
  path: "sales-channels",
@@ -4846,7 +4846,7 @@ function getRouteMap({
4846
4846
  children: [
4847
4847
  {
4848
4848
  path: "edit",
4849
- lazy: () => import("./location-service-zone-edit-36TATZI4.js")
4849
+ lazy: () => import("./location-service-zone-edit-KFG52K4W.js")
4850
4850
  },
4851
4851
  {
4852
4852
  path: "areas",
@@ -4864,7 +4864,7 @@ function getRouteMap({
4864
4864
  children: [
4865
4865
  {
4866
4866
  path: "edit",
4867
- lazy: () => import("./location-service-zone-shipping-option-edit-HOEBC3D6.js")
4867
+ lazy: () => import("./location-service-zone-shipping-option-edit-UUIR7B5S.js")
4868
4868
  },
4869
4869
  {
4870
4870
  path: "pricing",
@@ -5027,7 +5027,7 @@ function getRouteMap({
5027
5027
  children: [
5028
5028
  {
5029
5029
  path: "edit",
5030
- lazy: () => import("./product-type-edit-IEMK45NK.js")
5030
+ lazy: () => import("./product-type-edit-X7VSBPUG.js")
5031
5031
  },
5032
5032
  {
5033
5033
  path: "metadata/edit",
@@ -245,7 +245,7 @@ var LocationEdit = () => {
245
245
  throw error;
246
246
  }
247
247
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "location-edit-drawer", children: [
248
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", "data-testid": "location-edit-drawer-heading", children: t("locations.editLocation") }) }),
248
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", "data-testid": "location-edit-drawer-heading", children: t("locations.editLocation") }) }) }),
249
249
  ready && /* @__PURE__ */ jsx2(EditLocationForm, { location: stock_location })
250
250
  ] });
251
251
  };
@@ -119,7 +119,7 @@ var LocationServiceZoneEdit = () => {
119
119
  throw error;
120
120
  }
121
121
  return /* @__PURE__ */ jsxs2(RouteDrawer, { prev: `/settings/locations/${location_id}`, "data-testid": "location-service-zone-edit-drawer", children: [
122
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-service-zone-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "location-service-zone-edit-drawer-heading", children: t("stockLocations.serviceZones.edit.header") }) }),
122
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-service-zone-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "location-service-zone-edit-drawer-heading", children: t("stockLocations.serviceZones.edit.header") }) }) }),
123
123
  serviceZone && /* @__PURE__ */ jsx2(
124
124
  EditServiceZoneForm,
125
125
  {
@@ -346,9 +346,9 @@ var LocationServiceZoneShippingOptionEdit = () => {
346
346
  }
347
347
  const isPickup = shippingOption?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
348
348
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "location-shipping-option-edit-drawer", children: [
349
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-shipping-option-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "location-shipping-option-edit-drawer-heading", children: t(
349
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "location-shipping-option-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "location-shipping-option-edit-drawer-heading", children: t(
350
350
  `stockLocations.${isPickup ? "pickupOptions" : "shippingOptions"}.edit.header`
351
- ) }) }),
351
+ ) }) }) }),
352
352
  shippingOption && /* @__PURE__ */ jsx2(
353
353
  EditShippingOptionForm,
354
354
  {
@@ -249,7 +249,7 @@ var ManageLocationsDrawer = () => {
249
249
  }
250
250
  const sellerId = inventoryItem?.offers?.[0]?.seller_id;
251
251
  return /* @__PURE__ */ jsxs3(RouteDrawer, { "data-testid": "inventory-manage-locations-drawer", children: [
252
- /* @__PURE__ */ jsx4(RouteDrawer.Header, { "data-testid": "inventory-manage-locations-drawer-header", children: /* @__PURE__ */ jsx4(Heading, { "data-testid": "inventory-manage-locations-drawer-title", children: t("inventory.manageLocations") }) }),
252
+ /* @__PURE__ */ jsx4(RouteDrawer.Header, { "data-testid": "inventory-manage-locations-drawer-header", children: /* @__PURE__ */ jsx4(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx4(Heading, { "data-testid": "inventory-manage-locations-drawer-title", children: t("inventory.manageLocations") }) }) }),
253
253
  ready && /* @__PURE__ */ jsx4(
254
254
  ManageLocationsForm,
255
255
  {
@@ -239,7 +239,7 @@ var MarketplaceEdit = () => {
239
239
  }
240
240
  const ready = !!store && !isLoading;
241
241
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "store-edit", children: [
242
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "store-edit-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "store-edit-heading", children: t("marketplace.edit.header") }) }),
242
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "store-edit-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "store-edit-heading", children: t("marketplace.edit.header") }) }) }),
243
243
  ready && /* @__PURE__ */ jsx2(EditMarketplaceForm, { store })
244
244
  ] });
245
245
  };
@@ -405,7 +405,7 @@ var OrderCreateRefund = () => {
405
405
  fields: DEFAULT_FIELDS
406
406
  });
407
407
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "order-create-refund-drawer", children: [
408
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-create-refund-header", children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "order-create-refund-heading", children: t("orders.payment.createRefund") }) }),
408
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-create-refund-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "order-create-refund-heading", children: t("orders.payment.createRefund") }) }) }),
409
409
  order && /* @__PURE__ */ jsx2(CreateRefundForm, { order })
410
410
  ] });
411
411
  };
@@ -397,7 +397,7 @@ var OrderEditBillingAddress = () => {
397
397
  throw error;
398
398
  }
399
399
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "order-edit-billing-address-drawer", children: [
400
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-billing-address-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-billing-address-heading", children: t("orders.edit.billingAddress.title") }) }),
400
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-billing-address-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-billing-address-heading", children: t("orders.edit.billingAddress.title") }) }) }),
401
401
  order && /* @__PURE__ */ jsx2(EditOrderBillingAddressForm, { order })
402
402
  ] });
403
403
  };
@@ -168,7 +168,7 @@ var OrderEditEmail = () => {
168
168
  throw error;
169
169
  }
170
170
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "order-edit-email-drawer", children: [
171
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-email-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-email-heading", children: t("orders.edit.email.title") }) }),
171
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-email-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-email-heading", children: t("orders.edit.email.title") }) }) }),
172
172
  order && /* @__PURE__ */ jsx2(EditOrderEmailForm, { order })
173
173
  ] });
174
174
  };
@@ -394,7 +394,7 @@ var OrderEditShippingAddress = () => {
394
394
  throw new Error("Order not found");
395
395
  }
396
396
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "order-edit-shipping-address-drawer", children: [
397
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-shipping-address-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-shipping-address-heading", children: t("orders.edit.shippingAddress.title") }) }),
397
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "order-edit-shipping-address-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "order-edit-shipping-address-heading", children: t("orders.edit.shippingAddress.title") }) }) }),
398
398
  order && /* @__PURE__ */ jsx2(EditOrderShippingAddressForm, { order })
399
399
  ] });
400
400
  };
@@ -569,7 +569,7 @@ var OrderRequestTransfer = () => {
569
569
  throw new Error("Order not found");
570
570
  }
571
571
  return /* @__PURE__ */ jsxs3(RouteDrawer, { "data-testid": "order-request-transfer-drawer", children: [
572
- /* @__PURE__ */ jsx3(RouteDrawer.Header, { "data-testid": "order-request-transfer-header", children: /* @__PURE__ */ jsx3(Heading, { "data-testid": "order-request-transfer-heading", children: t("orders.transfer.title") }) }),
572
+ /* @__PURE__ */ jsx3(RouteDrawer.Header, { "data-testid": "order-request-transfer-header", children: /* @__PURE__ */ jsx3(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx3(Heading, { "data-testid": "order-request-transfer-heading", children: t("orders.transfer.title") }) }) }),
573
573
  order && /* @__PURE__ */ jsx3(CreateOrderTransferForm, { order })
574
574
  ] });
575
575
  };
@@ -252,7 +252,7 @@ var PriceListEdit = () => {
252
252
  throw error;
253
253
  }
254
254
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
255
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.edit.header") }) }),
255
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.edit.header") }) }) }),
256
256
  ready && /* @__PURE__ */ jsx2(PriceListEditForm, { priceList: price_list })
257
257
  ] });
258
258
  };
@@ -225,7 +225,7 @@ var ProductCreateAttribute = () => {
225
225
  const { id } = useParams();
226
226
  const { t } = useTranslation2();
227
227
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
228
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("products.addAttribute") }) }),
228
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.addAttribute") }) }) }),
229
229
  /* @__PURE__ */ jsx2(CreateAttributeForm, { productId: id })
230
230
  ] });
231
231
  };
@@ -105,7 +105,7 @@ var ProductTypeEdit = () => {
105
105
  throw error;
106
106
  }
107
107
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "product-type-edit-drawer", children: [
108
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "product-type-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "product-type-edit-drawer-heading", children: t("productTypes.edit.header") }) }),
108
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "product-type-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "product-type-edit-drawer-heading", children: t("productTypes.edit.header") }) }) }),
109
109
  ready && /* @__PURE__ */ jsx2(EditProductTypeForm, { productType: product_type })
110
110
  ] });
111
111
  };
@@ -41,7 +41,7 @@ var PromotionAddCampaign = () => {
41
41
  throw error;
42
42
  }
43
43
  return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
44
- /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(Heading, { children: t("promotions.campaign.edit.header") }) }),
44
+ /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: t("promotions.campaign.edit.header") }) }) }),
45
45
  !isPending && promotion && /* @__PURE__ */ jsx(AddCampaignPromotionForm, { promotion })
46
46
  ] });
47
47
  };
@@ -666,7 +666,7 @@ var PromotionEditDetails = () => {
666
666
  throw error;
667
667
  }
668
668
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
669
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("promotions.edit.title") }) }),
669
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("promotions.edit.title") }) }) }),
670
670
  !isLoading && promotion && /* @__PURE__ */ jsx2(EditPromotionDetailsForm, { promotion })
671
671
  ] });
672
672
  };
@@ -370,7 +370,7 @@ var RegionEdit = () => {
370
370
  throw preferenceError;
371
371
  }
372
372
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "region-edit-drawer", children: [
373
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "region-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "region-edit-drawer-heading", children: t("regions.editRegion") }) }),
373
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "region-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "region-edit-drawer-heading", children: t("regions.editRegion") }) }) }),
374
374
  !isLoading && region && /* @__PURE__ */ jsx2(
375
375
  EditRegionForm,
376
376
  {
@@ -155,7 +155,7 @@ var SalesChannelEdit = () => {
155
155
  throw error;
156
156
  }
157
157
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "sales-channel-edit-drawer", children: [
158
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "sales-channel-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", "data-testid": "sales-channel-edit-drawer-heading", children: t("salesChannels.editSalesChannel") }) }),
158
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "sales-channel-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", "data-testid": "sales-channel-edit-drawer-heading", children: t("salesChannels.editSalesChannel") }) }) }),
159
159
  !isLoading && !!sales_channel && /* @__PURE__ */ jsx2(EditSalesChannelForm, { salesChannel: sales_channel })
160
160
  ] });
161
161
  };
@@ -188,7 +188,7 @@ var ShippingOptionTypeEdit = () => {
188
188
  throw error;
189
189
  }
190
190
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "shipping-option-type-edit-drawer", children: [
191
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "shipping-option-type-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "shipping-option-type-edit-drawer-heading", children: t("shippingOptionTypes.edit.header") }) }),
191
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "shipping-option-type-edit-drawer-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "shipping-option-type-edit-drawer-heading", children: t("shippingOptionTypes.edit.header") }) }) }),
192
192
  ready && /* @__PURE__ */ jsx2(EditShippingOptionTypeForm, { shippingOptionType: shipping_option_type })
193
193
  ] });
194
194
  };
@@ -472,7 +472,7 @@ var StoreEdit = () => {
472
472
  throw error;
473
473
  }
474
474
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
475
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { className: "capitalize", children: t("stores.edit.header") }) }),
475
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { className: "capitalize", children: t("stores.edit.header") }) }) }),
476
476
  !isLoading && seller && /* @__PURE__ */ jsx2(StoreEditForm, { seller })
477
477
  ] });
478
478
  };
@@ -221,7 +221,7 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
221
221
  var Root = () => {
222
222
  const { t } = useTranslation2();
223
223
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
224
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("stores.members.addUser.header") }) }),
224
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("stores.members.addUser.header") }) }) }),
225
225
  /* @__PURE__ */ jsx2(InviteMemberForm, {})
226
226
  ] });
227
227
  };
@@ -107,7 +107,7 @@ var UserEdit = () => {
107
107
  throw error;
108
108
  }
109
109
  return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "user-edit", children: [
110
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "user-edit-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "user-edit-heading", children: t("users.editUser") }) }),
110
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "user-edit-header", children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "user-edit-heading", children: t("users.editUser") }) }) }),
111
111
  !isLoading && user && /* @__PURE__ */ jsx2(EditUserForm, { user })
112
112
  ] });
113
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.3.0",
3
+ "version": "2.3.2-canary.0",
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.3.0",
38
- "@mercurjs/client": "2.3.0",
37
+ "@mercurjs/dashboard-shared": "2.3.2-canary.0",
38
+ "@mercurjs/client": "2.3.2-canary.0",
39
39
  "@ariakit/react": "^0.4.15",
40
40
  "@babel/runtime": "^8.0.0",
41
41
  "@dnd-kit/core": "^6.1.0",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "devDependencies": {
82
82
  "@medusajs/ui-preset": "2.18.0",
83
- "@types/react": "^19.2.17",
83
+ "@types/react": "^18.3.2",
84
84
  "@types/react-dom": "^18.2.22",
85
85
  "autoprefixer": "^10.4.20",
86
86
  "postcss": "^8.4.49",
@@ -88,8 +88,8 @@
88
88
  "tsup": "^8.0.2",
89
89
  "typescript": "5.9.3",
90
90
  "@medusajs/types": "2.18.0",
91
- "@mercurjs/core": "2.3.0",
92
- "@mercurjs/dashboard-sdk": "2.3.0",
93
- "@mercurjs/types": "2.3.0"
91
+ "@mercurjs/core": "2.3.2-canary.0",
92
+ "@mercurjs/dashboard-sdk": "2.3.2-canary.0",
93
+ "@mercurjs/types": "2.3.2-canary.0"
94
94
  }
95
95
  }