@mercurjs/vendor 2.2.0-canary.22 → 2.2.0-canary.24

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.
@@ -5,7 +5,7 @@ import "./chunk-N335VHD3.js";
5
5
  import "./chunk-EBZ5VZEO.js";
6
6
  import "./chunk-4F5GP7J7.js";
7
7
  import "./chunk-7TIZP4YG.js";
8
- import "./chunk-II3ACSV2.js";
8
+ import "./chunk-YNGA3GRX.js";
9
9
  import "./chunk-BI2AYXZQ.js";
10
10
  import "./chunk-MG4GKUJW.js";
11
11
  import "./chunk-AYVH6Q5O.js";
@@ -120,7 +120,7 @@ var CollectionIconSection = ({
120
120
  collection
121
121
  }) => {
122
122
  const { t } = useTranslation2();
123
- const icon = getCollectionIcon(collection.images);
123
+ const icon = getCollectionIcon(collection.media_images);
124
124
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "collection-icon-section", children: [
125
125
  /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { children: t("collections.icon.label") }) }),
126
126
  /* @__PURE__ */ jsx2("div", { className: "px-6 py-4", children: icon ? /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-base shadow-elevation-card-rest relative aspect-square w-24 overflow-hidden rounded-[8px]", children: /* @__PURE__ */ jsx2(
@@ -156,7 +156,7 @@ var CollectionMediaSection = ({
156
156
  collection
157
157
  }) => {
158
158
  const { t } = useTranslation3();
159
- const gallery = getCollectionGallery(collection.images);
159
+ const gallery = getCollectionGallery(collection.media_images);
160
160
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "collection-media-section", children: [
161
161
  /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { children: t("collections.media.label") }) }),
162
162
  /* @__PURE__ */ jsx3("div", { className: "px-6 py-4", children: gallery.length > 0 ? /* @__PURE__ */ jsx3("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4", children: gallery.map((image) => /* @__PURE__ */ jsxs3(
@@ -260,8 +260,8 @@ var CustomerGroupSection = ({
260
260
  });
261
261
  const flatCustomerGroups = customer.groups ?? [];
262
262
  const groupIds = useMemo(
263
- () => flatCustomerGroups.map((g) => g.id),
264
- [flatCustomerGroups]
263
+ () => (customer.groups ?? []).map((g) => g.id),
264
+ [customer.groups]
265
265
  );
266
266
  const {
267
267
  customer_groups: customerGroups = [],
@@ -124,7 +124,7 @@ var CategoryIconSection = ({
124
124
  category
125
125
  }) => {
126
126
  const { t } = useTranslation2();
127
- const icon = getCategoryIcon(category.images);
127
+ const icon = getCategoryIcon(category.media_images);
128
128
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "category-icon-section", children: [
129
129
  /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { children: t("categories.icon.label") }) }),
130
130
  /* @__PURE__ */ jsx2("div", { className: "px-6 py-4", children: icon ? /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-base shadow-elevation-card-rest relative aspect-square w-24 overflow-hidden rounded-[8px]", children: /* @__PURE__ */ jsx2(
@@ -160,7 +160,7 @@ var CategoryMediaSection = ({
160
160
  category
161
161
  }) => {
162
162
  const { t } = useTranslation3();
163
- const gallery = getCategoryGallery(category.images);
163
+ const gallery = getCategoryGallery(category.media_images);
164
164
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "category-media-section", children: [
165
165
  /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { children: t("categories.media.label") }) }),
166
166
  /* @__PURE__ */ jsx3("div", { className: "px-6 py-4", children: gallery.length > 0 ? /* @__PURE__ */ jsx3("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4", children: gallery.map((image) => /* @__PURE__ */ jsxs3(
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XRNDVICA.js";
13
13
  import "./chunk-6IJMSVC6.js";
14
14
  import "./chunk-7TIZP4YG.js";
15
- import "./chunk-II3ACSV2.js";
15
+ import "./chunk-YNGA3GRX.js";
16
16
  import "./chunk-BI2AYXZQ.js";
17
17
  import "./chunk-MG4GKUJW.js";
18
18
  import "./chunk-AYVH6Q5O.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CategoryListPage
3
- } from "./chunk-AKKIZD2P.js";
3
+ } from "./chunk-UUDRVBJX.js";
4
4
  import "./chunk-JHIMVLB2.js";
5
5
  import "./chunk-LYYM7H7H.js";
6
6
  import "./chunk-FQERBIVS.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-EBZ5VZEO.js";
11
11
  import {
12
12
  useCollectionTableColumns
13
- } from "./chunk-II3ACSV2.js";
13
+ } from "./chunk-YNGA3GRX.js";
14
14
  import {
15
15
  useCollectionTableQuery,
16
16
  useProductTagTableQuery
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useCollectionTableColumns
3
- } from "./chunk-II3ACSV2.js";
3
+ } from "./chunk-YNGA3GRX.js";
4
4
  import {
5
5
  useCollectionTableQuery
6
6
  } from "./chunk-BI2AYXZQ.js";
@@ -99,7 +99,7 @@ var useCategoryTableColumns = () => {
99
99
  )) });
100
100
  }
101
101
  const gallery = getCategoryGallery(
102
- row.original.images
102
+ row.original.media_images
103
103
  );
104
104
  const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
105
105
  return /* @__PURE__ */ jsxs2("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
@@ -22,7 +22,7 @@ var useCollectionTableColumns = () => {
22
22
  header: t("fields.title"),
23
23
  cell: ({ getValue, row }) => {
24
24
  const gallery = getCollectionGallery(
25
- row.original.images
25
+ row.original.media_images
26
26
  );
27
27
  const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
28
28
  return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CollectionListPage
3
- } from "./chunk-4EQIJMQT.js";
4
- import "./chunk-II3ACSV2.js";
3
+ } from "./chunk-QPZDRSZB.js";
4
+ import "./chunk-YNGA3GRX.js";
5
5
  import "./chunk-BI2AYXZQ.js";
6
6
  import "./chunk-MG4GKUJW.js";
7
7
  import "./chunk-AYVH6Q5O.js";
@@ -3,7 +3,7 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-HZCSJLGH.js";
6
+ } from "./chunk-OCKJNR4P.js";
7
7
  import "./chunk-Q4UVXS46.js";
8
8
  import {
9
9
  PercentageInput
@@ -12,7 +12,7 @@ import "./chunk-N335VHD3.js";
12
12
  import "./chunk-EBZ5VZEO.js";
13
13
  import "./chunk-4F5GP7J7.js";
14
14
  import "./chunk-7TIZP4YG.js";
15
- import "./chunk-II3ACSV2.js";
15
+ import "./chunk-YNGA3GRX.js";
16
16
  import "./chunk-BI2AYXZQ.js";
17
17
  import "./chunk-MG4GKUJW.js";
18
18
  import "./chunk-AYVH6Q5O.js";
@@ -3,7 +3,7 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-HZCSJLGH.js";
6
+ } from "./chunk-OCKJNR4P.js";
7
7
  import "./chunk-Q4UVXS46.js";
8
8
  import {
9
9
  PercentageInput
@@ -12,7 +12,7 @@ import "./chunk-N335VHD3.js";
12
12
  import "./chunk-EBZ5VZEO.js";
13
13
  import "./chunk-4F5GP7J7.js";
14
14
  import "./chunk-7TIZP4YG.js";
15
- import "./chunk-II3ACSV2.js";
15
+ import "./chunk-YNGA3GRX.js";
16
16
  import "./chunk-BI2AYXZQ.js";
17
17
  import "./chunk-MG4GKUJW.js";
18
18
  import "./chunk-AYVH6Q5O.js";
package/dist/index.js CHANGED
@@ -3122,7 +3122,7 @@ function getRouteMap({
3122
3122
  {
3123
3123
  path: "",
3124
3124
  lazy: async () => {
3125
- const { CategoryListPage } = await import("./categories-3P2DRH5V.js");
3125
+ const { CategoryListPage } = await import("./categories-JM5HQP3Q.js");
3126
3126
  return {
3127
3127
  Component: CategoryListPage
3128
3128
  };
@@ -3137,7 +3137,7 @@ function getRouteMap({
3137
3137
  {
3138
3138
  path: ":id",
3139
3139
  lazy: async () => {
3140
- const { loader } = await import("./[id]-E7DYRMMO.js");
3140
+ const { loader } = await import("./[id]-YJIKYRC4.js");
3141
3141
  const { Breadcrumb } = await import("./breadcrumb-2AYN2SV7.js");
3142
3142
  return {
3143
3143
  Component: Outlet4,
@@ -3151,7 +3151,7 @@ function getRouteMap({
3151
3151
  {
3152
3152
  path: "",
3153
3153
  lazy: async () => {
3154
- const { CategoryDetailPage } = await import("./[id]-E7DYRMMO.js");
3154
+ const { CategoryDetailPage } = await import("./[id]-YJIKYRC4.js");
3155
3155
  return {
3156
3156
  Component: CategoryDetailPage
3157
3157
  };
@@ -3184,7 +3184,7 @@ function getRouteMap({
3184
3184
  {
3185
3185
  path: "",
3186
3186
  lazy: async () => {
3187
- const { CollectionListPage } = await import("./collections-C5XCGVCG.js");
3187
+ const { CollectionListPage } = await import("./collections-66Q55JUI.js");
3188
3188
  return {
3189
3189
  Component: CollectionListPage
3190
3190
  };
@@ -3193,7 +3193,7 @@ function getRouteMap({
3193
3193
  {
3194
3194
  path: ":id",
3195
3195
  lazy: async () => {
3196
- const { loader } = await import("./[id]-3JICOSAI.js");
3196
+ const { loader } = await import("./[id]-5PXEWKER.js");
3197
3197
  const { Breadcrumb } = await import("./breadcrumb-XPQETVMM.js");
3198
3198
  return {
3199
3199
  Component: Outlet4,
@@ -3207,7 +3207,7 @@ function getRouteMap({
3207
3207
  {
3208
3208
  path: "",
3209
3209
  lazy: async () => {
3210
- const { CollectionDetailPage } = await import("./[id]-3JICOSAI.js");
3210
+ const { CollectionDetailPage } = await import("./[id]-5PXEWKER.js");
3211
3211
  return {
3212
3212
  Component: CollectionDetailPage
3213
3213
  };
@@ -3245,7 +3245,7 @@ function getRouteMap({
3245
3245
  {
3246
3246
  path: ":id",
3247
3247
  lazy: async () => {
3248
- const { loader } = await import("./[id]-NXWDM34U.js");
3248
+ const { loader } = await import("./[id]-PGKXY75Z.js");
3249
3249
  const { Breadcrumb } = await import("./breadcrumb-LBO2I4OJ.js");
3250
3250
  return {
3251
3251
  Component: Outlet4,
@@ -3259,7 +3259,7 @@ function getRouteMap({
3259
3259
  {
3260
3260
  path: "",
3261
3261
  lazy: async () => {
3262
- const { CustomerDetailPage } = await import("./[id]-NXWDM34U.js");
3262
+ const { CustomerDetailPage } = await import("./[id]-PGKXY75Z.js");
3263
3263
  return {
3264
3264
  Component: CustomerDetailPage
3265
3265
  };
@@ -3685,7 +3685,7 @@ function getRouteMap({
3685
3685
  },
3686
3686
  {
3687
3687
  path: "products/add",
3688
- lazy: () => import("./add-2OW5QLU2.js")
3688
+ lazy: () => import("./add-EE67SXQJ.js")
3689
3689
  },
3690
3690
  {
3691
3691
  path: "products/edit",
@@ -3753,7 +3753,7 @@ function getRouteMap({
3753
3753
  {
3754
3754
  index: true,
3755
3755
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3756
- lazy: () => import("./settings-KRUN36KA.js")
3756
+ lazy: () => import("./settings-CGD3WPJK.js")
3757
3757
  },
3758
3758
  // PROFILE
3759
3759
  {
@@ -3998,11 +3998,11 @@ function getRouteMap({
3998
3998
  },
3999
3999
  {
4000
4000
  path: "tax-overrides/create",
4001
- lazy: () => import("./create-22MSY7W6.js")
4001
+ lazy: () => import("./create-IGK3RHU7.js")
4002
4002
  },
4003
4003
  {
4004
4004
  path: "tax-overrides/:tax_rate_id/edit",
4005
- lazy: () => import("./edit-CSOADLGQ.js")
4005
+ lazy: () => import("./edit-FPTAY3EX.js")
4006
4006
  },
4007
4007
  {
4008
4008
  path: "provinces/create",
@@ -4031,11 +4031,11 @@ function getRouteMap({
4031
4031
  },
4032
4032
  {
4033
4033
  path: "tax-overrides/create",
4034
- lazy: () => import("./create-22MSY7W6.js")
4034
+ lazy: () => import("./create-IGK3RHU7.js")
4035
4035
  },
4036
4036
  {
4037
4037
  path: "tax-overrides/:tax_rate_id/edit",
4038
- lazy: () => import("./edit-CSOADLGQ.js")
4038
+ lazy: () => import("./edit-FPTAY3EX.js")
4039
4039
  }
4040
4040
  ]
4041
4041
  }
@@ -4053,14 +4053,14 @@ function getRouteMap({
4053
4053
  {
4054
4054
  path: "",
4055
4055
  lazy: async () => {
4056
- const { ProductTagListPage } = await import("./product-tags-4FHA7A6P.js");
4056
+ const { ProductTagListPage } = await import("./product-tags-3XMULQGD.js");
4057
4057
  return { Component: ProductTagListPage };
4058
4058
  }
4059
4059
  },
4060
4060
  {
4061
4061
  path: ":id",
4062
4062
  lazy: async () => {
4063
- const { loader } = await import("./[id]-MXNIHS2A.js");
4063
+ const { loader } = await import("./[id]-35EHXGJK.js");
4064
4064
  const { ProductTagDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-4XSHX5RV.js");
4065
4065
  return {
4066
4066
  Component: Outlet4,
@@ -4074,7 +4074,7 @@ function getRouteMap({
4074
4074
  {
4075
4075
  path: "",
4076
4076
  lazy: async () => {
4077
- const { ProductTagDetailPage } = await import("./[id]-MXNIHS2A.js");
4077
+ const { ProductTagDetailPage } = await import("./[id]-35EHXGJK.js");
4078
4078
  return { Component: ProductTagDetailPage };
4079
4079
  },
4080
4080
  children: [
@@ -4175,7 +4175,7 @@ function getRouteMap({
4175
4175
  children: [
4176
4176
  {
4177
4177
  path: "",
4178
- lazy: () => import("./return-reasons-IXSWNVGX.js"),
4178
+ lazy: () => import("./return-reasons-IHEACVG3.js"),
4179
4179
  children: [
4180
4180
  {
4181
4181
  path: "create",
@@ -48,8 +48,8 @@ import {
48
48
  import "../chunk-XQUF3WIS.js";
49
49
  import {
50
50
  CollectionListPage
51
- } from "../chunk-4EQIJMQT.js";
52
- import "../chunk-II3ACSV2.js";
51
+ } from "../chunk-QPZDRSZB.js";
52
+ import "../chunk-YNGA3GRX.js";
53
53
  import "../chunk-BI2AYXZQ.js";
54
54
  import "../chunk-MG4GKUJW.js";
55
55
  import "../chunk-AYVH6Q5O.js";
@@ -69,7 +69,7 @@ import "../chunk-27WLUOI2.js";
69
69
  import "../chunk-N3T24SEK.js";
70
70
  import {
71
71
  CategoryListPage
72
- } from "../chunk-AKKIZD2P.js";
72
+ } from "../chunk-UUDRVBJX.js";
73
73
  import "../chunk-JHIMVLB2.js";
74
74
  import "../chunk-7AV5EJJ5.js";
75
75
  import "../chunk-LYYM7H7H.js";
@@ -5,7 +5,7 @@ import "./chunk-N335VHD3.js";
5
5
  import "./chunk-EBZ5VZEO.js";
6
6
  import "./chunk-4F5GP7J7.js";
7
7
  import "./chunk-7TIZP4YG.js";
8
- import "./chunk-II3ACSV2.js";
8
+ import "./chunk-YNGA3GRX.js";
9
9
  import "./chunk-BI2AYXZQ.js";
10
10
  import "./chunk-MG4GKUJW.js";
11
11
  import "./chunk-AYVH6Q5O.js";
@@ -8,7 +8,7 @@ import {
8
8
  import "./chunk-EBZ5VZEO.js";
9
9
  import "./chunk-4F5GP7J7.js";
10
10
  import "./chunk-7TIZP4YG.js";
11
- import "./chunk-II3ACSV2.js";
11
+ import "./chunk-YNGA3GRX.js";
12
12
  import {
13
13
  useReturnReasonTableQuery
14
14
  } from "./chunk-BI2AYXZQ.js";
@@ -19,7 +19,7 @@ import "./chunk-N335VHD3.js";
19
19
  import "./chunk-EBZ5VZEO.js";
20
20
  import "./chunk-4F5GP7J7.js";
21
21
  import "./chunk-7TIZP4YG.js";
22
- import "./chunk-II3ACSV2.js";
22
+ import "./chunk-YNGA3GRX.js";
23
23
  import "./chunk-BI2AYXZQ.js";
24
24
  import "./chunk-MG4GKUJW.js";
25
25
  import "./chunk-AYVH6Q5O.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/vendor",
3
- "version": "2.2.0-canary.22",
3
+ "version": "2.2.0-canary.24",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",