@mercurjs/vendor 2.3.1 → 2.3.2-canary.1

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.
@@ -36,7 +36,7 @@ var Component = () => {
36
36
  const { campaigns, isPending: areCampaignsLoading, isError: isCampaignError, error: campaignError } = useCampaigns(campaignQuery);
37
37
  if (isError || isCampaignError) throw error || campaignError;
38
38
  return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
39
- /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(Heading, { children: t("promotions.campaign.edit.header") }) }),
39
+ /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: t("promotions.campaign.edit.header") }) }) }),
40
40
  !isPending && !areCampaignsLoading && promotion && campaigns && /* @__PURE__ */ jsx(AddCampaignPromotionForm, { promotion, campaigns })
41
41
  ] });
42
42
  };
@@ -211,7 +211,7 @@ var AdjustInventoryDrawer = () => {
211
211
  throw error;
212
212
  }
213
213
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
214
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.manageLocations") }) }),
214
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.manageLocations") }) }) }),
215
215
  ready && /* @__PURE__ */ jsx2(
216
216
  AdjustInventoryForm,
217
217
  {
@@ -256,7 +256,7 @@ var Component = () => {
256
256
  const { id } = useParams();
257
257
  const { t } = useTranslation2();
258
258
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
259
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("products.addAttribute") }) }),
259
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.addAttribute") }) }) }),
260
260
  /* @__PURE__ */ jsx2(CreateAttributeForm, { productId: id })
261
261
  ] });
262
262
  };
@@ -121,7 +121,7 @@ var LocationServiceZoneEdit = () => {
121
121
  throw error;
122
122
  }
123
123
  return /* @__PURE__ */ jsxs2(RouteDrawer, { prev: `/settings/locations/${location_id}`, children: [
124
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("stockLocations.serviceZones.edit.header") }) }),
124
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("stockLocations.serviceZones.edit.header") }) }) }),
125
125
  serviceZone && /* @__PURE__ */ jsx2(
126
126
  EditServiceZoneForm,
127
127
  {
@@ -516,7 +516,7 @@ var Component = () => {
516
516
  const { promotion, isLoading, isError, error } = usePromotion(id, linkQuery);
517
517
  if (isError) throw error;
518
518
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
519
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("promotions.edit.title") }) }),
519
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("promotions.edit.title") }) }) }),
520
520
  !isLoading && promotion && /* @__PURE__ */ jsx2(EditPromotionDetailsForm, { promotion })
521
521
  ] });
522
522
  };
@@ -449,7 +449,7 @@ var StoreEdit = () => {
449
449
  throw error;
450
450
  }
451
451
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
452
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { className: "capitalize", children: t("app.menus.store.editStore") }) }),
452
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { className: "capitalize", children: t("app.menus.store.editStore") }) }) }),
453
453
  ready && /* @__PURE__ */ jsx2(EditStoreForm, { seller })
454
454
  ] });
455
455
  };
@@ -269,7 +269,7 @@ var EditRules2 = () => {
269
269
  throw error;
270
270
  }
271
271
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
272
- /* @__PURE__ */ jsx3(RouteDrawer.Header, { children: /* @__PURE__ */ jsx3(Heading, { children: t(`promotions.edit.${ruleType}.title`) }) }),
272
+ /* @__PURE__ */ jsx3(RouteDrawer.Header, { children: /* @__PURE__ */ jsx3(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx3(Heading, { children: t(`promotions.edit.${ruleType}.title`) }) }) }),
273
273
  !isLoading && promotion && /* @__PURE__ */ jsx3(
274
274
  EditRulesWrapper,
275
275
  {
@@ -253,7 +253,7 @@ var Component = () => {
253
253
  throw error;
254
254
  }
255
255
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
256
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.edit.header") }) }),
256
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.edit.header") }) }) }),
257
257
  ready && /* @__PURE__ */ jsx2(PriceListEditForm, { priceList: price_list })
258
258
  ] });
259
259
  };
@@ -246,7 +246,7 @@ var LocationEdit = () => {
246
246
  throw error;
247
247
  }
248
248
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
249
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", children: t("locations.editLocation") }) }),
249
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { className: "capitalize", children: t("locations.editLocation") }) }) }),
250
250
  ready && /* @__PURE__ */ jsx2(EditLocationForm, { location: stock_location })
251
251
  ] });
252
252
  };
@@ -106,7 +106,7 @@ var ProductTypeEdit = () => {
106
106
  throw error;
107
107
  }
108
108
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
109
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("productTypes.edit.header") }) }),
109
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("productTypes.edit.header") }) }) }),
110
110
  ready && /* @__PURE__ */ jsx2(EditProductTypeForm, { productType: product_type })
