@crystaldesign/diva-seller 26.3.0-beta.9 → 26.4.0-beta.1
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 +101 -41
- package/build/types/seller/src/components/Analytics/index.d.ts.map +1 -1
- package/build/types/seller/src/components/Catalogs/index.d.ts.map +1 -1
- package/build/types/seller/src/components/Collections/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/useModelInfoPage.d.ts.map +1 -1
- package/build/types/seller/src/components/ProductCreator/tabs/VariantTable/index.d.ts.map +1 -1
- package/build/types/seller/src/services/ApiHandler.d.ts +2 -2
- package/package.json +6 -6
package/build/esm/index.js
CHANGED
|
@@ -639,7 +639,7 @@ function _apiLoadCollectionsEnricher() {
|
|
|
639
639
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
640
640
|
while (1) switch (_context3.prev = _context3.next) {
|
|
641
641
|
case 0:
|
|
642
|
-
fullUrl = enricherUrl + '/collections?organizationId=' + organizationId;
|
|
642
|
+
fullUrl = enricherUrl + '/collections/seller?organizationId=' + organizationId;
|
|
643
643
|
_context3.prev = 1;
|
|
644
644
|
_context3.next = 4;
|
|
645
645
|
return fetch(fullUrl, {
|
|
@@ -959,7 +959,7 @@ function _apiLoadCatalogInfoEnricher() {
|
|
|
959
959
|
while (1) switch (_context8.prev = _context8.next) {
|
|
960
960
|
case 0:
|
|
961
961
|
enricherUrl = _ref7.enricherUrl, serieNo = _ref7.serieNo, catalogId = _ref7.catalogId, language = _ref7.language, jwt = _ref7.jwt;
|
|
962
|
-
fullUrl = enricherUrl + '/live/v3.0/catalogs/' + catalogId + '/series' +
|
|
962
|
+
fullUrl = enricherUrl + '/live/v3.0/catalogs/' + catalogId + '/series/' + serieNo;
|
|
963
963
|
_context8.next = 4;
|
|
964
964
|
return fetch(fullUrl, {
|
|
965
965
|
headers: {
|
|
@@ -980,7 +980,7 @@ function _apiLoadCatalogInfoEnricher() {
|
|
|
980
980
|
}
|
|
981
981
|
throw new Error(response.Error);
|
|
982
982
|
case 7:
|
|
983
|
-
cat = response
|
|
983
|
+
cat = response;
|
|
984
984
|
if (cat) {
|
|
985
985
|
_context8.next = 10;
|
|
986
986
|
break;
|
|
@@ -1132,12 +1132,12 @@ function apiLoadEnricherArticles(_x13) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
function _apiLoadEnricherArticles() {
|
|
1134
1134
|
_apiLoadEnricherArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(_ref9) {
|
|
1135
|
-
var
|
|
1135
|
+
var serieNo, catalogId, enricherUrl, jwt, language, t, fullUrl, response, articleList, i, _jsonArticle$widthBas, _jsonArticle$heightBa, _jsonArticle$depthBas, _jsonArticle$detailIn, jsonArticle;
|
|
1136
1136
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1137
1137
|
while (1) switch (_context10.prev = _context10.next) {
|
|
1138
1138
|
case 0:
|
|
1139
|
-
|
|
1140
|
-
fullUrl = enricherUrl + '/live/v3.0/catalogs/' + catalogId + '/series/' +
|
|
1139
|
+
serieNo = _ref9.serieNo, catalogId = _ref9.catalogId, enricherUrl = _ref9.enricherUrl, jwt = _ref9.jwt, language = _ref9.language, t = _ref9.t;
|
|
1140
|
+
fullUrl = enricherUrl + '/live/v3.0/catalogs/' + catalogId + '/series/' + serieNo + '/items?fields=serieNo;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber';
|
|
1141
1141
|
_context10.next = 4;
|
|
1142
1142
|
return fetch(fullUrl, {
|
|
1143
1143
|
headers: {
|
|
@@ -2683,7 +2683,7 @@ function useSellerStateData(_ref) {
|
|
|
2683
2683
|
enricherUrl: apiConfig.enricherService,
|
|
2684
2684
|
jwt: jwt,
|
|
2685
2685
|
language: i18n.language,
|
|
2686
|
-
|
|
2686
|
+
serieNo: (_catalog2 = catalog) === null || _catalog2 === void 0 ? void 0 : _catalog2.codex,
|
|
2687
2687
|
t: t
|
|
2688
2688
|
});
|
|
2689
2689
|
case 45:
|
|
@@ -4203,7 +4203,8 @@ function Catalogs(_ref) {
|
|
|
4203
4203
|
}],
|
|
4204
4204
|
toolbarActions: [].concat(_toConsumableArray(collectionId ? [{
|
|
4205
4205
|
label: t('actions.showAll'),
|
|
4206
|
-
onClick: onShowAllClick
|
|
4206
|
+
onClick: onShowAllClick,
|
|
4207
|
+
forceShow: true
|
|
4207
4208
|
}] : []), _toConsumableArray(enableModelAnalytics && userHasPermission('analyticsmodel') && data.length > 0 ? [{
|
|
4208
4209
|
label: /*#__PURE__*/jsx(Histogram, {
|
|
4209
4210
|
field: "cat",
|
|
@@ -4224,7 +4225,8 @@ function Catalogs(_ref) {
|
|
|
4224
4225
|
}),
|
|
4225
4226
|
onClick: function onClick() {
|
|
4226
4227
|
!analyticsVisible ? setAnalyticsVisible(true) : undefined;
|
|
4227
|
-
}
|
|
4228
|
+
},
|
|
4229
|
+
forceShow: true
|
|
4228
4230
|
}] : [])),
|
|
4229
4231
|
gallery: {
|
|
4230
4232
|
renderCard: renderCard,
|
|
@@ -4455,7 +4457,8 @@ function Collections() {
|
|
|
4455
4457
|
}],
|
|
4456
4458
|
toolbarActions: [{
|
|
4457
4459
|
label: t('actions.showAll'),
|
|
4458
|
-
onClick: onShowAllClick
|
|
4460
|
+
onClick: onShowAllClick,
|
|
4461
|
+
forceShow: true
|
|
4459
4462
|
}].concat(_toConsumableArray(enableModelAnalytics && userHasPermission('analyticsmodel') && data.length > 0 ? [{
|
|
4460
4463
|
label: /*#__PURE__*/jsx(Histogram, {
|
|
4461
4464
|
field: "accountName",
|
|
@@ -4469,7 +4472,8 @@ function Collections() {
|
|
|
4469
4472
|
}),
|
|
4470
4473
|
onClick: function onClick() {
|
|
4471
4474
|
!analyticsVisible ? setAnalyticsVisible(true) : undefined;
|
|
4472
|
-
}
|
|
4475
|
+
},
|
|
4476
|
+
forceShow: true
|
|
4473
4477
|
}] : [])),
|
|
4474
4478
|
gallery: {
|
|
4475
4479
|
renderCard: renderCard,
|
|
@@ -4797,12 +4801,12 @@ function Header$1(_ref) {
|
|
|
4797
4801
|
variant: 'contained',
|
|
4798
4802
|
onClick: doExportToVKP,
|
|
4799
4803
|
disabled: !enableVKPExportButton,
|
|
4800
|
-
children:
|
|
4804
|
+
children: t('basket.navigation.vkpexport')
|
|
4801
4805
|
}), showLiskamExportButton && /*#__PURE__*/jsx(Button, {
|
|
4802
4806
|
color: 'primary',
|
|
4803
4807
|
variant: 'contained',
|
|
4804
4808
|
onClick: doExportToLiskamm,
|
|
4805
|
-
children:
|
|
4809
|
+
children: t('basket.navigation.liskammexport')
|
|
4806
4810
|
}), showProductCreator && /*#__PURE__*/jsx(Tooltip, {
|
|
4807
4811
|
title: t('basket.checkout.step3.productdisabledtext'),
|
|
4808
4812
|
disableHoverListener: !disableProductCreator,
|
|
@@ -8955,6 +8959,7 @@ function useModelInfoPage (_ref) {
|
|
|
8955
8959
|
openPlanner = _useSellerState$actio.openPlanner,
|
|
8956
8960
|
openComponent = _useSellerState$actio.openComponent,
|
|
8957
8961
|
checkAccountLogin = _useSellerState$actio.checkAccountLogin,
|
|
8962
|
+
loadCollections = _useSellerState$actio.loadCollections,
|
|
8958
8963
|
_useSellerState$state = _useSellerState.state,
|
|
8959
8964
|
currentAccountLoginId = _useSellerState$state.currentAccountLoginId,
|
|
8960
8965
|
currentBasketState = _useSellerState$state.currentBasketState,
|
|
@@ -8962,7 +8967,8 @@ function useModelInfoPage (_ref) {
|
|
|
8962
8967
|
configurationData = _useSellerState$state.configurationData,
|
|
8963
8968
|
returnTo = _useSellerState$state.returnTo,
|
|
8964
8969
|
sessionGuid = _useSellerState$state.sessionGuid,
|
|
8965
|
-
originProductId = _useSellerState$state.originProductId
|
|
8970
|
+
originProductId = _useSellerState$state.originProductId,
|
|
8971
|
+
collections = _useSellerState$state.collections;
|
|
8966
8972
|
var _useDivaCore = useDivaCore(),
|
|
8967
8973
|
organization = _useDivaCore.state.organization,
|
|
8968
8974
|
_useDivaCore$actions = _useDivaCore.actions,
|
|
@@ -8972,7 +8978,7 @@ function useModelInfoPage (_ref) {
|
|
|
8972
8978
|
useEffect(function () {
|
|
8973
8979
|
var load = /*#__PURE__*/function () {
|
|
8974
8980
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
8975
|
-
var accountSessionId, _catalogInfoData$, catalogInfoData;
|
|
8981
|
+
var accountSessionId, _collection$enricherS, coll, collection, isIDMData, _catalogInfoData$, catalogInfoData;
|
|
8976
8982
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8977
8983
|
while (1) switch (_context.prev = _context.next) {
|
|
8978
8984
|
case 0:
|
|
@@ -8989,7 +8995,7 @@ function useModelInfoPage (_ref) {
|
|
|
8989
8995
|
toggleLoading('seller-model-info', false, true);
|
|
8990
8996
|
accountSessionId = undefined;
|
|
8991
8997
|
if (!(organization.type === 'RETAILER')) {
|
|
8992
|
-
_context.next =
|
|
8998
|
+
_context.next = 25;
|
|
8993
8999
|
break;
|
|
8994
9000
|
}
|
|
8995
9001
|
if (accountId) {
|
|
@@ -9007,18 +9013,42 @@ function useModelInfoPage (_ref) {
|
|
|
9007
9013
|
});
|
|
9008
9014
|
return _context.abrupt("return");
|
|
9009
9015
|
case 11:
|
|
9010
|
-
|
|
9016
|
+
if (!(collections !== null && collections !== void 0)) {
|
|
9017
|
+
_context.next = 15;
|
|
9018
|
+
break;
|
|
9019
|
+
}
|
|
9020
|
+
_context.t0 = collections;
|
|
9021
|
+
_context.next = 18;
|
|
9022
|
+
break;
|
|
9023
|
+
case 15:
|
|
9024
|
+
_context.next = 17;
|
|
9025
|
+
return loadCollections({});
|
|
9026
|
+
case 17:
|
|
9027
|
+
_context.t0 = _context.sent.data;
|
|
9028
|
+
case 18:
|
|
9029
|
+
coll = _context.t0;
|
|
9030
|
+
collection = coll === null || coll === void 0 ? void 0 : coll.find(function (c) {
|
|
9031
|
+
return c.id == collectionId;
|
|
9032
|
+
});
|
|
9033
|
+
isIDMData = !!(collection !== null && collection !== void 0 && (_collection$enricherS = collection.enricherSeries) !== null && _collection$enricherS !== void 0 && _collection$enricherS.find(function (s) {
|
|
9034
|
+
return s.serieNo === catalogCodex;
|
|
9035
|
+
}));
|
|
9036
|
+
if (isIDMData) {
|
|
9037
|
+
_context.next = 25;
|
|
9038
|
+
break;
|
|
9039
|
+
}
|
|
9040
|
+
_context.next = 24;
|
|
9011
9041
|
return checkAccountLogin({
|
|
9012
9042
|
accountId: accountId
|
|
9013
9043
|
});
|
|
9014
|
-
case
|
|
9044
|
+
case 24:
|
|
9015
9045
|
accountSessionId = _context.sent;
|
|
9016
|
-
case
|
|
9046
|
+
case 25:
|
|
9017
9047
|
if (!catalogCodex) {
|
|
9018
|
-
_context.next =
|
|
9048
|
+
_context.next = 37;
|
|
9019
9049
|
break;
|
|
9020
9050
|
}
|
|
9021
|
-
_context.next =
|
|
9051
|
+
_context.next = 28;
|
|
9022
9052
|
return loadCatalogInfo({
|
|
9023
9053
|
catalogCodex: catalogCodex,
|
|
9024
9054
|
accountSessionId: accountSessionId,
|
|
@@ -9026,10 +9056,10 @@ function useModelInfoPage (_ref) {
|
|
|
9026
9056
|
collectionId: collectionId,
|
|
9027
9057
|
language: i18n.language || 'en'
|
|
9028
9058
|
});
|
|
9029
|
-
case
|
|
9059
|
+
case 28:
|
|
9030
9060
|
catalogInfoData = _context.sent;
|
|
9031
9061
|
if (catalogInfoData) {
|
|
9032
|
-
_context.next =
|
|
9062
|
+
_context.next = 33;
|
|
9033
9063
|
break;
|
|
9034
9064
|
}
|
|
9035
9065
|
toggleLoading('seller-model-info', false, false);
|
|
@@ -9037,12 +9067,12 @@ function useModelInfoPage (_ref) {
|
|
|
9037
9067
|
type: 'SELLER'
|
|
9038
9068
|
});
|
|
9039
9069
|
return _context.abrupt("return");
|
|
9040
|
-
case
|
|
9070
|
+
case 33:
|
|
9041
9071
|
{
|
|
9042
|
-
_context.next =
|
|
9072
|
+
_context.next = 35;
|
|
9043
9073
|
break;
|
|
9044
9074
|
}
|
|
9045
|
-
case
|
|
9075
|
+
case 35:
|
|
9046
9076
|
setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
|
|
9047
9077
|
|
|
9048
9078
|
//if there is no relevant catalog information, as a normal seller continue directly to the planner
|
|
@@ -9052,14 +9082,14 @@ function useModelInfoPage (_ref) {
|
|
|
9052
9082
|
onOpenPlanner(accountSessionId);
|
|
9053
9083
|
}
|
|
9054
9084
|
}
|
|
9055
|
-
case
|
|
9085
|
+
case 37:
|
|
9056
9086
|
LOG$4.successTransaction('ON_OPEN_MODULE_INFO', {
|
|
9057
9087
|
cat: catalogCodex,
|
|
9058
9088
|
accountId: accountId
|
|
9059
9089
|
});
|
|
9060
9090
|
setLoading(false);
|
|
9061
9091
|
toggleLoading('seller-model-info', false, false);
|
|
9062
|
-
case
|
|
9092
|
+
case 40:
|
|
9063
9093
|
case "end":
|
|
9064
9094
|
return _context.stop();
|
|
9065
9095
|
}
|
|
@@ -11444,6 +11474,7 @@ var Badge = styled$1(function (_ref2) {
|
|
|
11444
11474
|
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11445
11475
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11446
11476
|
function VariantTable (_ref) {
|
|
11477
|
+
var _selectedFields$map$j;
|
|
11447
11478
|
var varinatData = _ref.varinatData,
|
|
11448
11479
|
classificationFields = _ref.classificationFields,
|
|
11449
11480
|
baseFields = _ref.baseFields,
|
|
@@ -11666,7 +11697,9 @@ function VariantTable (_ref) {
|
|
|
11666
11697
|
prepareAndSortData(from, to, rows);
|
|
11667
11698
|
}
|
|
11668
11699
|
}
|
|
11669
|
-
})
|
|
11700
|
+
}, (_selectedFields$map$j = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.map(function (f) {
|
|
11701
|
+
return f.field;
|
|
11702
|
+
}).join(',')) !== null && _selectedFields$map$j !== void 0 ? _selectedFields$map$j : '')
|
|
11670
11703
|
})]
|
|
11671
11704
|
}), children]
|
|
11672
11705
|
});
|
|
@@ -14421,7 +14454,9 @@ var ModelAnalytics = function ModelAnalytics(_ref) {
|
|
|
14421
14454
|
loadCollections = _useSellerState$actio.loadCollections,
|
|
14422
14455
|
_useSellerState$state = _useSellerState.state,
|
|
14423
14456
|
sessionGuid = _useSellerState$state.sessionGuid,
|
|
14424
|
-
configurationData = _useSellerState$state.configurationData
|
|
14457
|
+
configurationData = _useSellerState$state.configurationData,
|
|
14458
|
+
collections = _useSellerState$state.collections,
|
|
14459
|
+
currentCollectionId = _useSellerState$state.currentCollectionId;
|
|
14425
14460
|
var _useTranslation = useTranslation(),
|
|
14426
14461
|
t = _useTranslation.t,
|
|
14427
14462
|
i18n = _useTranslation.i18n;
|
|
@@ -14481,9 +14516,10 @@ var ModelAnalytics = function ModelAnalytics(_ref) {
|
|
|
14481
14516
|
setMapping(keyMap);
|
|
14482
14517
|
}, [data]);
|
|
14483
14518
|
useEffect(function () {
|
|
14519
|
+
if (!currentCollectionId) return;
|
|
14484
14520
|
var load = /*#__PURE__*/function () {
|
|
14485
14521
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
14486
|
-
var accountSessionId, catalogInfoData;
|
|
14522
|
+
var accountSessionId, _collection$enricherS, coll, collection, isIDMData, catalogInfoData;
|
|
14487
14523
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14488
14524
|
while (1) switch (_context.prev = _context.next) {
|
|
14489
14525
|
case 0:
|
|
@@ -14491,7 +14527,7 @@ var ModelAnalytics = function ModelAnalytics(_ref) {
|
|
|
14491
14527
|
toggleLoading('seller-model-info', false, true);
|
|
14492
14528
|
accountSessionId = undefined;
|
|
14493
14529
|
if (!(organization.type === 'RETAILER')) {
|
|
14494
|
-
_context.next =
|
|
14530
|
+
_context.next = 23;
|
|
14495
14531
|
break;
|
|
14496
14532
|
}
|
|
14497
14533
|
if (accountId) {
|
|
@@ -14505,31 +14541,55 @@ var ModelAnalytics = function ModelAnalytics(_ref) {
|
|
|
14505
14541
|
toggleLoading('seller-model-info', false, false);
|
|
14506
14542
|
return _context.abrupt("return");
|
|
14507
14543
|
case 9:
|
|
14508
|
-
|
|
14544
|
+
if (!(collections !== null && collections !== void 0)) {
|
|
14545
|
+
_context.next = 13;
|
|
14546
|
+
break;
|
|
14547
|
+
}
|
|
14548
|
+
_context.t0 = collections;
|
|
14549
|
+
_context.next = 16;
|
|
14550
|
+
break;
|
|
14551
|
+
case 13:
|
|
14552
|
+
_context.next = 15;
|
|
14553
|
+
return loadCollections({});
|
|
14554
|
+
case 15:
|
|
14555
|
+
_context.t0 = _context.sent.data;
|
|
14556
|
+
case 16:
|
|
14557
|
+
coll = _context.t0;
|
|
14558
|
+
collection = coll === null || coll === void 0 ? void 0 : coll.find(function (c) {
|
|
14559
|
+
return c.id == currentCollectionId;
|
|
14560
|
+
});
|
|
14561
|
+
isIDMData = !!(collection !== null && collection !== void 0 && (_collection$enricherS = collection.enricherSeries) !== null && _collection$enricherS !== void 0 && _collection$enricherS.find(function (s) {
|
|
14562
|
+
return s.serieNo === catalogCodex;
|
|
14563
|
+
}));
|
|
14564
|
+
if (isIDMData) {
|
|
14565
|
+
_context.next = 23;
|
|
14566
|
+
break;
|
|
14567
|
+
}
|
|
14568
|
+
_context.next = 22;
|
|
14509
14569
|
return checkAccountLogin({
|
|
14510
14570
|
accountId: accountId
|
|
14511
14571
|
});
|
|
14512
|
-
case
|
|
14572
|
+
case 22:
|
|
14513
14573
|
accountSessionId = _context.sent;
|
|
14514
|
-
case
|
|
14574
|
+
case 23:
|
|
14515
14575
|
if (!catalogCodex) {
|
|
14516
|
-
_context.next =
|
|
14576
|
+
_context.next = 28;
|
|
14517
14577
|
break;
|
|
14518
14578
|
}
|
|
14519
|
-
_context.next =
|
|
14579
|
+
_context.next = 26;
|
|
14520
14580
|
return loadCatalogInfo({
|
|
14521
14581
|
catalogCodex: catalogCodex,
|
|
14522
14582
|
accountSessionId: accountSessionId,
|
|
14523
14583
|
accountId: accountId,
|
|
14524
14584
|
language: i18n.language || 'en'
|
|
14525
14585
|
});
|
|
14526
|
-
case
|
|
14586
|
+
case 26:
|
|
14527
14587
|
catalogInfoData = _context.sent;
|
|
14528
14588
|
setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
|
|
14529
|
-
case
|
|
14589
|
+
case 28:
|
|
14530
14590
|
setLoading(false);
|
|
14531
14591
|
toggleLoading('seller-model-info', false, false);
|
|
14532
|
-
case
|
|
14592
|
+
case 30:
|
|
14533
14593
|
case "end":
|
|
14534
14594
|
return _context.stop();
|
|
14535
14595
|
}
|
|
@@ -14540,7 +14600,7 @@ var ModelAnalytics = function ModelAnalytics(_ref) {
|
|
|
14540
14600
|
};
|
|
14541
14601
|
}();
|
|
14542
14602
|
load();
|
|
14543
|
-
}, [accountId, catalogCodex, i18n.language, sessionGuid]);
|
|
14603
|
+
}, [accountId, catalogCodex, i18n.language, sessionGuid, currentCollectionId]);
|
|
14544
14604
|
if (!config) throw new Error('no analyticsConfig defined');
|
|
14545
14605
|
if (loading || !data) return /*#__PURE__*/jsx(Fragment, {});
|
|
14546
14606
|
var optionsArray = Object.values(data.options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Analytics/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,KAAK,KAAK,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAI3D,QAAA,MAAM,cAAc,gCAAiC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Analytics/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,KAAK,KAAK,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAI3D,QAAA,MAAM,cAAc,gCAAiC,KAAK,sBAsIzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Catalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAczE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Catalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAczE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,qBAwSvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collections/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,CAAC,OAAO,UAAU,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collections/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,CAAC,OAAO,UAAU,WAAW,sBAuKlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModelInfoPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/InfoWithProducts/useModelInfoPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAIrD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,kBAAkB;;;;;;
|
|
1
|
+
{"version":3,"file":"useModelInfoPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/InfoWithProducts/useModelInfoPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAIrD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,kBAAkB;;;;;;wCA+IxE,OAAO;EAsDpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKtH,MAAM,CAAC,OAAO,WAAW,EACvB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,GACb,EAAE;IACD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;IACzB,iBAAiB,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC1F,oBAAoB,EAAE;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKtH,MAAM,CAAC,OAAO,WAAW,EACvB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,GACb,EAAE;IACD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;IACzB,iBAAiB,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC1F,oBAAoB,EAAE;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,qBA8MA"}
|
|
@@ -64,13 +64,13 @@ interface LoadArticleProps {
|
|
|
64
64
|
export declare function apiLoadArticles({ serverUrlAPI, catalogCodex, accountSessionId, lang }: LoadArticleProps): Promise<Article[]>;
|
|
65
65
|
interface LoadArticleEnricherProps {
|
|
66
66
|
enricherUrl: string;
|
|
67
|
-
|
|
67
|
+
serieNo: string;
|
|
68
68
|
catalogId: string;
|
|
69
69
|
jwt: string;
|
|
70
70
|
language: string;
|
|
71
71
|
t: any;
|
|
72
72
|
}
|
|
73
|
-
export declare function apiLoadEnricherArticles({
|
|
73
|
+
export declare function apiLoadEnricherArticles({ serieNo, catalogId, enricherUrl, jwt, language, t }: LoadArticleEnricherProps): Promise<Article[]>;
|
|
74
74
|
interface LoadBasketProps {
|
|
75
75
|
divaNr?: string;
|
|
76
76
|
apiConfig: ApiConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.4.0-beta.1",
|
|
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": "26.
|
|
33
|
-
"@crystaldesign/products-component": "26.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "26.
|
|
32
|
+
"@crystaldesign/analytics": "26.4.0-beta.1",
|
|
33
|
+
"@crystaldesign/products-component": "26.4.0-beta.1",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "26.4.0-beta.1",
|
|
35
35
|
"@emotion/react": "^11.4.1",
|
|
36
36
|
"@emotion/styled": "^11.3.0",
|
|
37
37
|
"@mui/icons-material": "^6.1.5",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@mui/styles": "^6.1.5",
|
|
40
40
|
"react-error-boundary": "^4.0.13",
|
|
41
41
|
"react-number-format": "^5.4.2",
|
|
42
|
-
"swiper": "^
|
|
42
|
+
"swiper": "^12.1.2"
|
|
43
43
|
},
|
|
44
44
|
"types": "./build/types/seller/src/index.d.ts",
|
|
45
45
|
"module": "build/esm/index.js",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "e6098489ab00d9c2757e6c09c96d5b55462dd0be"
|
|
47
47
|
}
|