@crystaldesign/diva-seller 24.10.0-beta.9 → 24.10.0-rc.2
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 +70 -63
- package/build/types/seller/src/components/Basket/defaultSchema/step3.d.ts +4 -4
- package/build/types/seller/src/components/Basket/defaultSchema/step3.d.ts.map +1 -1
- package/build/types/seller/src/components/ProductCreator/components/BasedataForms/GroupedFileds/AdvertisingText.d.ts.map +1 -1
- package/build/types/seller/src/components/ProductCreator/components/BasedataForms/GroupedFileds/BaseInfo.d.ts.map +1 -1
- package/build/types/seller/src/components/ProductCreator/tabs/RenderJobTable/RenderJobDetail/SelectRenderPackage/index.d.ts.map +1 -1
- package/package.json +5 -5
package/build/esm/index.js
CHANGED
|
@@ -6495,37 +6495,37 @@ var uiSchema = function uiSchema(hideWWSButton, enableSellerInfos) {
|
|
|
6495
6495
|
}, {
|
|
6496
6496
|
type: 'VerticalLayout',
|
|
6497
6497
|
elements: [{
|
|
6498
|
-
type: 'Control',
|
|
6499
|
-
scope: '#/properties/PrintOptions/properties/AllPrices',
|
|
6500
|
-
rule: {
|
|
6501
|
-
effect: 'DISABLE',
|
|
6502
|
-
condition: {
|
|
6503
|
-
scope: '#/properties/PrintOptions/properties/Prices',
|
|
6504
|
-
schema: {
|
|
6505
|
-
not: {
|
|
6506
|
-
"const": true
|
|
6507
|
-
}
|
|
6508
|
-
}
|
|
6509
|
-
}
|
|
6510
|
-
}
|
|
6511
|
-
}, {
|
|
6512
6498
|
type: 'Control',
|
|
6513
6499
|
scope: '#/properties/PrintOptions/properties/ModelName'
|
|
6514
6500
|
}, {
|
|
6515
6501
|
type: 'Control',
|
|
6516
6502
|
scope: '#/properties/PrintOptions/properties/Gdpr'
|
|
6503
|
+
}, {
|
|
6504
|
+
type: 'Control',
|
|
6505
|
+
scope: '#/properties/PrintOptions/properties/Prices'
|
|
6517
6506
|
}]
|
|
6518
6507
|
}, {
|
|
6519
6508
|
type: 'VerticalLayout',
|
|
6520
6509
|
elements: [{
|
|
6521
|
-
type: 'Control',
|
|
6522
|
-
scope: '#/properties/PrintOptions/properties/Prices'
|
|
6523
|
-
}, {
|
|
6524
6510
|
type: 'Control',
|
|
6525
6511
|
scope: '#/properties/PrintOptions/properties/CollectionLogo'
|
|
6526
6512
|
}, {
|
|
6527
6513
|
type: 'Control',
|
|
6528
6514
|
scope: '#/properties/PrintOptions/properties/ClientpersonData'
|
|
6515
|
+
}, {
|
|
6516
|
+
type: 'Control',
|
|
6517
|
+
scope: '#/properties/PrintOptions/properties/AllPrices',
|
|
6518
|
+
rule: {
|
|
6519
|
+
effect: 'HIDE',
|
|
6520
|
+
condition: {
|
|
6521
|
+
scope: '#/properties/PrintOptions/properties/Prices',
|
|
6522
|
+
schema: {
|
|
6523
|
+
not: {
|
|
6524
|
+
"const": true
|
|
6525
|
+
}
|
|
6526
|
+
}
|
|
6527
|
+
}
|
|
6528
|
+
}
|
|
6529
6529
|
}]
|
|
6530
6530
|
}]
|
|
6531
6531
|
}]
|
|
@@ -9008,17 +9008,6 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
9008
9008
|
value: getProductValue('divaNr'),
|
|
9009
9009
|
disabled: true
|
|
9010
9010
|
})
|
|
9011
|
-
}), /*#__PURE__*/jsx(FormControl$1, {
|
|
9012
|
-
fullWidth: true,
|
|
9013
|
-
children: /*#__PURE__*/jsx(FormControlLabel$1, {
|
|
9014
|
-
control: /*#__PURE__*/jsx(Checkbox$1, {
|
|
9015
|
-
checked: !!getProductValue('available'),
|
|
9016
|
-
onChange: function onChange(s) {
|
|
9017
|
-
return update('available', s.target.checked);
|
|
9018
|
-
}
|
|
9019
|
-
}),
|
|
9020
|
-
label: t('productcreator.fields.available')
|
|
9021
|
-
})
|
|
9022
9011
|
}), /*#__PURE__*/jsx(FormControl$1, {
|
|
9023
9012
|
fullWidth: true,
|
|
9024
9013
|
children: /*#__PURE__*/jsx(FormControlLabel$1, {
|
|
@@ -9229,15 +9218,15 @@ var TechnicalDescription = function TechnicalDescription(_ref) {
|
|
|
9229
9218
|
var AdvertisingText = function AdvertisingText(_ref) {
|
|
9230
9219
|
var getProductValue = _ref.getProductValue,
|
|
9231
9220
|
update = _ref.update;
|
|
9232
|
-
var
|
|
9233
|
-
|
|
9221
|
+
var _useDivaCore = useDivaCore(),
|
|
9222
|
+
tinyMceApiKey = _useDivaCore.state.tinyMceApiKey;
|
|
9234
9223
|
return /*#__PURE__*/jsx(Card$1, {
|
|
9235
9224
|
style: {
|
|
9236
9225
|
marginBottom: '10px'
|
|
9237
9226
|
},
|
|
9238
9227
|
children: /*#__PURE__*/jsx(CardContent, {
|
|
9239
9228
|
children: /*#__PURE__*/jsx(Editor, {
|
|
9240
|
-
apiKey:
|
|
9229
|
+
apiKey: tinyMceApiKey,
|
|
9241
9230
|
value: getProductValue('info'),
|
|
9242
9231
|
init: {
|
|
9243
9232
|
height: 500,
|
|
@@ -10188,9 +10177,7 @@ function FieldSelection (_ref) {
|
|
|
10188
10177
|
setSelected = _ref.setSelected;
|
|
10189
10178
|
var _useTranslation = useTranslation(),
|
|
10190
10179
|
t = _useTranslation.t;
|
|
10191
|
-
var all = [].concat(_toConsumableArray(classificationFields), _toConsumableArray(baseFields), _toConsumableArray(optFields))
|
|
10192
|
-
return f.field != 'available';
|
|
10193
|
-
});
|
|
10180
|
+
var all = [].concat(_toConsumableArray(classificationFields), _toConsumableArray(baseFields), _toConsumableArray(optFields));
|
|
10194
10181
|
var _useState = useState(true),
|
|
10195
10182
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10196
10183
|
openSelected = _useState2[0],
|
|
@@ -12322,10 +12309,31 @@ function addBasket(prevState, basket, productData) {
|
|
|
12322
12309
|
function updateVariants(prevState, currentState, configurationData, baseDataFields, classificationConfig, availableLanguages) {
|
|
12323
12310
|
var newVarinatList = [];
|
|
12324
12311
|
var newModifiedList = [];
|
|
12325
|
-
|
|
12312
|
+
var customBaseFields = [];
|
|
12313
|
+
if (baseDataFields.some(function (field) {
|
|
12314
|
+
return field.manualFields && field.field == 'customData';
|
|
12315
|
+
}) && currentState.baseData.customData) {
|
|
12316
|
+
var manualFields = Object.entries(currentState.baseData.customData).filter(function (_ref9) {
|
|
12317
|
+
var _ref10 = _slicedToArray(_ref9, 2);
|
|
12318
|
+
_ref10[0];
|
|
12319
|
+
var valueObj = _ref10[1];
|
|
12320
|
+
return valueObj === null || valueObj === void 0 ? void 0 : valueObj.manual;
|
|
12321
|
+
});
|
|
12322
|
+
for (var i = 0; i < manualFields.length; i++) {
|
|
12323
|
+
customBaseFields.push({
|
|
12324
|
+
field: manualFields[i][0],
|
|
12325
|
+
type: 'string',
|
|
12326
|
+
title: "productcreator.fields.".concat(manualFields[i][0]),
|
|
12327
|
+
fieldType: 'BASE',
|
|
12328
|
+
custom: true
|
|
12329
|
+
});
|
|
12330
|
+
}
|
|
12331
|
+
}
|
|
12332
|
+
baseDataFields = [].concat(_toConsumableArray(baseDataFields), customBaseFields);
|
|
12333
|
+
for (var _i = 0; _i < prevState.variantData.length; _i++) {
|
|
12326
12334
|
var _currentState$modifie6, _configurationData$Pr3, _currentState$modifie7;
|
|
12327
|
-
var variant = prevState.variantData[
|
|
12328
|
-
var newVariant = currentState.variantData[
|
|
12335
|
+
var variant = prevState.variantData[_i];
|
|
12336
|
+
var newVariant = currentState.variantData[_i];
|
|
12329
12337
|
var finalVariant = _objectSpread$a({}, variant);
|
|
12330
12338
|
var newModified = {};
|
|
12331
12339
|
var _iterator = _createForOfIteratorHelper$3(prevState.classificationFields || []),
|
|
@@ -12334,7 +12342,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12334
12342
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12335
12343
|
var _currentState$modifie8;
|
|
12336
12344
|
var _field2 = _step.value.field;
|
|
12337
|
-
var _ProductHandler$calcu6 = ProductHandler.calculateComputedValue(variant[_field2], newVariant === null || newVariant === void 0 ? void 0 : newVariant[_field2], currentState.classificationData[_field2], (_currentState$modifie8 = currentState.modified.variantData[
|
|
12345
|
+
var _ProductHandler$calcu6 = ProductHandler.calculateComputedValue(variant[_field2], newVariant === null || newVariant === void 0 ? void 0 : newVariant[_field2], currentState.classificationData[_field2], (_currentState$modifie8 = currentState.modified.variantData[_i]) === null || _currentState$modifie8 === void 0 ? void 0 : _currentState$modifie8[_field2]),
|
|
12338
12346
|
_value6 = _ProductHandler$calcu6.value,
|
|
12339
12347
|
_modified6 = _ProductHandler$calcu6.modified;
|
|
12340
12348
|
finalVariant[_field2] = _value6;
|
|
@@ -12354,13 +12362,13 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12354
12362
|
var _loop = function _loop() {
|
|
12355
12363
|
var fieldgroup = _step2.value.fieldgroup;
|
|
12356
12364
|
if (fieldgroup) {
|
|
12357
|
-
var _loop2 = function _loop2(
|
|
12365
|
+
var _loop2 = function _loop2(_i2) {
|
|
12358
12366
|
if (allBaseFields.findIndex(function (f) {
|
|
12359
|
-
return f.field == fieldgroup[
|
|
12360
|
-
}) === -1) allBaseFields.push(fieldgroup[
|
|
12367
|
+
return f.field == fieldgroup[_i2].field;
|
|
12368
|
+
}) === -1) allBaseFields.push(fieldgroup[_i2]);
|
|
12361
12369
|
};
|
|
12362
|
-
for (var
|
|
12363
|
-
_loop2(
|
|
12370
|
+
for (var _i2 = 0; _i2 < fieldgroup.length; _i2++) {
|
|
12371
|
+
_loop2(_i2);
|
|
12364
12372
|
}
|
|
12365
12373
|
}
|
|
12366
12374
|
};
|
|
@@ -12375,12 +12383,12 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12375
12383
|
for (var j = 0; j < allBaseFields.length; j++) {
|
|
12376
12384
|
var field = allBaseFields[j].field;
|
|
12377
12385
|
var custom = allBaseFields[j].custom;
|
|
12378
|
-
if (field == 'shortDescription') {
|
|
12386
|
+
if (field == 'shortDescription' || field == ' customData') {
|
|
12379
12387
|
//updated shortDescription as last value
|
|
12380
12388
|
continue;
|
|
12381
12389
|
} else if (field == 'addedPrice' || field == 'calculatedPrice') {
|
|
12382
12390
|
var _currentState$modifie;
|
|
12383
|
-
var _ProductHandler$calcu = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie = currentState.modified.variantData[
|
|
12391
|
+
var _ProductHandler$calcu = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie = currentState.modified.variantData[_i]) === null || _currentState$modifie === void 0 ? void 0 : _currentState$modifie[field]),
|
|
12384
12392
|
_value = _ProductHandler$calcu.value,
|
|
12385
12393
|
_modified = _ProductHandler$calcu.modified;
|
|
12386
12394
|
finalVariant[field] = _value;
|
|
@@ -12392,7 +12400,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12392
12400
|
var flatNewVarinat = newVariant ? flatten(newVariant) : {};
|
|
12393
12401
|
var flatFinalVariant = flatten(finalVariant);
|
|
12394
12402
|
var flatBase = flatten(currentState.baseData);
|
|
12395
|
-
var _ProductHandler$calcu2 = ProductHandler.calculateComputedValue(flatVarinat[field], flatNewVarinat[field], flatBase[field], (_currentState$modifie2 = currentState.modified.variantData[
|
|
12403
|
+
var _ProductHandler$calcu2 = ProductHandler.calculateComputedValue(flatVarinat[field], flatNewVarinat[field], flatBase[field], (_currentState$modifie2 = currentState.modified.variantData[_i]) === null || _currentState$modifie2 === void 0 ? void 0 : _currentState$modifie2[field]),
|
|
12396
12404
|
_value2 = _ProductHandler$calcu2.value,
|
|
12397
12405
|
_modified2 = _ProductHandler$calcu2.modified;
|
|
12398
12406
|
flatFinalVariant[field] = _value2;
|
|
@@ -12401,7 +12409,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12401
12409
|
newModified[field] = _modified2;
|
|
12402
12410
|
} else if (custom) {
|
|
12403
12411
|
var _variant$customData, _newVariant$customDat, _currentState$baseDat, _currentState$modifie3;
|
|
12404
|
-
var _ProductHandler$calcu3 = ProductHandler.calculateComputedValue(variant === null || variant === void 0 || (_variant$customData = variant.customData) === null || _variant$customData === void 0 ? void 0 : _variant$customData[field], newVariant === null || newVariant === void 0 || (_newVariant$customDat = newVariant.customData) === null || _newVariant$customDat === void 0 ? void 0 : _newVariant$customDat[field], (_currentState$baseDat = currentState.baseData.customData) === null || _currentState$baseDat === void 0 ? void 0 : _currentState$baseDat[field], (_currentState$modifie3 = currentState.modified.variantData[
|
|
12412
|
+
var _ProductHandler$calcu3 = ProductHandler.calculateComputedValue(variant === null || variant === void 0 || (_variant$customData = variant.customData) === null || _variant$customData === void 0 ? void 0 : _variant$customData[field], newVariant === null || newVariant === void 0 || (_newVariant$customDat = newVariant.customData) === null || _newVariant$customDat === void 0 ? void 0 : _newVariant$customDat[field], (_currentState$baseDat = currentState.baseData.customData) === null || _currentState$baseDat === void 0 ? void 0 : _currentState$baseDat[field], (_currentState$modifie3 = currentState.modified.variantData[_i]) === null || _currentState$modifie3 === void 0 ? void 0 : _currentState$modifie3['customData.' + field]),
|
|
12405
12413
|
_value3 = _ProductHandler$calcu3.value,
|
|
12406
12414
|
_modified3 = _ProductHandler$calcu3.modified;
|
|
12407
12415
|
if (!finalVariant.customData) {
|
|
@@ -12416,7 +12424,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12416
12424
|
for (var m = 0; m < availableLanguages.length; m++) {
|
|
12417
12425
|
var _variant$field, _newVariant$field, _field, _currentState$modifie4;
|
|
12418
12426
|
var lang = availableLanguages[m];
|
|
12419
|
-
var _ProductHandler$calcu4 = ProductHandler.calculateComputedValue((_variant$field = variant[field]) === null || _variant$field === void 0 ? void 0 : _variant$field[lang], newVariant === null || newVariant === void 0 || (_newVariant$field = newVariant[field]) === null || _newVariant$field === void 0 ? void 0 : _newVariant$field[lang], (_field = currentState.baseData[field]) === null || _field === void 0 ? void 0 : _field[lang], (_currentState$modifie4 = currentState.modified.variantData[
|
|
12427
|
+
var _ProductHandler$calcu4 = ProductHandler.calculateComputedValue((_variant$field = variant[field]) === null || _variant$field === void 0 ? void 0 : _variant$field[lang], newVariant === null || newVariant === void 0 || (_newVariant$field = newVariant[field]) === null || _newVariant$field === void 0 ? void 0 : _newVariant$field[lang], (_field = currentState.baseData[field]) === null || _field === void 0 ? void 0 : _field[lang], (_currentState$modifie4 = currentState.modified.variantData[_i]) === null || _currentState$modifie4 === void 0 ? void 0 : _currentState$modifie4[field]),
|
|
12420
12428
|
_value4 = _ProductHandler$calcu4.value,
|
|
12421
12429
|
_modified4 = _ProductHandler$calcu4.modified;
|
|
12422
12430
|
if (_value4 !== undefined) valTotal[lang] = _value4;
|
|
@@ -12426,7 +12434,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12426
12434
|
newModified[field] = modTotal;
|
|
12427
12435
|
} else {
|
|
12428
12436
|
var _currentState$modifie5;
|
|
12429
|
-
var _ProductHandler$calcu5 = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie5 = currentState.modified.variantData[
|
|
12437
|
+
var _ProductHandler$calcu5 = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie5 = currentState.modified.variantData[_i]) === null || _currentState$modifie5 === void 0 ? void 0 : _currentState$modifie5[field]),
|
|
12430
12438
|
_value5 = _ProductHandler$calcu5.value,
|
|
12431
12439
|
_modified5 = _ProductHandler$calcu5.modified;
|
|
12432
12440
|
finalVariant[field] = _value5;
|
|
@@ -12437,11 +12445,11 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
12437
12445
|
//as long as shortDescription is not modified by user, autocalc it
|
|
12438
12446
|
var _ProductHandler$calcS = ProductHandler.calcShortDescription(variant.shortDescription, ProductHandler.assign({}, currentState.baseData, currentState.classificationData, finalVariant, {
|
|
12439
12447
|
shortDescription: newVariant.shortDescription
|
|
12440
|
-
}), (_currentState$modifie6 = currentState.modified.variantData[
|
|
12448
|
+
}), (_currentState$modifie6 = currentState.modified.variantData[_i]) === null || _currentState$modifie6 === void 0 ? void 0 : _currentState$modifie6['shortDescription'], (_configurationData$Pr3 = configurationData.ProductCreator) === null || _configurationData$Pr3 === void 0 ? void 0 : _configurationData$Pr3.fields, classificationConfig),
|
|
12441
12449
|
value = _ProductHandler$calcS.value,
|
|
12442
12450
|
modified = _ProductHandler$calcS.modified;
|
|
12443
12451
|
//if the shortDescription of the varinat is not modified, but that of the baseData is, use the value of baseData
|
|
12444
|
-
if (!modified && (currentState.modified.shortDescription || prevState.baseData.shortDescription !== ((_currentState$modifie7 = currentState.modified.variantData[
|
|
12452
|
+
if (!modified && (currentState.modified.shortDescription || prevState.baseData.shortDescription !== ((_currentState$modifie7 = currentState.modified.variantData[_i]) === null || _currentState$modifie7 === void 0 ? void 0 : _currentState$modifie7['shortDescription']))) {
|
|
12445
12453
|
finalVariant.shortDescription = currentState.baseData.shortDescription;
|
|
12446
12454
|
newModified.shortDescription = false;
|
|
12447
12455
|
} else {
|
|
@@ -12592,10 +12600,10 @@ function updateOptMap(currentState, optMap, mediaService, jwt) {
|
|
|
12592
12600
|
LOG$5.debug("Product ".concat(product._id, " has no class mapping for OPT ").concat(optField.field));
|
|
12593
12601
|
return;
|
|
12594
12602
|
}
|
|
12595
|
-
var className = (_optMapEntries$find = optMapEntries.find(function (
|
|
12596
|
-
var
|
|
12597
|
-
|
|
12598
|
-
var optValueField =
|
|
12603
|
+
var className = (_optMapEntries$find = optMapEntries.find(function (_ref11) {
|
|
12604
|
+
var _ref12 = _slicedToArray(_ref11, 2);
|
|
12605
|
+
_ref12[0];
|
|
12606
|
+
var optValueField = _ref12[1];
|
|
12599
12607
|
return (optValueField === null || optValueField === void 0 ? void 0 : optValueField.field) == optField.field;
|
|
12600
12608
|
})) === null || _optMapEntries$find === void 0 ? void 0 : _optMapEntries$find[0];
|
|
12601
12609
|
if (!className) {
|
|
@@ -12716,9 +12724,9 @@ function removeMedia(currentState, data, variants) {
|
|
|
12716
12724
|
return m.url == data.url;
|
|
12717
12725
|
});
|
|
12718
12726
|
if (product.media && index != undefined) {
|
|
12719
|
-
var
|
|
12727
|
+
var _ref13;
|
|
12720
12728
|
var deleted = product.media.splice(index, 1);
|
|
12721
|
-
(
|
|
12729
|
+
(_ref13 = newState.removedMedia).push.apply(_ref13, _toConsumableArray(deleted));
|
|
12722
12730
|
}
|
|
12723
12731
|
});
|
|
12724
12732
|
return newState;
|
|
@@ -14682,7 +14690,7 @@ var clickable = "clickable-YGuVl";
|
|
|
14682
14690
|
var hover = "hover-sk2hO";
|
|
14683
14691
|
var overlay = "overlay-B1Y5o";
|
|
14684
14692
|
var buttons = "buttons-B6O9w";
|
|
14685
|
-
var css_248z$2 = ".detail-wrapper-tR0o7 {\n display: flex;\n flex-direction: column;\n width: calc(100% - 10px);\n margin: 5px;\n padding: 25px;\n gap: 25px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: white;\n z-index: 10;\n box-sizing: border-box;\n transition: transform 0.3s ease-in-out;\n transform: translateX(100%);\n overflow: auto;\n}\n\n.detail-wrapper-tR0o7.active-pfyei {\n transform: translateX(0);\n}\n\n.package-list-hhOL6 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.single-package-yxLGP {\n width: 110px;\n height: 110px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #f2f2f2;\n}\n\n.single-package-yxLGP.selectable-DPwW7:hover {\n background-color: #dee0e4;\n cursor: pointer;\n}\n\n.single-package-yxLGP.selected-622iJ {\n background-color: var(--diva-theme-palette-primary-light);\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.single-package-yxLGP.selectable-DPwW7.selected-622iJ:hover {\n background-color: var(--diva-theme-palette-primary-main);\n color: var(--diva-theme-palette-secondary-contrast-text);\n}\n\n.single-package-yxLGP span {\n text-align: center;\n font-style: normal;\n font-weight: 500;\n font-size: 10px;\n line-height: 12px;\n max-width: 80%;\n min-height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.single-package-yxLGP img {\n height: 50px;\n}\n\n.package-description-pGC30 {\n margin: 10px;\n width: 440px;\n background: #f8f8f8;\n border-radius: 3px;\n display: flex;\n align-items: center;\n}\n\n.package-description-pGC30 span {\n margin: 30px;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n}\n\n.form-wrapper-p0emr {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.text-field-jI6mm {\n width: 400px;\n}\n\n.element-title-030jI {\n font-style: normal;\n font-weight: 300;\n font-size: 22px;\n}\n\n.preview-list-B8EfM {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.preview-box-Yum8Q {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 110px;\n background: #f2f2f2;\n border-radius: 4px;\n}\n\n.preview-box-Yum8Q.clickable-YGuVl:hover {\n cursor: pointer;\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.preview-box-Yum8Q img {\n height: 100px;\n margin: 5px auto;\n padding: 0 5px;\n}\n\n.preview-box-Yum8Q span {\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin: 5px;\n}\n\n.preview-box-Yum8Q button {\n margin: 5px;\n height: 25px;\n font-size: 12px;\n}\n\n.preview-box-Yum8Q .MuiButton-containedPrimary.hover-sk2hO {\n background-color: var(--diva-theme-palette-primary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .MuiButton-containedSecondary.hover-sk2hO {\n background-color: var(--diva-theme-palette-secondary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .overlay-B1Y5o {\n position: absolute;\n top: 5px;\n right: 5px;\n left: 5px;\n height: 100px;\n background: rgba(250, 250, 250, 0.6);\n display: flex;\n justify-content: center;\n align-items: center;\n float: right;\n}\n\n.buttons-B6O9w {\n display: flex;\n gap: 10px;\n justify-content: end;\n margin: auto 20px 5px;\n}\n\n.buttons-B6O9w button {\n width: 400px;\n}\n";
|
|
14693
|
+
var css_248z$2 = ".detail-wrapper-tR0o7 {\n display: flex;\n flex-direction: column;\n width: calc(100% - 10px);\n margin: 5px;\n padding: 25px;\n gap: 25px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: white;\n z-index: 10;\n box-sizing: border-box;\n transition: transform 0.3s ease-in-out;\n transform: translateX(100%);\n overflow: auto;\n}\n\n.detail-wrapper-tR0o7.active-pfyei {\n transform: translateX(0);\n}\n\n.package-list-hhOL6 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.single-package-yxLGP {\n width: 110px;\n height: 110px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #f2f2f2;\n}\n\n.single-package-yxLGP.selectable-DPwW7:hover {\n background-color: #dee0e4;\n cursor: pointer;\n}\n\n.single-package-yxLGP.selected-622iJ {\n background-color: var(--diva-theme-palette-primary-light);\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.single-package-yxLGP.selectable-DPwW7.selected-622iJ:hover {\n background-color: var(--diva-theme-palette-primary-main);\n color: var(--diva-theme-palette-secondary-contrast-text);\n}\n\n.single-package-yxLGP span {\n text-align: center;\n font-style: normal;\n font-weight: 500;\n font-size: 10px;\n line-height: 12px;\n max-width: 80%;\n min-height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.single-package-yxLGP img {\n height: 50px;\n}\n\n.package-description-pGC30 {\n margin: 10px;\n width: 440px;\n background: #f8f8f8;\n border-radius: 3px;\n display: flex;\n align-items: center;\n}\n\n.package-description-pGC30 span {\n margin: 30px;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n}\n\n.form-wrapper-p0emr {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.text-field-jI6mm {\n width: 400px;\n}\n\n.element-title-030jI {\n font-style: normal;\n font-weight: 300;\n font-size: 22px;\n}\n\n.preview-list-B8EfM {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.preview-box-Yum8Q {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 110px;\n background: #f2f2f2;\n border-radius: 4px;\n}\n\n.preview-box-Yum8Q.clickable-YGuVl:hover {\n cursor: pointer;\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.preview-box-Yum8Q img {\n height: 100px;\n margin: 5px auto;\n padding: 0 5px;\n}\n\n.preview-box-Yum8Q span {\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin: 5px;\n}\n\n.preview-box-Yum8Q button {\n margin: 5px;\n height: 25px;\n font-size: 12px;\n}\n\n.preview-box-Yum8Q .MuiButton-containedPrimary.hover-sk2hO {\n background-color: var(--diva-theme-palette-primary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .MuiButton-containedSecondary.hover-sk2hO {\n background-color: var(--diva-theme-palette-secondary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .overlay-B1Y5o {\n position: absolute;\n top: 5px;\n right: 5px;\n left: 5px;\n height: 100px;\n background: rgba(250, 250, 250, 0.6);\n display: flex;\n justify-content: center;\n align-items: center;\n float: right;\n}\n\n.buttons-B6O9w {\n display: flex;\n gap: 10px;\n justify-content: flex-end;\n margin: auto 20px 5px;\n}\n\n.buttons-B6O9w button {\n width: 400px;\n}\n";
|
|
14686
14694
|
styleInject(css_248z$2);
|
|
14687
14695
|
|
|
14688
14696
|
function DetailPage(_ref) {
|
|
@@ -15433,7 +15441,8 @@ function SelectRenderPackage(_ref) {
|
|
|
15433
15441
|
setCampaign = _useRenderjobDetail.setCampaign,
|
|
15434
15442
|
campaign = _useRenderjobDetail.campaign;
|
|
15435
15443
|
var _useDivaCore = useDivaCore(),
|
|
15436
|
-
mediaHandler = _useDivaCore.handler.mediaHandler
|
|
15444
|
+
mediaHandler = _useDivaCore.handler.mediaHandler,
|
|
15445
|
+
organization = _useDivaCore.state.organization;
|
|
15437
15446
|
var _useState = useState([]),
|
|
15438
15447
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15439
15448
|
renderPackages = _useState2[0],
|
|
@@ -15443,7 +15452,7 @@ function SelectRenderPackage(_ref) {
|
|
|
15443
15452
|
selected = _useState4[0],
|
|
15444
15453
|
setSelected = _useState4[1];
|
|
15445
15454
|
useEffect(function () {
|
|
15446
|
-
mediaHandler.getRenderPackages().then(function (res) {
|
|
15455
|
+
mediaHandler.getRenderPackages(organization._id).then(function (res) {
|
|
15447
15456
|
if (res.data) setRenderPackages(res.data);
|
|
15448
15457
|
});
|
|
15449
15458
|
}, []);
|
|
@@ -16449,9 +16458,7 @@ function ProductCreator (_ref) {
|
|
|
16449
16458
|
useEffect(function () {
|
|
16450
16459
|
var _state$initialSelecte;
|
|
16451
16460
|
//reset selection if new data is loaded
|
|
16452
|
-
setSelectedFields((_state$initialSelecte = state === null || state === void 0 ? void 0 : state.initialSelectedFields
|
|
16453
|
-
return f.field != 'available';
|
|
16454
|
-
})) !== null && _state$initialSelecte !== void 0 ? _state$initialSelecte : []);
|
|
16461
|
+
setSelectedFields((_state$initialSelecte = state === null || state === void 0 ? void 0 : state.initialSelectedFields) !== null && _state$initialSelecte !== void 0 ? _state$initialSelecte : []);
|
|
16455
16462
|
}, [state === null || state === void 0 ? void 0 : state.initialSelectedFields]);
|
|
16456
16463
|
var onOpenPlanner = function onOpenPlanner() {
|
|
16457
16464
|
if (currentBasket !== null && currentBasket !== void 0 && currentBasket.SetPlannerInfos) {
|
|
@@ -62,6 +62,10 @@ export declare const uiSchema: (hideWWSButton: boolean, enableSellerInfos?: bool
|
|
|
62
62
|
elements: {
|
|
63
63
|
type: string;
|
|
64
64
|
elements: ({
|
|
65
|
+
type: string;
|
|
66
|
+
scope: string;
|
|
67
|
+
rule?: undefined;
|
|
68
|
+
} | {
|
|
65
69
|
type: string;
|
|
66
70
|
scope: string;
|
|
67
71
|
rule: {
|
|
@@ -75,10 +79,6 @@ export declare const uiSchema: (hideWWSButton: boolean, enableSellerInfos?: bool
|
|
|
75
79
|
};
|
|
76
80
|
};
|
|
77
81
|
};
|
|
78
|
-
} | {
|
|
79
|
-
type: string;
|
|
80
|
-
scope: string;
|
|
81
|
-
rule?: undefined;
|
|
82
82
|
})[];
|
|
83
83
|
}[];
|
|
84
84
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step3.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Basket/defaultSchema/step3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,WA2BhD,CAAC;AAEH,eAAO,MAAM,QAAQ,kBAAmB,OAAO,sBAAsB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"step3.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Basket/defaultSchema/step3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,KAAK,WA2BhD,CAAC;AAEH,eAAO,MAAM,QAAQ,kBAAmB,OAAO,sBAAsB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwK1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvertisingText.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/ProductCreator/components/BasedataForms/GroupedFileds/AdvertisingText.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,QAAA,MAAM,eAAe,gCAAiC,SAAS,
|
|
1
|
+
{"version":3,"file":"AdvertisingText.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/ProductCreator/components/BasedataForms/GroupedFileds/AdvertisingText.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,QAAA,MAAM,eAAe,gCAAiC,SAAS,gBA4B9D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInfo.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/ProductCreator/components/BasedataForms/GroupedFileds/BaseInfo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,QAAA,MAAM,QAAQ,gCAAiC,SAAS,
|
|
1
|
+
{"version":3,"file":"BaseInfo.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/ProductCreator/components/BasedataForms/GroupedFileds/BaseInfo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,QAAA,MAAM,QAAQ,gCAAiC,SAAS,gBAyCvD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/ProductCreator/tabs/RenderJobTable/RenderJobDetail/SelectRenderPackage/index.tsx"],"names":[],"mappings":"AAKA,OAA2B,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAKrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/ProductCreator/tabs/RenderJobTable/RenderJobDetail/SelectRenderPackage/index.tsx"],"names":[],"mappings":"AAKA,OAA2B,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAKrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,eA2EvG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "24.10.0-
|
|
3
|
+
"version": "24.10.0-rc.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"react-i18next": "^11.7.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@crystaldesign/analytics": "24.10.0-
|
|
39
|
-
"@crystaldesign/products-component": "24.10.0-
|
|
40
|
-
"@crystaldesign/real-time-viewer": "24.10.0-
|
|
38
|
+
"@crystaldesign/analytics": "24.10.0-rc.2",
|
|
39
|
+
"@crystaldesign/products-component": "24.10.0-rc.2",
|
|
40
|
+
"@crystaldesign/real-time-viewer": "24.10.0-rc.2",
|
|
41
41
|
"@tinymce/tinymce-react": "^3.13.0",
|
|
42
42
|
"react-error-boundary": "^4.0.13",
|
|
43
43
|
"react-material-ui-carousel": "^2.1.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
},
|
|
46
46
|
"types": "./build/types/seller/src/index.d.ts",
|
|
47
47
|
"module": "build/esm/index.js",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a049b66c62ccab1a1d8a8f7cbbfdfb06a19eefba"
|
|
49
49
|
}
|