111
111
  ] });
112
112
  };
@@ -225,9 +225,9 @@ var LocationServiceZoneShippingOptionEdit = () => {
225
225
  }
226
226
  const isPickup = shippingOption?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
227
227
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
228
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t(
228
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t(
229
229
  `stockLocations.${isPickup ? "pickupOptions" : "shippingOptions"}.edit.header`
230
- ) }) }),
230
+ ) }) }) }),
231
231
  shippingOption && /* @__PURE__ */ jsx2(
232
232
  EditShippingOptionForm,
233
233
  {
@@ -137,7 +137,7 @@ var InventoryItemEdit = () => {
137
137
  throw error;
138
138
  }
139
139
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
140
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.editItemDetails") }) }),
140
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.editItemDetails") }) }) }),
141
141
  ready && /* @__PURE__ */ jsx2(EditInventoryItemForm, { item: inventoryItem })
142
142
  ] });
143
143
  };
@@ -287,7 +287,7 @@ var InventoryItemAttributesEdit = () => {
287
287
  throw error;
288
288
  }
289
289
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
290
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("products.editAttributes") }) }),
290
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.editAttributes") }) }) }),
291
291
  ready && /* @__PURE__ */ jsx2(EditInventoryItemAttributesForm, { item: inventoryItem })
292
292
  ] });
293
293
  };
@@ -278,7 +278,7 @@ var ReservationEdit = () => {
278
278
  throw error;
279
279
  }
