@medusajs/dashboard 2.0.5 → 2.0.6
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
CHANGED
|
@@ -42075,8 +42075,8 @@ var init_edit_product_media_form = __esm({
|
|
|
42075
42075
|
const thumbnail = withUpdatedUrls.find((m) => m.isThumbnail)?.url;
|
|
42076
42076
|
await mutateAsync(
|
|
42077
42077
|
{
|
|
42078
|
-
images: withUpdatedUrls.map((file) => ({ url: file.url })),
|
|
42079
|
-
thumbnail
|
|
42078
|
+
images: withUpdatedUrls.map((file) => ({ url: file.url, id: file.id })),
|
|
42079
|
+
thumbnail: thumbnail || null
|
|
42080
42080
|
},
|
|
42081
42081
|
{
|
|
42082
42082
|
onSuccess: () => {
|
package/dist/app.mjs
CHANGED
|
@@ -125,8 +125,8 @@ var EditProductMediaForm = ({ product }) => {
|
|
|
125
125
|
const thumbnail = withUpdatedUrls.find((m) => m.isThumbnail)?.url;
|
|
126
126
|
await mutateAsync(
|
|
127
127
|
{
|
|
128
|
-
images: withUpdatedUrls.map((file) => ({ url: file.url })),
|
|
129
|
-
thumbnail
|
|
128
|
+
images: withUpdatedUrls.map((file) => ({ url: file.url, id: file.id })),
|
|
129
|
+
thumbnail: thumbnail || null
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
onSuccess: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "vite",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@dnd-kit/sortable": "^8.0.0",
|
|
46
46
|
"@hookform/error-message": "^2.0.1",
|
|
47
47
|
"@hookform/resolvers": "3.4.2",
|
|
48
|
-
"@medusajs/admin-shared": "2.0.
|
|
49
|
-
"@medusajs/icons": "2.0.
|
|
50
|
-
"@medusajs/js-sdk": "2.0.
|
|
48
|
+
"@medusajs/admin-shared": "2.0.6",
|
|
49
|
+
"@medusajs/icons": "2.0.6",
|
|
50
|
+
"@medusajs/js-sdk": "2.0.6",
|
|
51
51
|
"@medusajs/ui": "4.0.1",
|
|
52
52
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
53
53
|
"@tanstack/react-query": "^5.28.14",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"zod": "3.22.4"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@medusajs/admin-shared": "^2.0.
|
|
79
|
-
"@medusajs/admin-vite-plugin": "2.0.
|
|
80
|
-
"@medusajs/types": "2.0.
|
|
81
|
-
"@medusajs/ui-preset": "2.0.
|
|
78
|
+
"@medusajs/admin-shared": "^2.0.6",
|
|
79
|
+
"@medusajs/admin-vite-plugin": "2.0.6",
|
|
80
|
+
"@medusajs/types": "2.0.6",
|
|
81
|
+
"@medusajs/ui-preset": "2.0.6",
|
|
82
82
|
"@types/node": "^20.11.15",
|
|
83
83
|
"@types/react": "^18.2.79",
|
|
84
84
|
"@types/react-dom": "^18.2.25",
|
|
@@ -132,8 +132,8 @@ export const EditProductMediaForm = ({ product }: ProductMediaViewProps) => {
|
|
|
132
132
|
|
|
133
133
|
await mutateAsync(
|
|
134
134
|
{
|
|
135
|
-
images: withUpdatedUrls.map((file) => ({ url: file.url })),
|
|
136
|
-
thumbnail: thumbnail,
|
|
135
|
+
images: withUpdatedUrls.map((file) => ({ url: file.url, id: file.id })),
|
|
136
|
+
thumbnail: thumbnail || null,
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
onSuccess: () => {
|