@medusajs/dashboard 2.11.3-snapshot-20251103115905 → 2.11.3
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.
- package/dist/app.js +14 -10
- package/dist/app.mjs +2 -2
- package/dist/{chunk-ZUUKLYH4.mjs → chunk-HKVC5HU4.mjs} +1 -1
- package/dist/{chunk-PYIPIUAY.mjs → chunk-HQKKXLCX.mjs} +10 -10
- package/dist/{chunk-VLOA5XAC.mjs → chunk-YCDDT44O.mjs} +8 -4
- package/dist/{manage-locations-ZRCDYW5V.mjs → manage-locations-WMH3RQMR.mjs} +1 -1
- package/dist/{product-attributes-3GCAY7KW.mjs → product-attributes-3G4WLO2U.mjs} +3 -3
- package/dist/{product-create-4TD7FQC7.mjs → product-create-XBHMV6Y2.mjs} +2 -2
- package/dist/{product-detail-J7T7MNUY.mjs → product-detail-US6PTUZ5.mjs} +3 -3
- package/dist/{product-edit-MJ7VAIVY.mjs → product-edit-5HJN5HWG.mjs} +3 -3
- package/dist/{product-import-HDNC36SM.mjs → product-import-5VLF2ZN4.mjs} +6 -6
- package/dist/{product-organization-263TICCI.mjs → product-organization-UMODMJCZ.mjs} +3 -3
- package/dist/{product-shipping-profile-GVTR3MHD.mjs → product-shipping-profile-DWYLGG7Q.mjs} +3 -3
- package/package.json +9 -9
- package/src/components/common/infinite-list/infinite-list.tsx +9 -4
- package/src/routes/products/product-import/helpers/import-template.ts +6 -6
package/dist/app.js
CHANGED
|
@@ -92689,6 +92689,12 @@ var init_infinite_list = __esm({
|
|
|
92689
92689
|
const parentRef = (0, import_react22.useRef)(null);
|
|
92690
92690
|
const startObserver = (0, import_react22.useRef)();
|
|
92691
92691
|
const endObserver = (0, import_react22.useRef)();
|
|
92692
|
+
const fetchNextPageRef = (0, import_react22.useRef)(fetchNextPage);
|
|
92693
|
+
const fetchPreviousPageRef = (0, import_react22.useRef)(fetchPreviousPage);
|
|
92694
|
+
(0, import_react22.useEffect)(() => {
|
|
92695
|
+
fetchNextPageRef.current = fetchNextPage;
|
|
92696
|
+
fetchPreviousPageRef.current = fetchPreviousPage;
|
|
92697
|
+
}, [fetchNextPage, fetchPreviousPage]);
|
|
92692
92698
|
(0, import_react22.useEffect)(() => {
|
|
92693
92699
|
if (isPending) {
|
|
92694
92700
|
return;
|
|
@@ -92698,7 +92704,7 @@ var init_infinite_list = __esm({
|
|
|
92698
92704
|
(entries) => {
|
|
92699
92705
|
if (entries[0].isIntersecting && hasPreviousPage) {
|
|
92700
92706
|
startObserver.current?.disconnect();
|
|
92701
|
-
|
|
92707
|
+
fetchPreviousPageRef.current();
|
|
92702
92708
|
}
|
|
92703
92709
|
},
|
|
92704
92710
|
{
|
|
@@ -92709,7 +92715,7 @@ var init_infinite_list = __esm({
|
|
|
92709
92715
|
(entries) => {
|
|
92710
92716
|
if (entries[0].isIntersecting && hasNextPage) {
|
|
92711
92717
|
endObserver.current?.disconnect();
|
|
92712
|
-
|
|
92718
|
+
fetchNextPageRef.current();
|
|
92713
92719
|
}
|
|
92714
92720
|
},
|
|
92715
92721
|
{
|
|
@@ -92728,8 +92734,6 @@ var init_infinite_list = __esm({
|
|
|
92728
92734
|
endObserver.current?.disconnect();
|
|
92729
92735
|
};
|
|
92730
92736
|
}, [
|
|
92731
|
-
fetchNextPage,
|
|
92732
|
-
fetchPreviousPage,
|
|
92733
92737
|
hasNextPage,
|
|
92734
92738
|
hasPreviousPage,
|
|
92735
92739
|
isFetching,
|
|
@@ -111394,12 +111398,12 @@ var ProductImportCSV, getProductImportCsvTemplate;
|
|
|
111394
111398
|
var init_import_template = __esm({
|
|
111395
111399
|
"src/routes/products/product-import/helpers/import-template.ts"() {
|
|
111396
111400
|
"use strict";
|
|
111397
|
-
ProductImportCSV = `data:text/csv;charset=utf-8,Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
111398
|
-
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400
|
|
111399
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
111400
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
111401
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
111402
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
111401
|
+
ProductImportCSV = `data:text/csv;charset=utf-8,Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Shipping Profile Id,Product Sales Channel 1,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
111402
|
+
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400,,,,,,,,,,,,,TRUE,,,One Size,,,FALSE,TRUE,,,,,,,,,10,12,Size,One Size,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,
|
|
111403
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,S,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,S,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
111404
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,M,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,M,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
111405
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,L,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,L,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
111406
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,XL,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,XL,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png`;
|
|
111403
111407
|
getProductImportCsvTemplate = () => {
|
|
111404
111408
|
return encodeURI(ProductImportCSV);
|
|
111405
111409
|
};
|
package/dist/app.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardApp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HQKKXLCX.mjs";
|
|
4
4
|
import "./chunk-NQIC7ZFS.mjs";
|
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-YCDDT44O.mjs";
|
|
7
7
|
import "./chunk-4GQOUCX6.mjs";
|
|
8
8
|
import "./chunk-2VTICXJR.mjs";
|
|
9
9
|
import "./chunk-D3YQN7HV.mjs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-ONB3JEHR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
InfiniteList
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YCDDT44O.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useReturnReasons
|
|
13
13
|
} from "./chunk-2VTICXJR.mjs";
|
|
@@ -89284,11 +89284,11 @@ function getRouteMap({
|
|
|
89284
89284
|
children: [
|
|
89285
89285
|
{
|
|
89286
89286
|
path: "create",
|
|
89287
|
-
lazy: () => import("./product-create-
|
|
89287
|
+
lazy: () => import("./product-create-XBHMV6Y2.mjs")
|
|
89288
89288
|
},
|
|
89289
89289
|
{
|
|
89290
89290
|
path: "import",
|
|
89291
|
-
lazy: () => import("./product-import-
|
|
89291
|
+
lazy: () => import("./product-import-5VLF2ZN4.mjs")
|
|
89292
89292
|
},
|
|
89293
89293
|
{
|
|
89294
89294
|
path: "export",
|
|
@@ -89300,7 +89300,7 @@ function getRouteMap({
|
|
|
89300
89300
|
path: ":id",
|
|
89301
89301
|
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
|
89302
89302
|
lazy: async () => {
|
|
89303
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
|
89303
|
+
const { Breadcrumb, loader } = await import("./product-detail-US6PTUZ5.mjs");
|
|
89304
89304
|
return {
|
|
89305
89305
|
Component: Outlet4,
|
|
89306
89306
|
loader,
|
|
@@ -89312,11 +89312,11 @@ function getRouteMap({
|
|
|
89312
89312
|
children: [
|
|
89313
89313
|
{
|
|
89314
89314
|
path: "",
|
|
89315
|
-
lazy: () => import("./product-detail-
|
|
89315
|
+
lazy: () => import("./product-detail-US6PTUZ5.mjs"),
|
|
89316
89316
|
children: [
|
|
89317
89317
|
{
|
|
89318
89318
|
path: "edit",
|
|
89319
|
-
lazy: () => import("./product-edit-
|
|
89319
|
+
lazy: () => import("./product-edit-5HJN5HWG.mjs")
|
|
89320
89320
|
},
|
|
89321
89321
|
{
|
|
89322
89322
|
path: "edit-variant",
|
|
@@ -89328,15 +89328,15 @@ function getRouteMap({
|
|
|
89328
89328
|
},
|
|
89329
89329
|
{
|
|
89330
89330
|
path: "attributes",
|
|
89331
|
-
lazy: () => import("./product-attributes-
|
|
89331
|
+
lazy: () => import("./product-attributes-3G4WLO2U.mjs")
|
|
89332
89332
|
},
|
|
89333
89333
|
{
|
|
89334
89334
|
path: "organization",
|
|
89335
|
-
lazy: () => import("./product-organization-
|
|
89335
|
+
lazy: () => import("./product-organization-UMODMJCZ.mjs")
|
|
89336
89336
|
},
|
|
89337
89337
|
{
|
|
89338
89338
|
path: "shipping-profile",
|
|
89339
|
-
lazy: () => import("./product-shipping-profile-
|
|
89339
|
+
lazy: () => import("./product-shipping-profile-DWYLGG7Q.mjs")
|
|
89340
89340
|
},
|
|
89341
89341
|
{
|
|
89342
89342
|
path: "media",
|
|
@@ -89928,7 +89928,7 @@ function getRouteMap({
|
|
|
89928
89928
|
},
|
|
89929
89929
|
{
|
|
89930
89930
|
path: "locations",
|
|
89931
|
-
lazy: () => import("./manage-locations-
|
|
89931
|
+
lazy: () => import("./manage-locations-WMH3RQMR.mjs")
|
|
89932
89932
|
},
|
|
89933
89933
|
{
|
|
89934
89934
|
path: "locations/:location_id",
|
|
@@ -48,6 +48,12 @@ var InfiniteList = ({
|
|
|
48
48
|
const parentRef = useRef(null);
|
|
49
49
|
const startObserver = useRef();
|
|
50
50
|
const endObserver = useRef();
|
|
51
|
+
const fetchNextPageRef = useRef(fetchNextPage);
|
|
52
|
+
const fetchPreviousPageRef = useRef(fetchPreviousPage);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
fetchNextPageRef.current = fetchNextPage;
|
|
55
|
+
fetchPreviousPageRef.current = fetchPreviousPage;
|
|
56
|
+
}, [fetchNextPage, fetchPreviousPage]);
|
|
51
57
|
useEffect(() => {
|
|
52
58
|
if (isPending) {
|
|
53
59
|
return;
|
|
@@ -57,7 +63,7 @@ var InfiniteList = ({
|
|
|
57
63
|
(entries) => {
|
|
58
64
|
if (entries[0].isIntersecting && hasPreviousPage) {
|
|
59
65
|
startObserver.current?.disconnect();
|
|
60
|
-
|
|
66
|
+
fetchPreviousPageRef.current();
|
|
61
67
|
}
|
|
62
68
|
},
|
|
63
69
|
{
|
|
@@ -68,7 +74,7 @@ var InfiniteList = ({
|
|
|
68
74
|
(entries) => {
|
|
69
75
|
if (entries[0].isIntersecting && hasNextPage) {
|
|
70
76
|
endObserver.current?.disconnect();
|
|
71
|
-
|
|
77
|
+
fetchNextPageRef.current();
|
|
72
78
|
}
|
|
73
79
|
},
|
|
74
80
|
{
|
|
@@ -87,8 +93,6 @@ var InfiniteList = ({
|
|
|
87
93
|
endObserver.current?.disconnect();
|
|
88
94
|
};
|
|
89
95
|
}, [
|
|
90
|
-
fetchNextPage,
|
|
91
|
-
fetchPreviousPage,
|
|
92
96
|
hasNextPage,
|
|
93
97
|
hasPreviousPage,
|
|
94
98
|
isFetching,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
} from "./chunk-AERWK3TJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
PRODUCT_DETAIL_FIELDS
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HKVC5HU4.mjs";
|
|
16
16
|
import {
|
|
17
17
|
FormExtensionZone,
|
|
18
18
|
useExtendableForm
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HQKKXLCX.mjs";
|
|
20
20
|
import "./chunk-NQIC7ZFS.mjs";
|
|
21
21
|
import "./chunk-ONB3JEHR.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YCDDT44O.mjs";
|
|
23
23
|
import "./chunk-4GQOUCX6.mjs";
|
|
24
24
|
import "./chunk-2VTICXJR.mjs";
|
|
25
25
|
import "./chunk-D3YQN7HV.mjs";
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
FormExtensionZone,
|
|
63
63
|
useExtendableForm
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-HQKKXLCX.mjs";
|
|
65
65
|
import "./chunk-NQIC7ZFS.mjs";
|
|
66
66
|
import "./chunk-ONB3JEHR.mjs";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-YCDDT44O.mjs";
|
|
68
68
|
import "./chunk-4GQOUCX6.mjs";
|
|
69
69
|
import "./chunk-2VTICXJR.mjs";
|
|
70
70
|
import "./chunk-D3YQN7HV.mjs";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
import "./chunk-PFKKVLZX.mjs";
|
|
28
28
|
import {
|
|
29
29
|
PRODUCT_DETAIL_FIELDS
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-HKVC5HU4.mjs";
|
|
31
|
+
import "./chunk-HQKKXLCX.mjs";
|
|
32
32
|
import "./chunk-NQIC7ZFS.mjs";
|
|
33
33
|
import "./chunk-ONB3JEHR.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YCDDT44O.mjs";
|
|
35
35
|
import "./chunk-4GQOUCX6.mjs";
|
|
36
36
|
import "./chunk-2VTICXJR.mjs";
|
|
37
37
|
import "./chunk-D3YQN7HV.mjs";
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
} from "./chunk-AERWK3TJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PRODUCT_DETAIL_FIELDS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HKVC5HU4.mjs";
|
|
19
19
|
import {
|
|
20
20
|
FormExtensionZone,
|
|
21
21
|
useExtendableForm
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HQKKXLCX.mjs";
|
|
23
23
|
import "./chunk-NQIC7ZFS.mjs";
|
|
24
24
|
import "./chunk-ONB3JEHR.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-YCDDT44O.mjs";
|
|
26
26
|
import "./chunk-4GQOUCX6.mjs";
|
|
27
27
|
import "./chunk-2VTICXJR.mjs";
|
|
28
28
|
import "./chunk-D3YQN7HV.mjs";
|
|
@@ -150,12 +150,12 @@ var Stat = ({
|
|
|
150
150
|
import { Trash } from "@medusajs/icons";
|
|
151
151
|
|
|
152
152
|
// src/routes/products/product-import/helpers/import-template.ts
|
|
153
|
-
var ProductImportCSV = `data:text/csv;charset=utf-8,Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
154
|
-
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400
|
|
155
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
156
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
157
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
158
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
153
|
+
var ProductImportCSV = `data:text/csv;charset=utf-8,Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Shipping Profile Id,Product Sales Channel 1,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
154
|
+
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400,,,,,,,,,,,,,TRUE,,,One Size,,,FALSE,TRUE,,,,,,,,,10,12,Size,One Size,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,
|
|
155
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,S,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,S,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
156
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,M,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,M,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
157
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,L,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,L,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
158
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,XL,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,XL,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png`;
|
|
159
159
|
var getProductImportCsvTemplate = () => {
|
|
160
160
|
return encodeURI(ProductImportCSV);
|
|
161
161
|
};
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
} from "./chunk-AERWK3TJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PRODUCT_DETAIL_FIELDS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HKVC5HU4.mjs";
|
|
21
21
|
import {
|
|
22
22
|
FormExtensionZone,
|
|
23
23
|
useExtendableForm
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HQKKXLCX.mjs";
|
|
25
25
|
import "./chunk-NQIC7ZFS.mjs";
|
|
26
26
|
import "./chunk-ONB3JEHR.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-YCDDT44O.mjs";
|
|
28
28
|
import "./chunk-4GQOUCX6.mjs";
|
|
29
29
|
import "./chunk-2VTICXJR.mjs";
|
|
30
30
|
import "./chunk-D3YQN7HV.mjs";
|
package/dist/{product-shipping-profile-GVTR3MHD.mjs → product-shipping-profile-DWYLGG7Q.mjs}
RENAMED
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
} from "./chunk-AERWK3TJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
PRODUCT_DETAIL_FIELDS
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-HKVC5HU4.mjs";
|
|
18
|
+
import "./chunk-HQKKXLCX.mjs";
|
|
19
19
|
import "./chunk-NQIC7ZFS.mjs";
|
|
20
20
|
import "./chunk-ONB3JEHR.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YCDDT44O.mjs";
|
|
22
22
|
import "./chunk-4GQOUCX6.mjs";
|
|
23
23
|
import "./chunk-2VTICXJR.mjs";
|
|
24
24
|
import "./chunk-D3YQN7HV.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.11.3
|
|
3
|
+
"version": "2.11.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "vite",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
47
|
"@hookform/error-message": "^2.0.1",
|
|
48
48
|
"@hookform/resolvers": "3.4.2",
|
|
49
|
-
"@medusajs/admin-shared": "2.11.3
|
|
50
|
-
"@medusajs/icons": "2.11.3
|
|
51
|
-
"@medusajs/js-sdk": "2.11.3
|
|
52
|
-
"@medusajs/ui": "4.0.27
|
|
49
|
+
"@medusajs/admin-shared": "2.11.3",
|
|
50
|
+
"@medusajs/icons": "2.11.3",
|
|
51
|
+
"@medusajs/js-sdk": "2.11.3",
|
|
52
|
+
"@medusajs/ui": "4.0.27",
|
|
53
53
|
"@radix-ui/react-dialog": "1.1.4",
|
|
54
54
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
55
55
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"zod": "3.25.76"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@medusajs/admin-shared": "2.11.3
|
|
85
|
-
"@medusajs/admin-vite-plugin": "2.11.3
|
|
86
|
-
"@medusajs/types": "2.11.3
|
|
87
|
-
"@medusajs/ui-preset": "2.11.3
|
|
84
|
+
"@medusajs/admin-shared": "2.11.3",
|
|
85
|
+
"@medusajs/admin-vite-plugin": "2.11.3",
|
|
86
|
+
"@medusajs/types": "2.11.3",
|
|
87
|
+
"@medusajs/ui-preset": "2.11.3"
|
|
88
88
|
},
|
|
89
89
|
"packageManager": "yarn@3.2.1"
|
|
90
90
|
}
|
|
@@ -65,6 +65,13 @@ export const InfiniteList = <
|
|
|
65
65
|
const parentRef = useRef<HTMLDivElement>(null)
|
|
66
66
|
const startObserver = useRef<IntersectionObserver>()
|
|
67
67
|
const endObserver = useRef<IntersectionObserver>()
|
|
68
|
+
const fetchNextPageRef = useRef(fetchNextPage)
|
|
69
|
+
const fetchPreviousPageRef = useRef(fetchPreviousPage)
|
|
70
|
+
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
fetchNextPageRef.current = fetchNextPage
|
|
73
|
+
fetchPreviousPageRef.current = fetchPreviousPage
|
|
74
|
+
}, [fetchNextPage, fetchPreviousPage])
|
|
68
75
|
|
|
69
76
|
useEffect(() => {
|
|
70
77
|
if (isPending) {
|
|
@@ -78,7 +85,7 @@ export const InfiniteList = <
|
|
|
78
85
|
(entries) => {
|
|
79
86
|
if (entries[0].isIntersecting && hasPreviousPage) {
|
|
80
87
|
startObserver.current?.disconnect()
|
|
81
|
-
|
|
88
|
+
fetchPreviousPageRef.current()
|
|
82
89
|
}
|
|
83
90
|
},
|
|
84
91
|
{
|
|
@@ -90,7 +97,7 @@ export const InfiniteList = <
|
|
|
90
97
|
(entries) => {
|
|
91
98
|
if (entries[0].isIntersecting && hasNextPage) {
|
|
92
99
|
endObserver.current?.disconnect()
|
|
93
|
-
|
|
100
|
+
fetchNextPageRef.current()
|
|
94
101
|
}
|
|
95
102
|
},
|
|
96
103
|
{
|
|
@@ -113,8 +120,6 @@ export const InfiniteList = <
|
|
|
113
120
|
endObserver.current?.disconnect()
|
|
114
121
|
}
|
|
115
122
|
}, [
|
|
116
|
-
fetchNextPage,
|
|
117
|
-
fetchPreviousPage,
|
|
118
123
|
hasNextPage,
|
|
119
124
|
hasPreviousPage,
|
|
120
125
|
isFetching,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const ProductImportCSV =
|
|
2
2
|
"data:text/csv;charset=utf-8," +
|
|
3
|
-
`Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
4
|
-
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400
|
|
5
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
6
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
7
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
8
|
-
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400
|
|
3
|
+
`Product Id,Product Handle,Product Title,Product Subtitle,Product Description,Product Status,Product Thumbnail,Product Weight,Product Length,Product Width,Product Height,Product HS Code,Product Origin Country,Product MID Code,Product Material,Shipping Profile Id,Product Sales Channel 1,Product Collection Id,Product Type Id,Product Tag 1,Product Discountable,Product External Id,Variant Id,Variant Title,Variant SKU,Variant Barcode,Variant Allow Backorder,Variant Manage Inventory,Variant Weight,Variant Length,Variant Width,Variant Height,Variant HS Code,Variant Origin Country,Variant MID Code,Variant Material,Variant Price EUR,Variant Price USD,Variant Option 1 Name,Variant Option 1 Value,Product Image 1 Url,Product Image 2 Url
|
|
4
|
+
,coffee-mug-v3,Medusa Coffee Mug,,Every programmer's best friend.,published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,400,,,,,,,,,,,,,TRUE,,,One Size,,,FALSE,TRUE,,,,,,,,,10,12,Size,One Size,https://medusa-public-images.s3.eu-west-1.amazonaws.com/coffee-mug.png,
|
|
5
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,S,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,S,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
6
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,M,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,M,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
7
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,L,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,L,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png
|
|
8
|
+
,sweatpants-v2,Medusa Sweatpants,,"Reimagine the feeling of classic sweatpants. With our cotton sweatpants, everyday essentials no longer have to be ordinary.",published,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,400,,,,,,,,,,,,,TRUE,,,XL,,,FALSE,TRUE,,,,,,,,,29.5,33.5,Size,XL,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-front.png,https://medusa-public-images.s3.eu-west-1.amazonaws.com/sweatpants-gray-back.png`
|
|
9
9
|
|
|
10
10
|
export const getProductImportCsvTemplate = () => {
|
|
11
11
|
return encodeURI(ProductImportCSV)
|