280
280
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
281
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.reservation.editItemDetails") }) }),
281
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("inventory.reservation.editItemDetails") }) }) }),
282
282
  ready && /* @__PURE__ */ jsx2(
283
283
  EditReservationForm,
284
284
  {
package/dist/index.js CHANGED
@@ -3021,7 +3021,7 @@ function getRouteMap({
3021
3021
  },
3022
3022
  {
3023
3023
  path: "attributes/create",
3024
- lazy: () => import("./create-5BBONPJT.js")
3024
+ lazy: () => import("./create-I4NRCSKA.js")
3025
3025
  },
3026
3026
  {
3027
3027
  path: "attributes/add",
@@ -3559,11 +3559,11 @@ function getRouteMap({
3559
3559
  children: [
3560
3560
  {
3561
3561
  path: "edit",
3562
- lazy: () => import("./edit-inventory-item-HFGHS732.js")
3562
+ lazy: () => import("./edit-inventory-item-D3WVCMS5.js")
3563
3563
  },
3564
3564
  {
3565
3565
  path: "attributes",
3566
- lazy: () => import("./edit-inventory-item-attributes-5ORZJF4I.js")
3566
+ lazy: () => import("./edit-inventory-item-attributes-4FTC6BAY.js")
3567
3567
  },
3568
3568
  {
3569
3569
  path: "metadata",
@@ -3571,11 +3571,11 @@ function getRouteMap({
3571
3571
  },
3572
3572
  {
3573
3573
  path: "locations",
3574
- lazy: () => import("./manage-locations-5B4HP6NQ.js")
3574
+ lazy: () => import("./manage-locations-ZCE7QN4T.js")
3575
3575
  },
3576
3576
  {
3577
3577
  path: "locations/:location_id",
3578
- lazy: () => import("./adjust-inventory-2OKDFVLK.js")
3578
+ lazy: () => import("./adjust-inventory-QUOAKTI7.js")
3579
3579
  }
3580
3580
  ]
3581
3581
  }
@@ -3629,15 +3629,15 @@ function getRouteMap({
3629
3629
  children: [
3630
3630
  {
3631
3631
  path: "edit",
3632
- lazy: () => import("./edit-AJ6BKUCN.js")
3632
+ lazy: () => import("./edit-EJ5NQJGS.js")
3633
3633
  },
3634
3634
  {
3635
3635
  path: "add-to-campaign",
3636
- lazy: () => import("./add-to-campaign-B3PGGNFA.js")
3636
+ lazy: () => import("./add-to-campaign-FWHQHE76.js")
3637
3637
  },
3638
3638
  {
3639
3639
  path: ":ruleType/edit",
3640
- lazy: () => import("./edit-GBDHDJK4.js")
3640
+ lazy: () => import("./edit-IZUVXZAQ.js")
3641
3641
  }
3642
3642
  ]
3643
3643
  }
@@ -3758,7 +3758,7 @@ function getRouteMap({
3758
3758
  children: [
3759
3759
  {
3760
3760
  path: "edit",
3761
- lazy: () => import("./edit-2BKYNGYL.js")
3761
+ lazy: () => import("./edit-OJ56OOTY.js")
3762
3762
  },
3763
3763
  {
3764
3764
  path: "configuration",
@@ -3868,7 +3868,7 @@ function getRouteMap({
3868
3868
  children: [
3869
3869
  {
3870
3870
  path: "edit",
3871
- lazy: () => import("./edit-reservation-LSYQUDYQ.js")
3871
+ lazy: () => import("./edit-reservation-446DRAKQ.js")
3872
3872
  },
3873
3873
  {
3874
3874
  path: "metadata/edit",
@@ -3944,7 +3944,7 @@ function getRouteMap({
3944
3944
  children: [
3945
3945
  {
3946
3946
  path: "edit",
3947
- lazy: () => import("./edit-EZII45LE.js")
3947
+ lazy: () => import("./edit-F34KMSTW.js")
3948
3948
  },
3949
3949
  {
3950
3950
  path: "address",
@@ -4064,7 +4064,7 @@ function getRouteMap({
4064
4064
  children: [
4065
4065
  {
4066
4066
  path: "edit",
4067
- lazy: () => import("./edit-DKUERO2V.js")
4067
+ lazy: () => import("./edit-OWLUCJE4.js")
4068
4068
  },
4069
4069
  {
4070
4070
  path: "sales-channels",
@@ -4080,7 +4080,7 @@ function getRouteMap({
4080
4080
  },
4081
4081
  {
4082
4082
  path: "fulfillment-set/:fset_id/service-zone/:zone_id/edit",
4083
- lazy: () => import("./edit-RY35FORN.js")
4083
+ lazy: () => import("./edit-2DQZGXHT.js")
4084
4084
  },
4085
4085
  {
4086
4086
  path: "fulfillment-set/:fset_id/service-zone/:zone_id/areas",
@@ -4092,7 +4092,7 @@ function getRouteMap({
4092
4092
  },
4093
4093
  {
4094
4094
  path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/edit",
4095
- lazy: () => import("./edit-ZM7NJVRE.js")
4095
+ lazy: () => import("./edit-RO7VYRIZ.js")
4096
4096
  },
4097
4097
  {
4098
4098
  path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/pricing",
@@ -4304,7 +4304,7 @@ function getRouteMap({
4304
4304
  children: [
4305
4305
  {
4306
4306
  path: "edit",
4307
- lazy: () => import("./edit-MUQ37ETA.js")
4307
+ lazy: () => import("./edit-QPTRBYJQ.js")
4308
4308
  }
4309
4309
  ]
4310
4310
  }
@@ -208,7 +208,7 @@ var ManageLocationsDrawer = () => {
208
208
  throw error;
209
209
  }
210
210
  return /* @__PURE__ */ jsxs3(RouteDrawer, { children: [
211
- /* @__PURE__ */ jsx3(RouteDrawer.Header, { children: /* @__PURE__ */ jsx3(Heading, { children: t("inventory.manageLocations") }) }),
211
+ /* @__PURE__ */ jsx3(RouteDrawer.Header, { children: /* @__PURE__ */ jsx3(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx3(Heading, { children: t("inventory.manageLocations") }) }) }),
212
212
  ready && /* @__PURE__ */ jsx3(ManageLocationsForm, { item: inventoryItem, locations: stock_locations })
213
213
  ] });
214
214
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/vendor",
3
- "version": "2.3.1",
3
+ "version": "2.3.2-canary.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -37,8 +37,8 @@
37
37
  "lint": "oxlint --max-warnings 0"
38
38
  },
39
39
  "dependencies": {
40
- "@mercurjs/dashboard-shared": "2.3.1",
41
- "@mercurjs/client": "2.3.1",
40
+ "@mercurjs/dashboard-shared": "2.3.2-canary.1",
41
+ "@mercurjs/client": "2.3.2-canary.1",
42
42
  "@ariakit/react": "^0.4.15",
43
43
  "@babel/runtime": "^8.0.0",
44
44
  "@dnd-kit/core": "^6.1.0",
@@ -91,8 +91,8 @@
91
91
  "tsup": "^8.0.2",
92
92
  "typescript": "5.9.3",
93
93
  "@medusajs/types": "2.18.0",
94
- "@mercurjs/core": "2.3.1",
95
- "@mercurjs/dashboard-sdk": "2.3.1",
96
- "@mercurjs/types": "2.3.1"
94
+ "@mercurjs/core": "2.3.2-canary.1",
95
+ "@mercurjs/dashboard-sdk": "2.3.2-canary.1",
96
+ "@mercurjs/types": "2.3.2-canary.1"
97
97
  }
98
98
  }