@mercurjs/vendor 2.2.0-canary.17 → 2.2.0-canary.18

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.
@@ -73,7 +73,7 @@ import "./chunk-QHQWEERJ.js";
73
73
  import "./chunk-Y7QKP6QU.js";
74
74
  import {
75
75
  PRODUCT_DETAIL_QUERY
76
- } from "./chunk-REUNEGSN.js";
76
+ } from "./chunk-36WXPGD2.js";
77
77
  import {
78
78
  productAttributesQueryKeys,
79
79
  productsQueryKeys,
@@ -33,7 +33,7 @@ import "./chunk-QHQWEERJ.js";
33
33
  import "./chunk-Y7QKP6QU.js";
34
34
  import {
35
35
  PRODUCT_DETAIL_QUERY
36
- } from "./chunk-REUNEGSN.js";
36
+ } from "./chunk-36WXPGD2.js";
37
37
  import {
38
38
  useBatchProductAttributes,
39
39
  useProduct,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PRODUCT_DETAIL_QUERY
3
- } from "./chunk-REUNEGSN.js";
3
+ } from "./chunk-36WXPGD2.js";
4
4
  import {
5
5
  useProduct
6
6
  } from "./chunk-6ORRPSPG.js";
@@ -2,8 +2,10 @@
2
2
  var PRODUCT_DETAIL_FIELDS = [
3
3
  "*variants.images",
4
4
  // Variant identity used by the active edit-request block (MER-168).
5
- "variants.title",
6
- "variants.sku",
5
+ // Use `+` so these don't trigger Medusa's "replace defaults" rule
6
+ // (any bare field strips title/description/subtitle from the product).
7
+ "+variants.title",
8
+ "+variants.sku",
7
9
  "*categories",
8
10
  "+additional_data",
9
11
  "*scoped_attributes",
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-RIN4CBRB.js";
10
10
 
11
11
  // src/pages/product-variants/product-variant-detail/loader.ts
12
- var VARIANT_DETAIL_FIELDS = "*options,*options.option,thumbnail,images.id,images.url,images.rank,images.variants.id,product.images.id,product.images.url,product.images.rank,product.images.variants.id";
12
+ var VARIANT_DETAIL_FIELDS = "*options,*options.option,+thumbnail,+images.id,+images.url,+images.rank,+images.variants.id,+product.images.id,+product.images.url,+product.images.rank,+product.images.variants.id";
13
13
  var variantDetailQuery = (productId, variantId) => ({
14
14
  queryKey: variantsQueryKeys.detail(variantId, { fields: VARIANT_DETAIL_FIELDS }),
15
15
  queryFn: async () => sdk.vendor.products.$id.variants.$variantId.query({
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-UCYSCKZV.js";
19
19
  import {
20
20
  PRODUCT_DETAIL_QUERY
21
- } from "./chunk-REUNEGSN.js";
21
+ } from "./chunk-36WXPGD2.js";
22
22
  import {
23
23
  useCreateProductVariant,
24
24
  useProduct
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-UCYSCKZV.js";
19
19
  import {
20
20
  PRODUCT_DETAIL_QUERY
21
- } from "./chunk-REUNEGSN.js";
21
+ } from "./chunk-36WXPGD2.js";
22
22
  import {
23
23
  useProduct,
24
24
  useUpdateProductAttribute
package/dist/index.js CHANGED
@@ -2922,8 +2922,8 @@ function getRouteMap({
2922
2922
  {
2923
2923
  path: ":id",
2924
2924
  lazy: async () => {
2925
- const { loader } = await import("./[id]-DIGLKVTF.js");
2926
- const { Breadcrumb } = await import("./breadcrumb-VOZAYLW3.js");
2925
+ const { loader } = await import("./[id]-I2SLURKY.js");
2926
+ const { Breadcrumb } = await import("./breadcrumb-CLUAJATZ.js");
2927
2927
  return {
2928
2928
  Component: Outlet4,
2929
2929
  loader,
@@ -2936,7 +2936,7 @@ function getRouteMap({
2936
2936
  {
2937
2937
  path: "",
2938
2938
  lazy: async () => {
2939
- const { ProductDetailPage } = await import("./[id]-DIGLKVTF.js");
2939
+ const { ProductDetailPage } = await import("./[id]-I2SLURKY.js");
2940
2940
  return {
2941
2941
  Component: ProductDetailPage
2942
2942
  };
@@ -2972,11 +2972,11 @@ function getRouteMap({
2972
2972
  },
2973
2973
  {
2974
2974
  path: "attributes/add",
2975
- lazy: () => import("./add-GLSL6OWC.js")
2975
+ lazy: () => import("./add-XFF273OG.js")
2976
2976
  },
2977
2977
  {
2978
2978
  path: "attributes/:attribute_id/edit",
2979
- lazy: () => import("./edit-PWIJSQCU.js")
2979
+ lazy: () => import("./edit-SHHOKKZT.js")
2980
2980
  },
2981
2981
  {
2982
2982
  path: "metadata",
@@ -2988,7 +2988,7 @@ function getRouteMap({
2988
2988
  },
2989
2989
  {
2990
2990
  path: "variants/create",
2991
- lazy: () => import("./create-WJMGS2B7.js")
2991
+ lazy: () => import("./create-XYD4RK4Z.js")
2992
2992
  }
2993
2993
  ]
2994
2994
  }
@@ -3661,7 +3661,7 @@ function getRouteMap({
3661
3661
  path: "/products/:product_id/variants/:variant_id",
3662
3662
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3663
3663
  lazy: async () => {
3664
- const { loader } = await import("./product-variant-detail-4Q4YCN3E.js");
3664
+ const { loader } = await import("./product-variant-detail-CQCURDL2.js");
3665
3665
  return {
3666
3666
  Component: Outlet4,
3667
3667
  loader
@@ -3670,7 +3670,7 @@ function getRouteMap({
3670
3670
  children: [
3671
3671
  {
3672
3672
  path: "",
3673
- lazy: () => import("./product-variant-detail-4Q4YCN3E.js"),
3673
+ lazy: () => import("./product-variant-detail-CQCURDL2.js"),
3674
3674
  children: [
3675
3675
  {
3676
3676
  path: "edit",
@@ -3678,7 +3678,7 @@ function getRouteMap({
3678
3678
  },
3679
3679
  {
3680
3680
  path: "media",
3681
- lazy: () => import("./media-73TSKPWM.js")
3681
+ lazy: () => import("./media-OJY6FYZZ.js")
3682
3682
  }
3683
3683
  ]
3684
3684
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VARIANT_DETAIL_FIELDS
3
- } from "./chunk-EXRCJ2KI.js";
3
+ } from "./chunk-ABWPAEYM.js";
4
4
  import "./chunk-TKGWSUEI.js";
5
5
  import {
6
6
  KeyboundForm
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VARIANT_DETAIL_FIELDS,
3
3
  variantLoader
4
- } from "./chunk-EXRCJ2KI.js";
4
+ } from "./chunk-ABWPAEYM.js";
5
5
  import {
6
6
  SectionRow
7
7
  } from "./chunk-4TLP3TAA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/vendor",
3
- "version": "2.2.0-canary.17",
3
+ "version": "2.2.0-canary.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",