@crystaldesign/diva-seller 25.2.0-beta.26 → 25.2.0-beta.28
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 +72 -37
- package/build/types/seller/src/components/Basket/index.d.ts.map +1 -1
- package/build/types/seller/src/components/ProductCreator/hooks/useProductState.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/components/Step3Product.d.ts +2 -1
- package/build/types/seller/src/ui/Basket/CheckOut/components/Step3Product.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/index.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/Header.d.ts +2 -1
- package/build/types/seller/src/ui/Basket/Header.d.ts.map +1 -1
- package/package.json +5 -5
package/build/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import CardMedia from '@mui/material/CardMedia';
|
|
|
17
17
|
import Typography$1 from '@mui/material/Typography';
|
|
18
18
|
import createStyles from '@mui/styles/createStyles';
|
|
19
19
|
import makeStyles from '@mui/styles/makeStyles';
|
|
20
|
-
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1,
|
|
20
|
+
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Tooltip, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1, Stack, Paper as Paper$1, Skeleton, IconButton as IconButton$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Divider as Divider$1, Alert as Alert$1, AlertTitle as AlertTitle$1, Link, InputBase, Accordion, AccordionSummary, Tabs, Tab, AccordionDetails, Table as Table$1, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, TextareaAutosize, Box as Box$1, Autocomplete as Autocomplete$2, Select as Select$1, MenuItem as MenuItem$1, ListItemButton, ListItemIcon } from '@mui/material';
|
|
21
21
|
import { Histogram, useFilterState, FilterComponent, AnalyticsComponent } from '@crystaldesign/analytics';
|
|
22
22
|
import Button from '@mui/material/Button';
|
|
23
23
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
@@ -4089,6 +4089,7 @@ function Header$1(_ref) {
|
|
|
4089
4089
|
setActBasketPage = _ref.setActBasketPage,
|
|
4090
4090
|
doExportToVKP = _ref.doExportToVKP,
|
|
4091
4091
|
showProductCreator = _ref.showProductCreator,
|
|
4092
|
+
disableProductCreator = _ref.disableProductCreator,
|
|
4092
4093
|
config = _ref.config,
|
|
4093
4094
|
enableVKPExportButton = _ref.enableVKPExportButton;
|
|
4094
4095
|
var _useTranslation = useTranslation(),
|
|
@@ -4114,11 +4115,18 @@ function Header$1(_ref) {
|
|
|
4114
4115
|
onClick: doExportToVKP,
|
|
4115
4116
|
disabled: !enableVKPExportButton,
|
|
4116
4117
|
children: "VKP-Export"
|
|
4117
|
-
}), showProductCreator && /*#__PURE__*/jsx(
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4118
|
+
}), showProductCreator && /*#__PURE__*/jsx(Tooltip, {
|
|
4119
|
+
title: t('basket.checkout.step3.productdisabledtext'),
|
|
4120
|
+
disableHoverListener: !disableProductCreator,
|
|
4121
|
+
children: /*#__PURE__*/jsx("span", {
|
|
4122
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
4123
|
+
color: 'primary',
|
|
4124
|
+
variant: 'contained',
|
|
4125
|
+
onClick: openProductCreator,
|
|
4126
|
+
disabled: disableProductCreator,
|
|
4127
|
+
children: t('basket.navigation.products')
|
|
4128
|
+
})
|
|
4129
|
+
})
|
|
4122
4130
|
}), /*#__PURE__*/jsxs(ButtonGroup, {
|
|
4123
4131
|
color: "primary",
|
|
4124
4132
|
children: [/*#__PURE__*/jsx(Button, {
|
|
@@ -5476,7 +5484,7 @@ function styleInject(css, ref) {
|
|
|
5476
5484
|
}
|
|
5477
5485
|
}
|
|
5478
5486
|
|
|
5479
|
-
var infocontainer = "infocontainer-ir9gv";
|
|
5487
|
+
var infocontainer$1 = "infocontainer-ir9gv";
|
|
5480
5488
|
var stepsContent = "steps-content-jDbLc";
|
|
5481
5489
|
var css_248z$c = ".infocontainer-ir9gv {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.steps-content-jDbLc {\n margin-left: 10px;\n padding-top: 10px;\n padding-right: 10px;\n height: 100%;\n overflow-y: auto;\n}\n\n.steps-content-jDbLc #diva-order-entry-footer > span > div {\n width: 500px;\n}\n\n.steps-content-jDbLc #diva-order-entry-footer > span > div > span {\n margin-left: 110px;\n}\n";
|
|
5482
5490
|
styleInject(css_248z$c);
|
|
@@ -5490,7 +5498,7 @@ function Step2ClientData(_ref) {
|
|
|
5490
5498
|
t = _useTranslation.t;
|
|
5491
5499
|
if (productSaved) {
|
|
5492
5500
|
return /*#__PURE__*/jsx("div", {
|
|
5493
|
-
className: infocontainer,
|
|
5501
|
+
className: infocontainer$1,
|
|
5494
5502
|
children: /*#__PURE__*/jsx(InfoAlert$1, {
|
|
5495
5503
|
title: t('basket.checkout.step2.disabledtitle'),
|
|
5496
5504
|
content: /*#__PURE__*/jsx(Fragment, {
|
|
@@ -5954,7 +5962,8 @@ var productDetailText = "productDetailText-wkk6U";
|
|
|
5954
5962
|
var productDetailSkeleton = "productDetailSkeleton-3-RLq";
|
|
5955
5963
|
var productDetailDivider = "productDetailDivider-C1Cdh";
|
|
5956
5964
|
var alertTitle = "alertTitle-Bm1NO";
|
|
5957
|
-
var
|
|
5965
|
+
var infocontainer = "infocontainer-7J73H";
|
|
5966
|
+
var css_248z$b = ".container-3kPdM {\n padding-bottom: 10px;\n margin-top: 2px;\n}\n\n.mainStack-1xE4c {\n width: 100%;\n margin-top: 16px;\n}\n\n.productContainer-JcVn0 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n width: 100%;\n}\n\n.productNameContainer-35ZZc {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n width: 100%;\n}\n\n.productNameField-hPNbW {\n margin: 8px;\n width: 70%;\n}\n\n.productImage-Vn0l- {\n width: 70%;\n display: block;\n}\n\n.productImage-Vn0l-.hidden-zZ8fS {\n display: none;\n}\n\n.productDetailsContainer-5c-V9 {\n margin: 20px;\n max-height: 100%;\n}\n\n.productDetailRow-9KtDG {\n display: flex;\n}\n\n.productDetailLabel-t7Mn7 {\n font-weight: 600;\n width: 40%;\n}\n\n.favoriteContainer-ka7lC {\n display: flex;\n align-items: center;\n margin-top: 16px;\n}\n.favoriteCheckbox-JYnH- {\n margin-left: 10px;\n}\n\n.actionButtonContainer-WfYfD {\n display: flex;\n gap: 16px;\n margin-top: 16px;\n justify-content: right;\n}\n@media (max-width: 768px) {\n .actionButtonContainer-WfYfD {\n display: flex;\n justify-content: space-between;\n }\n}\n\n.productDetailsPaper-VsWfW {\n width: 100%;\n max-height: 100%;\n overflow: auto;\n}\n\n.productDetailText-wkk6U {\n white-space: pre-wrap;\n}\n\n.productDetailSkeleton-3-RLq {\n margin-left: 30px;\n height: 28px;\n}\n\n.productDetailDivider-C1Cdh {\n margin-bottom: 16px;\n}\n\n.alertTitle-Bm1NO {\n font-weight: 600;\n}\n.infocontainer-7J73H {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n/* Responsive styles */\n@media (min-width: 900px) {\n .productDetailsPaper-VsWfW {\n width: 60%;\n }\n}\n";
|
|
5958
5967
|
styleInject(css_248z$b);
|
|
5959
5968
|
|
|
5960
5969
|
function Step3Product(_ref) {
|
|
@@ -5963,7 +5972,8 @@ function Step3Product(_ref) {
|
|
|
5963
5972
|
startWithEmptyBasket = _ref.startWithEmptyBasket,
|
|
5964
5973
|
handleSave = _ref.handleSave,
|
|
5965
5974
|
updateProductData = _ref.updateProductData,
|
|
5966
|
-
productIsLoading = _ref.productIsLoading
|
|
5975
|
+
productIsLoading = _ref.productIsLoading,
|
|
5976
|
+
disabled = _ref.disabled;
|
|
5967
5977
|
var _useDivaCore = useDivaCore(),
|
|
5968
5978
|
organization = _useDivaCore.state.organization;
|
|
5969
5979
|
var _useTranslation = useTranslation(),
|
|
@@ -5994,6 +6004,18 @@ function Step3Product(_ref) {
|
|
|
5994
6004
|
var handleFavoriteToggle = function handleFavoriteToggle() {
|
|
5995
6005
|
setIsFavorite(!isFavorite);
|
|
5996
6006
|
};
|
|
6007
|
+
if (disabled) {
|
|
6008
|
+
return /*#__PURE__*/jsx("div", {
|
|
6009
|
+
className: infocontainer,
|
|
6010
|
+
children: /*#__PURE__*/jsx(InfoAlert, {
|
|
6011
|
+
type: "info",
|
|
6012
|
+
title: t('basket.checkout.step3.productdisabled'),
|
|
6013
|
+
content: /*#__PURE__*/jsx(Fragment, {
|
|
6014
|
+
children: t('basket.checkout.step3.productdisabledtext')
|
|
6015
|
+
})
|
|
6016
|
+
})
|
|
6017
|
+
});
|
|
6018
|
+
}
|
|
5997
6019
|
return /*#__PURE__*/jsxs(Box, {
|
|
5998
6020
|
className: container$1,
|
|
5999
6021
|
children: [organization.settings.enableVKMarketing && /*#__PURE__*/jsx(InfoAlert, {
|
|
@@ -6315,7 +6337,8 @@ function CheckOut(_ref) {
|
|
|
6315
6337
|
currentProduct: currentProduct,
|
|
6316
6338
|
productIsLoading: productIsLoading,
|
|
6317
6339
|
handleSave: handleSave,
|
|
6318
|
-
updateProductData: updateProductData
|
|
6340
|
+
updateProductData: updateProductData,
|
|
6341
|
+
disabled: basket.OrderSets.length > 1
|
|
6319
6342
|
}), status !== 'BASE_CONFIGURATION' && /*#__PURE__*/jsxs(Fragment, {
|
|
6320
6343
|
children: [/*#__PURE__*/jsx("div", {
|
|
6321
6344
|
style: {
|
|
@@ -6671,7 +6694,7 @@ function Step4Checkout(_ref) {
|
|
|
6671
6694
|
};
|
|
6672
6695
|
if (!is3dReady) {
|
|
6673
6696
|
return /*#__PURE__*/jsx("div", {
|
|
6674
|
-
className: infocontainer,
|
|
6697
|
+
className: infocontainer$1,
|
|
6675
6698
|
children: /*#__PURE__*/jsx(InfoAlert$1, {
|
|
6676
6699
|
title: t('basket.checkout.step4.errortitle'),
|
|
6677
6700
|
content: /*#__PURE__*/jsx(Fragment, {
|
|
@@ -6682,7 +6705,7 @@ function Step4Checkout(_ref) {
|
|
|
6682
6705
|
}
|
|
6683
6706
|
if (!productSaved) {
|
|
6684
6707
|
return /*#__PURE__*/jsx("div", {
|
|
6685
|
-
className: infocontainer,
|
|
6708
|
+
className: infocontainer$1,
|
|
6686
6709
|
children: /*#__PURE__*/jsx(InfoAlert$1, {
|
|
6687
6710
|
title: t('basket.checkout.step4.errortitle'),
|
|
6688
6711
|
content: /*#__PURE__*/jsx(Fragment, {
|
|
@@ -7301,6 +7324,7 @@ function Basket(_ref) {
|
|
|
7301
7324
|
doExportToVKP: doExportToVKP,
|
|
7302
7325
|
openProductCreator: openProductCreator,
|
|
7303
7326
|
showProductCreator: userHasPermission('productcreator') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductCreator),
|
|
7327
|
+
disableProductCreator: currentBasket.OrderSets.length > 1,
|
|
7304
7328
|
enableVKPExportButton: !currentBasket.catalogStatus || currentBasket.catalogStatus == 'LISTED' || userHasPermission('alwaysenablevkpexport')
|
|
7305
7329
|
}), /*#__PURE__*/jsxs("div", {
|
|
7306
7330
|
className: stepsContent,
|
|
@@ -11506,7 +11530,7 @@ function useProductState (basket, divaNr) {
|
|
|
11506
11530
|
useEffect(function () {
|
|
11507
11531
|
var init = /*#__PURE__*/function () {
|
|
11508
11532
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
11509
|
-
var _ref4, updateBasket, catalogData, _affiliates, _Object$keys$map2, _configurationData$Pr2, _optClassMap, _catalogs$, _initState, _yield$loadCategories, classificationFields, newCurrentData, additional, _additionalBaseFields, newLivingArea, _yield$productHandler2, _isNew, baseChanged, catalogs, initState, currentCategories, differingOptFields, optMapEntries, missingOptFields, accountlogourl, logofile, _initState$baseData$m, newlogofile, _initState$baseData$m2;
|
|
11533
|
+
var _ref4, updateBasket, catalogData, newDivaNr, _affiliates, _Object$keys$map2, _configurationData$Pr2, _optClassMap, _catalogs$, _initState, _yield$loadCategories, classificationFields, newCurrentData, additional, _additionalBaseFields, newLivingArea, _yield$productHandler2, _isNew, baseChanged, catalogs, initState, currentCategories, differingOptFields, optMapEntries, missingOptFields, accountlogourl, logofile, _initState$baseData$m, newlogofile, _initState$baseData$m2;
|
|
11510
11534
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
11511
11535
|
while (1) switch (_context4.prev = _context4.next) {
|
|
11512
11536
|
case 0:
|
|
@@ -11526,38 +11550,49 @@ function useProductState (basket, divaNr) {
|
|
|
11526
11550
|
_ref4 = _context4.t0;
|
|
11527
11551
|
updateBasket = _ref4.basket;
|
|
11528
11552
|
catalogData = _ref4.catalogData;
|
|
11553
|
+
if (!(basket && basket.getDocumentVersion() > 1)) {
|
|
11554
|
+
_context4.next = 16;
|
|
11555
|
+
break;
|
|
11556
|
+
}
|
|
11557
|
+
_context4.next = 13;
|
|
11558
|
+
return productHandler.apiGetUniqueDivaNr();
|
|
11559
|
+
case 13:
|
|
11560
|
+
newDivaNr = _context4.sent;
|
|
11561
|
+
updateBasket.DivaNr = newDivaNr;
|
|
11562
|
+
divaNr = newDivaNr;
|
|
11563
|
+
case 16:
|
|
11529
11564
|
toggleLoading('ProductDataInit');
|
|
11530
11565
|
updateBasketState({
|
|
11531
11566
|
overwriteStates: ['BASE_CONFIGURATION']
|
|
11532
11567
|
});
|
|
11533
11568
|
if (!userHasPermission('productcreator_affiliate')) {
|
|
11534
|
-
_context4.next =
|
|
11569
|
+
_context4.next = 29;
|
|
11535
11570
|
break;
|
|
11536
11571
|
}
|
|
11537
|
-
_context4.prev =
|
|
11538
|
-
_context4.next =
|
|
11572
|
+
_context4.prev = 19;
|
|
11573
|
+
_context4.next = 22;
|
|
11539
11574
|
return apiGetAffiliates({
|
|
11540
11575
|
serviceUrl: apiConfig.authService,
|
|
11541
11576
|
organizationId: organization._id,
|
|
11542
11577
|
jwt: jwt
|
|
11543
11578
|
});
|
|
11544
|
-
case
|
|
11579
|
+
case 22:
|
|
11545
11580
|
_affiliates = _context4.sent;
|
|
11546
11581
|
setAffiliates(_affiliates);
|
|
11547
|
-
_context4.next =
|
|
11582
|
+
_context4.next = 29;
|
|
11548
11583
|
break;
|
|
11549
|
-
case
|
|
11550
|
-
_context4.prev =
|
|
11551
|
-
_context4.t1 = _context4["catch"](
|
|
11584
|
+
case 26:
|
|
11585
|
+
_context4.prev = 26;
|
|
11586
|
+
_context4.t1 = _context4["catch"](19);
|
|
11552
11587
|
LOG$2.error(new DivaError("Error loading affiliates", {
|
|
11553
11588
|
code: 'SELLER_0002',
|
|
11554
11589
|
cause: _context4.t1
|
|
11555
11590
|
}));
|
|
11556
|
-
case
|
|
11557
|
-
_context4.prev =
|
|
11558
|
-
_context4.next =
|
|
11591
|
+
case 29:
|
|
11592
|
+
_context4.prev = 29;
|
|
11593
|
+
_context4.next = 32;
|
|
11559
11594
|
return loadCategories();
|
|
11560
|
-
case
|
|
11595
|
+
case 32:
|
|
11561
11596
|
_yield$loadCategories = _context4.sent;
|
|
11562
11597
|
classificationFields = _yield$loadCategories.classificationFields;
|
|
11563
11598
|
newCurrentData = _yield$loadCategories.newCurrentData;
|
|
@@ -11581,7 +11616,7 @@ function useProductState (basket, divaNr) {
|
|
|
11581
11616
|
});
|
|
11582
11617
|
newCurrentData.livingAreas = _objectSpread$4({}, newLivingArea);
|
|
11583
11618
|
}
|
|
11584
|
-
_context4.next =
|
|
11619
|
+
_context4.next = 40;
|
|
11585
11620
|
return productHandler.loadProducts({
|
|
11586
11621
|
basket: updateBasket,
|
|
11587
11622
|
divaNr: divaNr,
|
|
@@ -11593,7 +11628,7 @@ function useProductState (basket, divaNr) {
|
|
|
11593
11628
|
availableLanguages: availableLanguages,
|
|
11594
11629
|
currentLang: language
|
|
11595
11630
|
});
|
|
11596
|
-
case
|
|
11631
|
+
case 40:
|
|
11597
11632
|
_yield$productHandler2 = _context4.sent;
|
|
11598
11633
|
_isNew = _yield$productHandler2.isNew;
|
|
11599
11634
|
baseChanged = _yield$productHandler2.baseChanged;
|
|
@@ -11667,22 +11702,22 @@ function useProductState (basket, divaNr) {
|
|
|
11667
11702
|
text: t('productcreator.configurationchanged.text')
|
|
11668
11703
|
});
|
|
11669
11704
|
setSaved(!_isNew);
|
|
11670
|
-
_context4.next =
|
|
11705
|
+
_context4.next = 66;
|
|
11671
11706
|
break;
|
|
11672
|
-
case
|
|
11673
|
-
_context4.prev =
|
|
11674
|
-
_context4.t2 = _context4["catch"](
|
|
11707
|
+
case 63:
|
|
11708
|
+
_context4.prev = 63;
|
|
11709
|
+
_context4.t2 = _context4["catch"](29);
|
|
11675
11710
|
LOG$2.error(new DivaError("Error initalization", {
|
|
11676
11711
|
code: 'SELLER_0002',
|
|
11677
11712
|
cause: _context4.t2
|
|
11678
11713
|
}));
|
|
11679
|
-
case
|
|
11714
|
+
case 66:
|
|
11680
11715
|
toggleLoading('ProductDataInit');
|
|
11681
|
-
case
|
|
11716
|
+
case 67:
|
|
11682
11717
|
case "end":
|
|
11683
11718
|
return _context4.stop();
|
|
11684
11719
|
}
|
|
11685
|
-
}, _callee4, null, [[
|
|
11720
|
+
}, _callee4, null, [[19, 26], [29, 63]]);
|
|
11686
11721
|
}));
|
|
11687
11722
|
return function init() {
|
|
11688
11723
|
return _ref3.apply(this, arguments);
|
|
@@ -12657,7 +12692,7 @@ var css_248z$2 = ".main-ERs2i {\n display: flex;\n overflow: hidden;\n width:
|
|
|
12657
12692
|
styleInject(css_248z$2);
|
|
12658
12693
|
|
|
12659
12694
|
function ProductCreator (_ref) {
|
|
12660
|
-
var _state$variantData, _state$variantData2, _state$variantData$fi, _state$variantData3, _state$baseData$custo2,
|
|
12695
|
+
var _state$variantData, _state$variantData2, _state$variantData$fi, _state$variantData3, _state$baseData$custo2, _state$baseData$divaN, _currentBasket$OrderS;
|
|
12661
12696
|
var basket = _ref.basket,
|
|
12662
12697
|
divaNr = _ref.divaNr;
|
|
12663
12698
|
var _useSellerState = useSellerState(),
|
|
@@ -13010,7 +13045,7 @@ function ProductCreator (_ref) {
|
|
|
13010
13045
|
return /*#__PURE__*/jsxs("div", {
|
|
13011
13046
|
className: main,
|
|
13012
13047
|
children: [/*#__PURE__*/jsx(Title, {
|
|
13013
|
-
text: "".concat(t('productcreator.title'), " - ").concat((
|
|
13048
|
+
text: "".concat(t('productcreator.title'), " - ").concat((_state$baseData$divaN = state.baseData.divaNr) !== null && _state$baseData$divaN !== void 0 ? _state$baseData$divaN : currentBasket === null || currentBasket === void 0 ? void 0 : currentBasket.DivaNr)
|
|
13014
13049
|
}), /*#__PURE__*/jsxs("div", {
|
|
13015
13050
|
className: content,
|
|
13016
13051
|
children: [/*#__PURE__*/jsx(Paper, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,qBAsZpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProductState.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ProductCreator/hooks/useProductState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAKV,WAAW,EACX,KAAK,EAGN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,aAAa,EAAyC,MAAM,gCAAgC,CAAC;AAKlJ,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAIvD,UAAU,KAAK;IACb,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,WAAW,CAAC;IACtB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,CAAC;IACtD,qBAAqB,EAAE,KAAK,EAAE,CAAC;IAC/B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,qBAAqB,CAAC,EAAE;QACtB,CAAC,SAAS,EAAE,MAAM,GAAG;YACnB,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC;SACxB,CAAC;KACH,CAAC;IACF,WAA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
|
7
7
|
handleSave: (openPDF?: 'generate' | 'open', sendMail?: boolean, isFavorite?: boolean) => void;
|
|
8
8
|
updateProductData: (product: ProductData) => void;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export default function Step3Product({ currentProduct, startWithEmptyBasket, handleSave, updateProductData, productIsLoading }: Props): React.JSX.Element;
|
|
11
|
+
export default function Step3Product({ currentProduct, startWithEmptyBasket, handleSave, updateProductData, productIsLoading, disabled }: Props): React.JSX.Element;
|
|
11
12
|
export {};
|
|
12
13
|
//# sourceMappingURL=Step3Product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAA+B,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAA+B,MAAM,0BAA0B,CAAC;AAyBpF,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9F,iBAAiB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,cAAc,EAAE,oBAAoB,EA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O,CAAC;IACf,cAAc,CAAC,EAAE,WAAW,CAAC;IAE7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CACnD;AACD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,cAAc,EAEd,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,IAAI,GACL,EAAE,KAAK,qBA2HP"}
|
|
@@ -10,10 +10,11 @@ interface props {
|
|
|
10
10
|
doExportToVKP: () => void;
|
|
11
11
|
openProductCreator: () => void;
|
|
12
12
|
showProductCreator?: boolean;
|
|
13
|
+
disableProductCreator?: boolean;
|
|
13
14
|
config?: Checkout;
|
|
14
15
|
enableVKPExportButton?: boolean;
|
|
15
16
|
disableMarketing?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export default function Header({ status, divaNr, documentVersion, actBasketPage, showVKPExportButton, openProductCreator, setActBasketPage, doExportToVKP, showProductCreator, config, enableVKPExportButton, }: props): React.JSX.Element;
|
|
18
|
+
export default function Header({ status, divaNr, documentVersion, actBasketPage, showVKPExportButton, openProductCreator, setActBasketPage, doExportToVKP, showProductCreator, disableProductCreator, config, enableVKPExportButton, }: props): React.JSX.Element;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Basket/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MA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Ac,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAC9F,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,MAAM,EACN,qBAAqB,GACtB,EAAE,KAAK,qBA8DP"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.2.0-beta.
|
|
3
|
+
"version": "25.2.0-beta.28",
|
|
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": "25.2.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "25.2.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.2.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "25.2.0-beta.28",
|
|
33
|
+
"@crystaldesign/products-component": "25.2.0-beta.28",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.2.0-beta.28",
|
|
35
35
|
"@emotion/react": "^11.4.1",
|
|
36
36
|
"@emotion/styled": "^11.3.0",
|
|
37
37
|
"@mui/icons-material": "^6.1.5",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"types": "./build/types/seller/src/index.d.ts",
|
|
45
45
|
"module": "build/esm/index.js",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1acd32c208bc9dcebcc568b60320fc77e86a0fb5"
|
|
47
47
|
}
|