@crystaldesign/diva-seller 24.13.0-beta.13 → 24.13.0-beta.14
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/build/esm/index.js
CHANGED
|
@@ -1009,7 +1009,7 @@ function _apiLoadBasket() {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
key = 'customData.SAP_MARA_MATNR.value';
|
|
1011
1011
|
value = customProductId;
|
|
1012
|
-
fullUrl = apiConfig.catalogService + "/v1/products/basket?key=".concat(key, "&value=").concat(value);
|
|
1012
|
+
fullUrl = apiConfig.catalogService + "/v1/products/basket?key=".concat(key, "&value=").concat(value, "&repair=true");
|
|
1013
1013
|
_context8.next = 17;
|
|
1014
1014
|
return fetch(fullUrl, {
|
|
1015
1015
|
method: 'POST',
|
|
@@ -10655,11 +10655,10 @@ function MediaTable (_ref) {
|
|
|
10655
10655
|
onEdit: function onEdit(item) {
|
|
10656
10656
|
var _item$files;
|
|
10657
10657
|
setOpenFile((_item$files = item.files) === null || _item$files === void 0 ? void 0 : _item$files.map(function (f) {
|
|
10658
|
-
return f.file ? f.file : {
|
|
10659
|
-
ref: f.ref,
|
|
10658
|
+
return f.file ? f.file : _objectSpread$6(_objectSpread$6({}, f), {}, {
|
|
10660
10659
|
state: 'SAVED',
|
|
10661
10660
|
fileName: ''
|
|
10662
|
-
};
|
|
10661
|
+
});
|
|
10663
10662
|
}));
|
|
10664
10663
|
setOpenDrawer(true);
|
|
10665
10664
|
}
|
|
@@ -12123,39 +12122,39 @@ function updateMedia(currentState, data, variants) {
|
|
|
12123
12122
|
throw new Error('The array of media items must be of the same amount as the selected products, this is a bug.');
|
|
12124
12123
|
}
|
|
12125
12124
|
products.forEach(function (product, i) {
|
|
12126
|
-
var _data$i;
|
|
12127
12125
|
if (!product.media) {
|
|
12128
12126
|
product.media = [];
|
|
12129
12127
|
}
|
|
12130
|
-
|
|
12131
|
-
|
|
12128
|
+
var media = data[i];
|
|
12129
|
+
if ((media === null || media === void 0 ? void 0 : media.ref) == undefined && !product.media.find(function (m) {
|
|
12130
|
+
return m.url == media.url;
|
|
12132
12131
|
})) {
|
|
12133
12132
|
var _product$media3;
|
|
12134
12133
|
//if ref is defined it is already stored on the server, so it is not new
|
|
12135
12134
|
//it can still be that the media is changed again before saving so we also check for equal urls
|
|
12136
12135
|
(_product$media3 = product.media) === null || _product$media3 === void 0 || _product$media3.push({
|
|
12137
|
-
file:
|
|
12138
|
-
url:
|
|
12139
|
-
functionType:
|
|
12140
|
-
mediaType:
|
|
12141
|
-
description:
|
|
12142
|
-
borderPercentage:
|
|
12143
|
-
name:
|
|
12136
|
+
file: media,
|
|
12137
|
+
url: media.url,
|
|
12138
|
+
functionType: media.functionType,
|
|
12139
|
+
mediaType: media.mediaType,
|
|
12140
|
+
description: media.description,
|
|
12141
|
+
borderPercentage: media.borderPercentage,
|
|
12142
|
+
name: media.fileName
|
|
12144
12143
|
});
|
|
12145
12144
|
} else {
|
|
12146
12145
|
//otherwise it is already in storage and only meta data was edited
|
|
12147
12146
|
var index = product.media.findIndex(function (m) {
|
|
12148
|
-
|
|
12149
|
-
return m.url == ((_data$i2 = data[i]) === null || _data$i2 === void 0 ? void 0 : _data$i2.url);
|
|
12147
|
+
return m.url == (media === null || media === void 0 ? void 0 : media.url);
|
|
12150
12148
|
});
|
|
12151
12149
|
if (index !== -1) product.media.splice(index, 1, {
|
|
12152
|
-
file:
|
|
12153
|
-
url:
|
|
12154
|
-
functionType:
|
|
12155
|
-
mediaType:
|
|
12156
|
-
description:
|
|
12157
|
-
borderPercentage:
|
|
12158
|
-
name:
|
|
12150
|
+
file: media,
|
|
12151
|
+
url: media.url,
|
|
12152
|
+
functionType: media.functionType,
|
|
12153
|
+
mediaType: media.mediaType,
|
|
12154
|
+
description: media.description,
|
|
12155
|
+
borderPercentage: media.borderPercentage,
|
|
12156
|
+
name: media.fileName,
|
|
12157
|
+
ref: media.ref
|
|
12159
12158
|
});
|
|
12160
12159
|
}
|
|
12161
12160
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ProductCreator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ProductCreator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAKtD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoBnD,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,qBAqajD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "24.13.0-beta.
|
|
3
|
+
"version": "24.13.0-beta.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-dom": "^18.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@crystaldesign/analytics": "24.13.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "24.13.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "24.13.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "24.13.0-beta.14",
|
|
33
|
+
"@crystaldesign/products-component": "24.13.0-beta.14",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "24.13.0-beta.14",
|
|
35
35
|
"@material-ui/core": "^4.12.4",
|
|
36
36
|
"@material-ui/icons": "^4.11.2",
|
|
37
37
|
"react-error-boundary": "^4.0.13",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
},
|
|
42
42
|
"types": "./build/types/seller/src/index.d.ts",
|
|
43
43
|
"module": "build/esm/index.js",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "c839d77b640aa2f10b16c8d91a1db3ea8b80e7ec"
|
|
45
45
|
}
|