@crystaldesign/diva-backoffice 26.2.0-rc.0 → 26.2.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
CHANGED
|
@@ -137,11 +137,11 @@ import Switch$1 from 'antd/es/switch';
|
|
|
137
137
|
import Layout$1 from 'antd/es/layout';
|
|
138
138
|
import Menu from 'antd/es/menu';
|
|
139
139
|
import { DoubleLeftOutlined, PushpinFilled } from '@ant-design/icons/lib/icons';
|
|
140
|
+
import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
141
|
+
import { ContentItemComponent } from '@crystaldesign/content-item';
|
|
142
|
+
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
140
143
|
import { WebPlannerReact } from '@crystaldesign/diva-web-planner-react';
|
|
141
144
|
import isEqual from 'lodash/isEqual';
|
|
142
|
-
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
143
|
-
import { ContentItemComponent } from '@crystaldesign/content-item';
|
|
144
|
-
import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
145
145
|
|
|
146
146
|
(function() {
|
|
147
147
|
const env = {"STAGE":"production"};
|
|
@@ -4516,6 +4516,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
4516
4516
|
}, {
|
|
4517
4517
|
targetField: 'previewImage',
|
|
4518
4518
|
sourceField: 'previewImage'
|
|
4519
|
+
}, {
|
|
4520
|
+
targetField: 'excludeOrganizations',
|
|
4521
|
+
sourceField: 'excludeOrganizations'
|
|
4522
|
+
}, {
|
|
4523
|
+
targetField: 'organizationId',
|
|
4524
|
+
globalValue: 'organizationId'
|
|
4519
4525
|
}, {
|
|
4520
4526
|
targetField: 'previewImageRef',
|
|
4521
4527
|
sourceField: 'previewImageRef'
|
|
@@ -4576,6 +4582,10 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
4576
4582
|
type: 'media',
|
|
4577
4583
|
width: 100,
|
|
4578
4584
|
align: 'center'
|
|
4585
|
+
}, {
|
|
4586
|
+
title: t('backoffice.table.prompts.columns.excludeOrganizations'),
|
|
4587
|
+
field: 'excludeOrganizations',
|
|
4588
|
+
hidden: true
|
|
4579
4589
|
}, {
|
|
4580
4590
|
title: t('backoffice.table.prompts.columns.isGlobal'),
|
|
4581
4591
|
field: 'isGlobal',
|
|
@@ -8031,6 +8041,30 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
8031
8041
|
mediaItemRefField: 'previewImageRef',
|
|
8032
8042
|
urlField: 'previewImage',
|
|
8033
8043
|
functionType: 'RPI'
|
|
8044
|
+
}, {
|
|
8045
|
+
name: 'excludeOrganizations',
|
|
8046
|
+
label: t('backoffice.form.createclientrelation.CE'),
|
|
8047
|
+
type: 'select',
|
|
8048
|
+
mode: 'multiple',
|
|
8049
|
+
required: false,
|
|
8050
|
+
selectMapping: {
|
|
8051
|
+
label: '${displayName}',
|
|
8052
|
+
value: '_id',
|
|
8053
|
+
searchField: [{
|
|
8054
|
+
field: 'displayName',
|
|
8055
|
+
filter: 'contains'
|
|
8056
|
+
}, {
|
|
8057
|
+
field: '_id',
|
|
8058
|
+
filter: 'eq'
|
|
8059
|
+
}],
|
|
8060
|
+
prefilter: '[{parentType,eq,RETAILER}]'
|
|
8061
|
+
},
|
|
8062
|
+
apiInterface: {
|
|
8063
|
+
read: {
|
|
8064
|
+
list: '${authService}/v2/organizations?fields=%7B_id%2CdisplayName%7D',
|
|
8065
|
+
filterServerSide: true
|
|
8066
|
+
}
|
|
8067
|
+
}
|
|
8034
8068
|
}, {
|
|
8035
8069
|
name: 'isGlobal',
|
|
8036
8070
|
label: t('backoffice.table.prompts.columns.isGlobal'),
|
|
@@ -8122,6 +8156,29 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
8122
8156
|
urlField: 'previewImage',
|
|
8123
8157
|
functionType: 'RPI',
|
|
8124
8158
|
readonly: true
|
|
8159
|
+
}, {
|
|
8160
|
+
type: 'select',
|
|
8161
|
+
mode: 'multiple',
|
|
8162
|
+
label: t('backoffice.table.views.organizationId'),
|
|
8163
|
+
name: 'excludeOrganizations',
|
|
8164
|
+
readonly: true,
|
|
8165
|
+
selectMapping: {
|
|
8166
|
+
label: '${displayName}',
|
|
8167
|
+
value: '_id',
|
|
8168
|
+
searchField: [{
|
|
8169
|
+
field: 'displayName',
|
|
8170
|
+
filter: 'contains'
|
|
8171
|
+
}, {
|
|
8172
|
+
field: '_id',
|
|
8173
|
+
filter: 'eq'
|
|
8174
|
+
}]
|
|
8175
|
+
},
|
|
8176
|
+
apiInterface: {
|
|
8177
|
+
read: {
|
|
8178
|
+
list: '${authService}/v2/organizations?fields=%7B_id%2CdisplayName%7D',
|
|
8179
|
+
filterServerSide: true
|
|
8180
|
+
}
|
|
8181
|
+
}
|
|
8125
8182
|
}, {
|
|
8126
8183
|
name: 'isGlobal',
|
|
8127
8184
|
label: t('backoffice.table.prompts.columns.isGlobal'),
|
|
@@ -9756,7 +9813,8 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9756
9813
|
hidden: true
|
|
9757
9814
|
}];
|
|
9758
9815
|
var translationItems = [];
|
|
9759
|
-
var _getItemsByContent = function getItemsByContent(
|
|
9816
|
+
var _getItemsByContent = function getItemsByContent(c, path) {
|
|
9817
|
+
var content = Array.isArray(c) ? c : [c];
|
|
9760
9818
|
for (var i = 0; i < content.length; i++) {
|
|
9761
9819
|
var item = content[i];
|
|
9762
9820
|
var p = [].concat(_toConsumableArray(path), [i]);
|
|
@@ -10003,6 +10061,21 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10003
10061
|
});
|
|
10004
10062
|
_getItemsByContent(item.content, [].concat(_toConsumableArray(p), ['content']));
|
|
10005
10063
|
break;
|
|
10064
|
+
case 'QuickConfig':
|
|
10065
|
+
translationItems.push({
|
|
10066
|
+
name: 'QuickConfig',
|
|
10067
|
+
type: 'subTitle'
|
|
10068
|
+
});
|
|
10069
|
+
translationItems.push({
|
|
10070
|
+
name: [].concat(_toConsumableArray(p), ['type']),
|
|
10071
|
+
hidden: true
|
|
10072
|
+
});
|
|
10073
|
+
translationItems.push({
|
|
10074
|
+
name: [].concat(_toConsumableArray(p), ['config']),
|
|
10075
|
+
type: 'object',
|
|
10076
|
+
label: 'Configuration'
|
|
10077
|
+
});
|
|
10078
|
+
break;
|
|
10006
10079
|
}
|
|
10007
10080
|
}
|
|
10008
10081
|
};
|
|
@@ -10054,7 +10127,8 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10054
10127
|
hidden: true
|
|
10055
10128
|
}];
|
|
10056
10129
|
var translationItems = [];
|
|
10057
|
-
var _getItemsByContent2 = function getItemsByContent(
|
|
10130
|
+
var _getItemsByContent2 = function getItemsByContent(c, path) {
|
|
10131
|
+
var content = Array.isArray(c) ? c : [c];
|
|
10058
10132
|
for (var i = 0; i < content.length; i++) {
|
|
10059
10133
|
var item = content[i];
|
|
10060
10134
|
var p = [].concat(_toConsumableArray(path), [i]);
|
|
@@ -10244,6 +10318,21 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10244
10318
|
});
|
|
10245
10319
|
_getItemsByContent2(item.content, [].concat(_toConsumableArray(p), ['content']));
|
|
10246
10320
|
break;
|
|
10321
|
+
case 'QuickConfig':
|
|
10322
|
+
translationItems.push({
|
|
10323
|
+
name: 'QuickConfig',
|
|
10324
|
+
type: 'subTitle'
|
|
10325
|
+
});
|
|
10326
|
+
translationItems.push({
|
|
10327
|
+
name: [].concat(_toConsumableArray(p), ['type']),
|
|
10328
|
+
hidden: true
|
|
10329
|
+
});
|
|
10330
|
+
translationItems.push({
|
|
10331
|
+
name: [].concat(_toConsumableArray(p), ['config']),
|
|
10332
|
+
type: 'object',
|
|
10333
|
+
label: 'Configuration'
|
|
10334
|
+
});
|
|
10335
|
+
break;
|
|
10247
10336
|
}
|
|
10248
10337
|
}
|
|
10249
10338
|
};
|
|
@@ -18258,7 +18347,12 @@ function useFormData (_ref) {
|
|
|
18258
18347
|
var tool = configuration.tools[i];
|
|
18259
18348
|
tools.push(_objectSpread$13(_objectSpread$13({}, tool), {}, {
|
|
18260
18349
|
parameters: {
|
|
18261
|
-
data: state.data
|
|
18350
|
+
data: state.data,
|
|
18351
|
+
formInstance: form,
|
|
18352
|
+
// Pass form instance
|
|
18353
|
+
formItems: configuration.items,
|
|
18354
|
+
// Pass form configuration
|
|
18355
|
+
onInputChanged: onInputChanged // Pass onInputChanged to update state.data
|
|
18262
18356
|
},
|
|
18263
18357
|
startWidth: tool.startWidth,
|
|
18264
18358
|
defaultOpen: (_tool$defaultOpen = tool.defaultOpen) !== null && _tool$defaultOpen !== void 0 ? _tool$defaultOpen : true,
|
|
@@ -18271,7 +18365,7 @@ function useFormData (_ref) {
|
|
|
18271
18365
|
};
|
|
18272
18366
|
}
|
|
18273
18367
|
return;
|
|
18274
|
-
}, [state.data]);
|
|
18368
|
+
}, [state.data, form, onInputChanged]);
|
|
18275
18369
|
var _keepRemovedMediaItem = /*#__PURE__*/function () {
|
|
18276
18370
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, items) {
|
|
18277
18371
|
var _iterator3, _step3, item, itemName, media, mediaItemRefIdPath, urlPath, mediaItemRefId, url, mediaItem, arrayData, i;
|
|
@@ -21431,11 +21525,13 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
21431
21525
|
children: item.label
|
|
21432
21526
|
});
|
|
21433
21527
|
case 'richText':
|
|
21528
|
+
// Use key to force re-mount when value changes (needed for RichTextEditor's useRef)
|
|
21529
|
+
var richTextValue = state.getData(absoluteName, state.data);
|
|
21434
21530
|
return /*#__PURE__*/jsx(RichTextEditor$1, {
|
|
21435
|
-
initValue:
|
|
21531
|
+
initValue: richTextValue,
|
|
21436
21532
|
name: absoluteName,
|
|
21437
21533
|
onChange: _onChange
|
|
21438
|
-
});
|
|
21534
|
+
}, richTextValue || 'empty');
|
|
21439
21535
|
case 'number':
|
|
21440
21536
|
return /*#__PURE__*/jsx(InputNumber, {
|
|
21441
21537
|
disabled: disabled,
|
|
@@ -47205,15 +47301,160 @@ var toolbarContent = "toolbar-content-GxyU6";
|
|
|
47205
47301
|
var css_248z$6 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n";
|
|
47206
47302
|
styleInject(css_248z$6);
|
|
47207
47303
|
|
|
47304
|
+
var LOG$2 = getLogger('Backoffice', 'ErrorBoundary');
|
|
47305
|
+
var ErrorBoundary = function ErrorBoundary(_ref) {
|
|
47306
|
+
var children = _ref.children,
|
|
47307
|
+
_ref$errorCode = _ref.errorCode,
|
|
47308
|
+
errorCode = _ref$errorCode === void 0 ? 'BACKO_0001' : _ref$errorCode,
|
|
47309
|
+
addToErrorLog = _ref.addToErrorLog;
|
|
47310
|
+
return /*#__PURE__*/jsx(ErrorBoundary$1, {
|
|
47311
|
+
FallbackComponent: FallbackComponent,
|
|
47312
|
+
onError: function onError(err) {
|
|
47313
|
+
LOG$2.error(new DivaError$1('Error in Backoffice', {
|
|
47314
|
+
cause: err,
|
|
47315
|
+
custom: {
|
|
47316
|
+
code: errorCode,
|
|
47317
|
+
addToErrorLog: addToErrorLog
|
|
47318
|
+
}
|
|
47319
|
+
}));
|
|
47320
|
+
},
|
|
47321
|
+
children: children
|
|
47322
|
+
});
|
|
47323
|
+
};
|
|
47324
|
+
var FallbackComponent = function FallbackComponent(_ref2) {
|
|
47325
|
+
_ref2.error;
|
|
47326
|
+
var resetErrorBoundary = _ref2.resetErrorBoundary;
|
|
47327
|
+
var root = null;
|
|
47328
|
+
try {
|
|
47329
|
+
root = useStore();
|
|
47330
|
+
} catch (_unused) {}
|
|
47331
|
+
useEffect(function () {
|
|
47332
|
+
var _root;
|
|
47333
|
+
(_root = root) === null || _root === void 0 || _root.setResetErrorBoundary(resetErrorBoundary);
|
|
47334
|
+
return function () {
|
|
47335
|
+
var _root2;
|
|
47336
|
+
(_root2 = root) === null || _root2 === void 0 || _root2.setResetErrorBoundary();
|
|
47337
|
+
};
|
|
47338
|
+
}, []);
|
|
47339
|
+
return /*#__PURE__*/jsx(Result$1, {
|
|
47340
|
+
status: "500",
|
|
47341
|
+
subTitle: "Es ist ein Fehler aufgetreten, versuchen Sie es sp\xE4ter nochmal oder kontaktieren Sie den Support."
|
|
47342
|
+
});
|
|
47343
|
+
};
|
|
47344
|
+
|
|
47345
|
+
var container$1 = "container-babS2";
|
|
47346
|
+
var css_248z$5 = ".container-babS2 {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-babS2 {\n border-color: #424242;\n}\n";
|
|
47347
|
+
styleInject(css_248z$5);
|
|
47348
|
+
|
|
47349
|
+
var InformationWindow = function InformationWindow(_ref) {
|
|
47350
|
+
var _tool$parameters;
|
|
47351
|
+
var tool = _ref.tool;
|
|
47352
|
+
var root = useStore();
|
|
47353
|
+
var codex = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.contentItemCodex;
|
|
47354
|
+
useEffect(function () {
|
|
47355
|
+
var _root$resetErrorBound;
|
|
47356
|
+
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
|
47357
|
+
}, [tool.parameters]);
|
|
47358
|
+
return /*#__PURE__*/jsx(ErrorBoundary, {
|
|
47359
|
+
errorCode: "BACKO_0004",
|
|
47360
|
+
addToErrorLog: codex,
|
|
47361
|
+
children: /*#__PURE__*/jsx("div", {
|
|
47362
|
+
className: container$1,
|
|
47363
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
|
47364
|
+
contentItemCodex: codex
|
|
47365
|
+
})
|
|
47366
|
+
})
|
|
47367
|
+
});
|
|
47368
|
+
};
|
|
47369
|
+
|
|
47370
|
+
function useWysiwyg$1(_ref) {
|
|
47371
|
+
var tool = _ref.tool,
|
|
47372
|
+
toolbar = _ref.toolbar;
|
|
47373
|
+
tool.parameters;
|
|
47374
|
+
_objectDestructuringEmpty(useDivaCore());
|
|
47375
|
+
var root = useStore();
|
|
47376
|
+
var _useState = useState([]),
|
|
47377
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47378
|
+
data = _useState2[0],
|
|
47379
|
+
setData = _useState2[1];
|
|
47380
|
+
useEffect(function () {
|
|
47381
|
+
var _tool$parameters$data, _tool$parameters, _root$resetErrorBound;
|
|
47382
|
+
var newData = _resoveLanguage(toJS((_tool$parameters$data = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 || (_tool$parameters = _tool$parameters.data) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.content) !== null && _tool$parameters$data !== void 0 ? _tool$parameters$data : []), toolbar.currentLanguage);
|
|
47383
|
+
setData(newData);
|
|
47384
|
+
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
|
47385
|
+
}, [tool.parameters, tool.parameters.data]);
|
|
47386
|
+
return {
|
|
47387
|
+
data: data
|
|
47388
|
+
};
|
|
47389
|
+
}
|
|
47390
|
+
var _resoveLanguage = function resoveLanguage(contents, lang) {
|
|
47391
|
+
for (var i = 0; i < contents.length; i++) {
|
|
47392
|
+
var c = contents[i];
|
|
47393
|
+
switch (c.type) {
|
|
47394
|
+
case 'Gallery':
|
|
47395
|
+
case 'Wrapper':
|
|
47396
|
+
c.content = _resoveLanguage(c.content, lang);
|
|
47397
|
+
break;
|
|
47398
|
+
case 'Image':
|
|
47399
|
+
if (c.altText) c.altText = getTranslation(c.altText, lang);
|
|
47400
|
+
case 'Video':
|
|
47401
|
+
c.url = getTranslation(c.url, lang);
|
|
47402
|
+
break;
|
|
47403
|
+
case 'RichText':
|
|
47404
|
+
case 'Title':
|
|
47405
|
+
c.text = getTranslation(c.text, lang);
|
|
47406
|
+
break;
|
|
47407
|
+
case 'URL':
|
|
47408
|
+
if (c.text) c.text = getTranslation(c.text, lang);
|
|
47409
|
+
c.url = getTranslation(c.url, lang);
|
|
47410
|
+
break;
|
|
47411
|
+
}
|
|
47412
|
+
}
|
|
47413
|
+
return contents;
|
|
47414
|
+
};
|
|
47415
|
+
var getTranslation = function getTranslation(text, lang) {
|
|
47416
|
+
if (_typeof(text) === 'object') {
|
|
47417
|
+
return text[lang] || text['de'] || text[Object.keys(text)[0]];
|
|
47418
|
+
} else {
|
|
47419
|
+
return text;
|
|
47420
|
+
}
|
|
47421
|
+
};
|
|
47422
|
+
|
|
47423
|
+
var container = "container-Xbv0B";
|
|
47424
|
+
var css_248z$4 = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
|
47425
|
+
styleInject(css_248z$4);
|
|
47426
|
+
|
|
47427
|
+
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
47428
|
+
var tool = _ref.tool,
|
|
47429
|
+
toolbar = _ref.toolbar;
|
|
47430
|
+
var _useWysiwygContentIte = useWysiwyg$1({
|
|
47431
|
+
tool: tool,
|
|
47432
|
+
toolbar: toolbar
|
|
47433
|
+
}),
|
|
47434
|
+
data = _useWysiwygContentIte.data;
|
|
47435
|
+
return /*#__PURE__*/jsx(ErrorBoundary, {
|
|
47436
|
+
errorCode: "BACKO_0004",
|
|
47437
|
+
addToErrorLog: data,
|
|
47438
|
+
children: /*#__PURE__*/jsx("div", {
|
|
47439
|
+
className: container,
|
|
47440
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
|
47441
|
+
configuration: {
|
|
47442
|
+
content: data !== null && data !== void 0 ? data : []
|
|
47443
|
+
}
|
|
47444
|
+
})
|
|
47445
|
+
})
|
|
47446
|
+
});
|
|
47447
|
+
};
|
|
47448
|
+
|
|
47208
47449
|
var wrapper$3 = "wrapper-Q13-g";
|
|
47209
47450
|
var confContainer = "conf-container-Sm5LL";
|
|
47210
|
-
var css_248z$
|
|
47211
|
-
styleInject(css_248z$
|
|
47451
|
+
var css_248z$3 = ".wrapper-Q13-g {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.conf-container-Sm5LL {\n padding-top: 10px;\n background: white;\n color: black;\n height: calc(100% - 40px);\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n}\n\n.darkmode .conf-container-Sm5LL {\n border-color: #424242;\n}\n\n";
|
|
47452
|
+
styleInject(css_248z$3);
|
|
47212
47453
|
|
|
47213
47454
|
var wrapper$2 = "wrapper-IcNC5";
|
|
47214
47455
|
var select$2 = "select-jVMz-";
|
|
47215
|
-
var css_248z$
|
|
47216
|
-
styleInject(css_248z$
|
|
47456
|
+
var css_248z$2 = ".wrapper-IcNC5 {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-jVMz- {\n z-index: 1000;\n flex: 1;\n max-width: calc(100% - 48px);\n}\n";
|
|
47457
|
+
styleInject(css_248z$2);
|
|
47217
47458
|
|
|
47218
47459
|
function ownKeys$4(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; }
|
|
47219
47460
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -47531,8 +47772,8 @@ function useLoadingState(hasSerie) {
|
|
|
47531
47772
|
};
|
|
47532
47773
|
}
|
|
47533
47774
|
|
|
47534
|
-
var LOG$
|
|
47535
|
-
function useWysiwyg
|
|
47775
|
+
var LOG$1 = getLogger('Backoffice', 'WYSIWYG_Configurator');
|
|
47776
|
+
function useWysiwyg(_ref) {
|
|
47536
47777
|
var _tool$elementProps2, _tool$parameters6, _tool$elementProps8, _tool$elementProps9, _tool$parameters18, _tool$parameters19, _tool$elementProps16, _tool$elementProps17;
|
|
47537
47778
|
var tool = _ref.tool,
|
|
47538
47779
|
toolbar = _ref.toolbar;
|
|
@@ -47573,7 +47814,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47573
47814
|
});
|
|
47574
47815
|
}
|
|
47575
47816
|
if (Object.keys(changes).length > 0) {
|
|
47576
|
-
LOG$
|
|
47817
|
+
LOG$1.debug('Tool parameters changed', {
|
|
47577
47818
|
changes: changes,
|
|
47578
47819
|
prevParameters: JSON.parse(JSON.stringify(prevParameters)),
|
|
47579
47820
|
parameters: JSON.parse(JSON.stringify(tool.parameters))
|
|
@@ -47607,7 +47848,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47607
47848
|
});
|
|
47608
47849
|
}
|
|
47609
47850
|
if (Object.keys(_changes).length > 0) {
|
|
47610
|
-
LOG$
|
|
47851
|
+
LOG$1.debug('Tool elementProps changed', {
|
|
47611
47852
|
changes: _changes,
|
|
47612
47853
|
prevElementProps: JSON.parse(JSON.stringify(prevElementProps)),
|
|
47613
47854
|
elementProps: JSON.parse(JSON.stringify(tool.elementProps))
|
|
@@ -47634,7 +47875,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47634
47875
|
var _tool$parameters2, _tool$parameters3;
|
|
47635
47876
|
if ((_tool$parameters2 = tool.parameters) !== null && _tool$parameters2 !== void 0 && _tool$parameters2.opv || (_tool$parameters3 = tool.parameters) !== null && _tool$parameters3 !== void 0 && _tool$parameters3.opt) {
|
|
47636
47877
|
var _tool$parameters4, _tool$parameters5;
|
|
47637
|
-
LOG$
|
|
47878
|
+
LOG$1.debug('Clearing doNavigate due to opv/opt parameters', {
|
|
47638
47879
|
opv: (_tool$parameters4 = tool.parameters) === null || _tool$parameters4 === void 0 ? void 0 : _tool$parameters4.opv,
|
|
47639
47880
|
opt: (_tool$parameters5 = tool.parameters) === null || _tool$parameters5 === void 0 ? void 0 : _tool$parameters5.opt
|
|
47640
47881
|
});
|
|
@@ -47652,7 +47893,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47652
47893
|
setItemList = _useState8[1];
|
|
47653
47894
|
var onSetItem = function onSetItem(item) {
|
|
47654
47895
|
var _tool$elementProps3, _tool$elementProps3$o;
|
|
47655
|
-
LOG$
|
|
47896
|
+
LOG$1.debug('onSetTypeNo called', {
|
|
47656
47897
|
typeNo: item === null || item === void 0 ? void 0 : item.typeNo
|
|
47657
47898
|
});
|
|
47658
47899
|
(_tool$elementProps3 = tool.elementProps) === null || _tool$elementProps3 === void 0 || (_tool$elementProps3$o = _tool$elementProps3.onItemChange) === null || _tool$elementProps3$o === void 0 || _tool$elementProps3$o.call(_tool$elementProps3, item);
|
|
@@ -47673,13 +47914,13 @@ function useWysiwyg$1(_ref) {
|
|
|
47673
47914
|
setSerieList = _useState14[1];
|
|
47674
47915
|
var onSetSerie = function onSetSerie(serie) {
|
|
47675
47916
|
var _tool$elementProps4, _tool$elementProps4$o;
|
|
47676
|
-
LOG$
|
|
47917
|
+
LOG$1.debug('onSetSerie called', {
|
|
47677
47918
|
serie: serie
|
|
47678
47919
|
});
|
|
47679
47920
|
(_tool$elementProps4 = tool.elementProps) === null || _tool$elementProps4 === void 0 || (_tool$elementProps4$o = _tool$elementProps4.onSerieChange) === null || _tool$elementProps4$o === void 0 || _tool$elementProps4$o.call(_tool$elementProps4, serie);
|
|
47680
47921
|
};
|
|
47681
47922
|
var onSetSerieList = function onSetSerieList(serieList) {
|
|
47682
|
-
LOG$
|
|
47923
|
+
LOG$1.debug('onSetSerieList called', {
|
|
47683
47924
|
serieList: serieList
|
|
47684
47925
|
});
|
|
47685
47926
|
setSerieList(serieList);
|
|
@@ -47703,14 +47944,14 @@ function useWysiwyg$1(_ref) {
|
|
|
47703
47944
|
if (foundSerie) {
|
|
47704
47945
|
return foundSerie;
|
|
47705
47946
|
} else {
|
|
47706
|
-
LOG$
|
|
47947
|
+
LOG$1.debug('Clearing internal serie - not found in serieList', {
|
|
47707
47948
|
serieNo: tool.elementProps.serie.serieNo
|
|
47708
47949
|
});
|
|
47709
47950
|
return undefined;
|
|
47710
47951
|
}
|
|
47711
47952
|
} else {
|
|
47712
47953
|
// No serie in elementProps, clear internal state
|
|
47713
|
-
LOG$
|
|
47954
|
+
LOG$1.debug('Clearing internal serie - no serie in elementProps');
|
|
47714
47955
|
return undefined;
|
|
47715
47956
|
}
|
|
47716
47957
|
}, [(_tool$elementProps8 = tool.elementProps) === null || _tool$elementProps8 === void 0 ? void 0 : _tool$elementProps8.serie, serieList]);
|
|
@@ -47729,7 +47970,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47729
47970
|
language = _useState16[0],
|
|
47730
47971
|
setLanguage = _useState16[1];
|
|
47731
47972
|
var onSetLanguage = function onSetLanguage(lang) {
|
|
47732
|
-
LOG$
|
|
47973
|
+
LOG$1.debug('onSetLanguage called', {
|
|
47733
47974
|
lang: lang,
|
|
47734
47975
|
previousLanguage: language
|
|
47735
47976
|
});
|
|
@@ -47738,7 +47979,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47738
47979
|
};
|
|
47739
47980
|
useEffect(function () {
|
|
47740
47981
|
if (!toolbar.hidden) {
|
|
47741
|
-
LOG$
|
|
47982
|
+
LOG$1.debug('Toolbar became visible, setting doReset', {
|
|
47742
47983
|
hidden: toolbar.hidden
|
|
47743
47984
|
});
|
|
47744
47985
|
setDoReset(true);
|
|
@@ -47750,7 +47991,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47750
47991
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
47751
47992
|
while (1) switch (_context.prev = _context.next) {
|
|
47752
47993
|
case 0:
|
|
47753
|
-
LOG$
|
|
47994
|
+
LOG$1.debug('handleLoadMask started', {
|
|
47754
47995
|
packageId: id
|
|
47755
47996
|
});
|
|
47756
47997
|
loadingState.setLoadingMask(true);
|
|
@@ -47761,7 +48002,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47761
48002
|
return loadMask(id, enricherServiceUrl, jwt);
|
|
47762
48003
|
case 7:
|
|
47763
48004
|
maskData = _context.sent;
|
|
47764
|
-
LOG$
|
|
48005
|
+
LOG$1.debug('handleLoadMask completed', {
|
|
47765
48006
|
packageId: id,
|
|
47766
48007
|
maskReceived: !!maskData
|
|
47767
48008
|
});
|
|
@@ -47771,7 +48012,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47771
48012
|
case 12:
|
|
47772
48013
|
_context.prev = 12;
|
|
47773
48014
|
_context.t0 = _context["catch"](4);
|
|
47774
|
-
LOG$
|
|
48015
|
+
LOG$1.error(new Error('Failed to load mask for package ' + id, {
|
|
47775
48016
|
cause: _context.t0
|
|
47776
48017
|
}));
|
|
47777
48018
|
case 15:
|
|
@@ -47794,7 +48035,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47794
48035
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
47795
48036
|
while (1) switch (_context2.prev = _context2.next) {
|
|
47796
48037
|
case 0:
|
|
47797
|
-
LOG$
|
|
48038
|
+
LOG$1.debug('handleLoadPackage started', {
|
|
47798
48039
|
packageId: id
|
|
47799
48040
|
});
|
|
47800
48041
|
loadingState.setLoadingPackage(true);
|
|
@@ -47809,7 +48050,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47809
48050
|
_yield$loadPackage.isApi;
|
|
47810
48051
|
_yield$loadPackage.accountId;
|
|
47811
48052
|
series = _yield$loadPackage.series;
|
|
47812
|
-
LOG$
|
|
48053
|
+
LOG$1.debug('handleLoadPackage completed', {
|
|
47813
48054
|
packageId: id,
|
|
47814
48055
|
catalogId: fetchedCatalogId,
|
|
47815
48056
|
seriesCount: series.length
|
|
@@ -47821,7 +48062,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47821
48062
|
case 17:
|
|
47822
48063
|
_context2.prev = 17;
|
|
47823
48064
|
_context2.t0 = _context2["catch"](4);
|
|
47824
|
-
LOG$
|
|
48065
|
+
LOG$1.error(new Error('Failed to load package ' + id, {
|
|
47825
48066
|
cause: _context2.t0
|
|
47826
48067
|
}));
|
|
47827
48068
|
case 20:
|
|
@@ -47845,7 +48086,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47845
48086
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
47846
48087
|
while (1) switch (_context3.prev = _context3.next) {
|
|
47847
48088
|
case 0:
|
|
47848
|
-
LOG$
|
|
48089
|
+
LOG$1.debug('handleLoadCatalog started', {
|
|
47849
48090
|
catalogId: id,
|
|
47850
48091
|
useIDMService: !!((_tool$parameters7 = tool.parameters) !== null && _tool$parameters7 !== void 0 && _tool$parameters7.isIDMData)
|
|
47851
48092
|
});
|
|
@@ -47859,7 +48100,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47859
48100
|
return loadCatalogs(id, enricherServiceUrl, idmServiceUrl, useIDMService, jwt);
|
|
47860
48101
|
case 9:
|
|
47861
48102
|
series = _context3.sent;
|
|
47862
|
-
LOG$
|
|
48103
|
+
LOG$1.debug('handleLoadCatalog completed', {
|
|
47863
48104
|
catalogId: id,
|
|
47864
48105
|
seriesCount: series.length
|
|
47865
48106
|
});
|
|
@@ -47869,7 +48110,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47869
48110
|
case 14:
|
|
47870
48111
|
_context3.prev = 14;
|
|
47871
48112
|
_context3.t0 = _context3["catch"](6);
|
|
47872
|
-
LOG$
|
|
48113
|
+
LOG$1.error(new Error('Failed to load catalog ' + id, {
|
|
47873
48114
|
cause: _context3.t0
|
|
47874
48115
|
}));
|
|
47875
48116
|
case 17:
|
|
@@ -47889,7 +48130,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47889
48130
|
useEffect(function () {
|
|
47890
48131
|
if (doReset) {
|
|
47891
48132
|
var _tool$parameters9, _tool$parameters10, _tool$parameters11, _tool$parameters12, _tool$parameters13, _tool$parameters14, _tool$parameters15;
|
|
47892
|
-
LOG$
|
|
48133
|
+
LOG$1.debug('doReset effect triggered', {
|
|
47893
48134
|
isIDMData: (_tool$parameters9 = tool.parameters) === null || _tool$parameters9 === void 0 ? void 0 : _tool$parameters9.isIDMData,
|
|
47894
48135
|
catalogId: (_tool$parameters10 = tool.parameters) === null || _tool$parameters10 === void 0 ? void 0 : _tool$parameters10.catalogId,
|
|
47895
48136
|
packageId: (_tool$parameters11 = tool.parameters) === null || _tool$parameters11 === void 0 ? void 0 : _tool$parameters11.packageId,
|
|
@@ -47898,7 +48139,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47898
48139
|
setItemList([]);
|
|
47899
48140
|
loadingState.setLoadingArticles(true);
|
|
47900
48141
|
if (currentNav) {
|
|
47901
|
-
LOG$
|
|
48142
|
+
LOG$1.debug('Setting doNavigate from currentNav', {
|
|
47902
48143
|
currentNav: currentNav
|
|
47903
48144
|
});
|
|
47904
48145
|
setDoNavigate(currentNav);
|
|
@@ -47924,7 +48165,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47924
48165
|
}, [doReset]);
|
|
47925
48166
|
useEffect(function () {
|
|
47926
48167
|
var _tool$parameters16, _tool$parameters17;
|
|
47927
|
-
LOG$
|
|
48168
|
+
LOG$1.debug('Parameters changed, triggering reset', {
|
|
47928
48169
|
catalogId: (_tool$parameters16 = tool.parameters) === null || _tool$parameters16 === void 0 ? void 0 : _tool$parameters16.catalogId,
|
|
47929
48170
|
packageId: (_tool$parameters17 = tool.parameters) === null || _tool$parameters17 === void 0 ? void 0 : _tool$parameters17.packageId,
|
|
47930
48171
|
previousCatalogId: catalogId
|
|
@@ -47942,7 +48183,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47942
48183
|
_context4.next = 20;
|
|
47943
48184
|
break;
|
|
47944
48185
|
}
|
|
47945
|
-
LOG$
|
|
48186
|
+
LOG$1.debug('Event received', {
|
|
47946
48187
|
eventType: e.type
|
|
47947
48188
|
});
|
|
47948
48189
|
catalogData = e.data.catalogData;
|
|
@@ -47976,7 +48217,7 @@ function useWysiwyg$1(_ref) {
|
|
|
47976
48217
|
_context4.next = 5;
|
|
47977
48218
|
break;
|
|
47978
48219
|
case 15:
|
|
47979
|
-
LOG$
|
|
48220
|
+
LOG$1.debug('Articles loaded', {
|
|
47980
48221
|
totalArticles: articles.length,
|
|
47981
48222
|
currentItemTypeNo: (_tool$elementProps10 = tool.elementProps) === null || _tool$elementProps10 === void 0 || (_tool$elementProps10 = _tool$elementProps10.item) === null || _tool$elementProps10 === void 0 ? void 0 : _tool$elementProps10.typeNo
|
|
47982
48223
|
});
|
|
@@ -47989,26 +48230,26 @@ function useWysiwyg$1(_ref) {
|
|
|
47989
48230
|
var _tool$elementProps12;
|
|
47990
48231
|
return a.value == ((_tool$elementProps12 = tool.elementProps) === null || _tool$elementProps12 === void 0 || (_tool$elementProps12 = _tool$elementProps12.item) === null || _tool$elementProps12 === void 0 ? void 0 : _tool$elementProps12.typeNo);
|
|
47991
48232
|
})) {
|
|
47992
|
-
LOG$
|
|
48233
|
+
LOG$1.debug('Setting initial typeNo', {
|
|
47993
48234
|
initialTypeNo: initialTypeNo
|
|
47994
48235
|
});
|
|
47995
48236
|
onSetItem(initialTypeNo ? {
|
|
47996
48237
|
typeNo: initialTypeNo
|
|
47997
48238
|
} : undefined);
|
|
47998
48239
|
} else {
|
|
47999
|
-
LOG$
|
|
48240
|
+
LOG$1.debug('Initial typeNo already set', {
|
|
48000
48241
|
initialTypeNo: (_tool$elementProps13 = tool.elementProps) === null || _tool$elementProps13 === void 0 || (_tool$elementProps13 = _tool$elementProps13.item) === null || _tool$elementProps13 === void 0 ? void 0 : _tool$elementProps13.typeNo
|
|
48001
48242
|
});
|
|
48002
48243
|
}
|
|
48003
48244
|
case 20:
|
|
48004
48245
|
if (e.type === 'navigatedToOption') {
|
|
48005
|
-
LOG$
|
|
48246
|
+
LOG$1.debug('Navigated to option', {
|
|
48006
48247
|
optionCodex: e.data.optionCodex
|
|
48007
48248
|
});
|
|
48008
48249
|
setCurrentNav(e.data.optionCodex);
|
|
48009
48250
|
}
|
|
48010
48251
|
if (e.type === 'invalidateCache' && ((_e$data = e.data) === null || _e$data === void 0 ? void 0 : _e$data.type) === 'series') {
|
|
48011
|
-
LOG$
|
|
48252
|
+
LOG$1.debug('Invalidate cache', {
|
|
48012
48253
|
type: (_e$data2 = e.data) === null || _e$data2 === void 0 ? void 0 : _e$data2.type
|
|
48013
48254
|
});
|
|
48014
48255
|
setDoReset(true);
|
|
@@ -48026,12 +48267,12 @@ function useWysiwyg$1(_ref) {
|
|
|
48026
48267
|
useEffect(function () {
|
|
48027
48268
|
var _tool$elementProps14;
|
|
48028
48269
|
subscribeEvents(onEventCalled);
|
|
48029
|
-
LOG$
|
|
48270
|
+
LOG$1.debug('Subscribed to events', {
|
|
48030
48271
|
itemTypeNo: (_tool$elementProps14 = tool.elementProps) === null || _tool$elementProps14 === void 0 || (_tool$elementProps14 = _tool$elementProps14.item) === null || _tool$elementProps14 === void 0 ? void 0 : _tool$elementProps14.typeNo
|
|
48031
48272
|
});
|
|
48032
48273
|
return function () {
|
|
48033
48274
|
var _tool$elementProps15;
|
|
48034
|
-
LOG$
|
|
48275
|
+
LOG$1.debug('Unsubscribed from events', {
|
|
48035
48276
|
itemTypeNo: (_tool$elementProps15 = tool.elementProps) === null || _tool$elementProps15 === void 0 || (_tool$elementProps15 = _tool$elementProps15.item) === null || _tool$elementProps15 === void 0 ? void 0 : _tool$elementProps15.typeNo
|
|
48036
48277
|
});
|
|
48037
48278
|
unSubscribeEvents(onEventCalled);
|
|
@@ -48162,7 +48403,7 @@ function useWysiwyg$1(_ref) {
|
|
|
48162
48403
|
}
|
|
48163
48404
|
});
|
|
48164
48405
|
if (Object.keys(changes).length > 0) {
|
|
48165
|
-
LOG$
|
|
48406
|
+
LOG$1.debug('Wysiwyg state changed', {
|
|
48166
48407
|
changes: changes,
|
|
48167
48408
|
prevState: JSON.parse(JSON.stringify(prevState)),
|
|
48168
48409
|
state: JSON.parse(JSON.stringify(state))
|
|
@@ -48173,51 +48414,10 @@ function useWysiwyg$1(_ref) {
|
|
|
48173
48414
|
return state;
|
|
48174
48415
|
}
|
|
48175
48416
|
|
|
48176
|
-
var LOG$1 = getLogger('Backoffice', 'ErrorBoundary');
|
|
48177
|
-
var ErrorBoundary = function ErrorBoundary(_ref) {
|
|
48178
|
-
var children = _ref.children,
|
|
48179
|
-
_ref$errorCode = _ref.errorCode,
|
|
48180
|
-
errorCode = _ref$errorCode === void 0 ? 'BACKO_0001' : _ref$errorCode,
|
|
48181
|
-
addToErrorLog = _ref.addToErrorLog;
|
|
48182
|
-
return /*#__PURE__*/jsx(ErrorBoundary$1, {
|
|
48183
|
-
FallbackComponent: FallbackComponent,
|
|
48184
|
-
onError: function onError(err) {
|
|
48185
|
-
LOG$1.error(new DivaError$1('Error in Backoffice', {
|
|
48186
|
-
cause: err,
|
|
48187
|
-
custom: {
|
|
48188
|
-
code: errorCode,
|
|
48189
|
-
addToErrorLog: addToErrorLog
|
|
48190
|
-
}
|
|
48191
|
-
}));
|
|
48192
|
-
},
|
|
48193
|
-
children: children
|
|
48194
|
-
});
|
|
48195
|
-
};
|
|
48196
|
-
var FallbackComponent = function FallbackComponent(_ref2) {
|
|
48197
|
-
_ref2.error;
|
|
48198
|
-
var resetErrorBoundary = _ref2.resetErrorBoundary;
|
|
48199
|
-
var root = null;
|
|
48200
|
-
try {
|
|
48201
|
-
root = useStore();
|
|
48202
|
-
} catch (_unused) {}
|
|
48203
|
-
useEffect(function () {
|
|
48204
|
-
var _root;
|
|
48205
|
-
(_root = root) === null || _root === void 0 || _root.setResetErrorBoundary(resetErrorBoundary);
|
|
48206
|
-
return function () {
|
|
48207
|
-
var _root2;
|
|
48208
|
-
(_root2 = root) === null || _root2 === void 0 || _root2.setResetErrorBoundary();
|
|
48209
|
-
};
|
|
48210
|
-
}, []);
|
|
48211
|
-
return /*#__PURE__*/jsx(Result$1, {
|
|
48212
|
-
status: "500",
|
|
48213
|
-
subTitle: "Es ist ein Fehler aufgetreten, versuchen Sie es sp\xE4ter nochmal oder kontaktieren Sie den Support."
|
|
48214
|
-
});
|
|
48215
|
-
};
|
|
48216
|
-
|
|
48217
48417
|
var wrapper$1 = "wrapper-NYRLn";
|
|
48218
48418
|
var select$1 = "select-K2SWc";
|
|
48219
|
-
var css_248z$
|
|
48220
|
-
styleInject(css_248z$
|
|
48419
|
+
var css_248z$1 = ".wrapper-NYRLn {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-K2SWc {\n z-index: 1000;\n flex: 1;\n}\n";
|
|
48420
|
+
styleInject(css_248z$1);
|
|
48221
48421
|
|
|
48222
48422
|
var CatalogSelection = function CatalogSelection(_ref) {
|
|
48223
48423
|
var _ref$state = _ref.state,
|
|
@@ -48285,8 +48485,8 @@ var CatalogSelection$1 = observer(CatalogSelection);
|
|
|
48285
48485
|
|
|
48286
48486
|
var wrapper = "wrapper-QpeRc";
|
|
48287
48487
|
var select = "select-irxxn";
|
|
48288
|
-
var css_248z
|
|
48289
|
-
styleInject(css_248z
|
|
48488
|
+
var css_248z = ".wrapper-QpeRc {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-irxxn {\n z-index: 1000;\n flex: 1;\n max-width: calc(100% - 48px);\n}\n";
|
|
48489
|
+
styleInject(css_248z);
|
|
48290
48490
|
|
|
48291
48491
|
var LanguageSelection = function LanguageSelection(_ref) {
|
|
48292
48492
|
var _ref$state = _ref.state,
|
|
@@ -48335,7 +48535,7 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
48335
48535
|
toolbar = _ref.toolbar;
|
|
48336
48536
|
var _useDivaCore = useDivaCore(),
|
|
48337
48537
|
organizationId = _useDivaCore.state.organization._id;
|
|
48338
|
-
var state = useWysiwyg
|
|
48538
|
+
var state = useWysiwyg({
|
|
48339
48539
|
tool: tool,
|
|
48340
48540
|
toolbar: toolbar
|
|
48341
48541
|
});
|
|
@@ -48399,110 +48599,6 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
48399
48599
|
});
|
|
48400
48600
|
};
|
|
48401
48601
|
|
|
48402
|
-
function useWysiwyg(_ref) {
|
|
48403
|
-
var tool = _ref.tool,
|
|
48404
|
-
toolbar = _ref.toolbar;
|
|
48405
|
-
tool.parameters;
|
|
48406
|
-
_objectDestructuringEmpty(useDivaCore());
|
|
48407
|
-
var root = useStore();
|
|
48408
|
-
var _useState = useState([]),
|
|
48409
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
48410
|
-
data = _useState2[0],
|
|
48411
|
-
setData = _useState2[1];
|
|
48412
|
-
useEffect(function () {
|
|
48413
|
-
var _tool$parameters$data, _tool$parameters, _root$resetErrorBound;
|
|
48414
|
-
var newData = _resoveLanguage(toJS((_tool$parameters$data = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 || (_tool$parameters = _tool$parameters.data) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.content) !== null && _tool$parameters$data !== void 0 ? _tool$parameters$data : []), toolbar.currentLanguage);
|
|
48415
|
-
setData(newData);
|
|
48416
|
-
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
|
48417
|
-
}, [tool.parameters, tool.parameters.data]);
|
|
48418
|
-
return {
|
|
48419
|
-
data: data
|
|
48420
|
-
};
|
|
48421
|
-
}
|
|
48422
|
-
var _resoveLanguage = function resoveLanguage(contents, lang) {
|
|
48423
|
-
for (var i = 0; i < contents.length; i++) {
|
|
48424
|
-
var c = contents[i];
|
|
48425
|
-
switch (c.type) {
|
|
48426
|
-
case 'Gallery':
|
|
48427
|
-
case 'Wrapper':
|
|
48428
|
-
c.content = _resoveLanguage(c.content, lang);
|
|
48429
|
-
break;
|
|
48430
|
-
case 'Image':
|
|
48431
|
-
if (c.altText) c.altText = getTranslation(c.altText, lang);
|
|
48432
|
-
case 'Video':
|
|
48433
|
-
c.url = getTranslation(c.url, lang);
|
|
48434
|
-
break;
|
|
48435
|
-
case 'RichText':
|
|
48436
|
-
case 'Title':
|
|
48437
|
-
c.text = getTranslation(c.text, lang);
|
|
48438
|
-
break;
|
|
48439
|
-
case 'URL':
|
|
48440
|
-
if (c.text) c.text = getTranslation(c.text, lang);
|
|
48441
|
-
c.url = getTranslation(c.url, lang);
|
|
48442
|
-
break;
|
|
48443
|
-
}
|
|
48444
|
-
}
|
|
48445
|
-
return contents;
|
|
48446
|
-
};
|
|
48447
|
-
var getTranslation = function getTranslation(text, lang) {
|
|
48448
|
-
if (_typeof(text) === 'object') {
|
|
48449
|
-
return text[lang] || text['de'] || text[Object.keys(text)[0]];
|
|
48450
|
-
} else {
|
|
48451
|
-
return text;
|
|
48452
|
-
}
|
|
48453
|
-
};
|
|
48454
|
-
|
|
48455
|
-
var container$1 = "container-Xbv0B";
|
|
48456
|
-
var css_248z$1 = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
|
48457
|
-
styleInject(css_248z$1);
|
|
48458
|
-
|
|
48459
|
-
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
48460
|
-
var tool = _ref.tool,
|
|
48461
|
-
toolbar = _ref.toolbar;
|
|
48462
|
-
var _useWysiwygContentIte = useWysiwyg({
|
|
48463
|
-
tool: tool,
|
|
48464
|
-
toolbar: toolbar
|
|
48465
|
-
}),
|
|
48466
|
-
data = _useWysiwygContentIte.data;
|
|
48467
|
-
return /*#__PURE__*/jsx(ErrorBoundary, {
|
|
48468
|
-
errorCode: "BACKO_0004",
|
|
48469
|
-
addToErrorLog: data,
|
|
48470
|
-
children: /*#__PURE__*/jsx("div", {
|
|
48471
|
-
className: container$1,
|
|
48472
|
-
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
|
48473
|
-
configuration: {
|
|
48474
|
-
content: data !== null && data !== void 0 ? data : []
|
|
48475
|
-
}
|
|
48476
|
-
})
|
|
48477
|
-
})
|
|
48478
|
-
});
|
|
48479
|
-
};
|
|
48480
|
-
|
|
48481
|
-
var container = "container-babS2";
|
|
48482
|
-
var css_248z = ".container-babS2 {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-babS2 {\n border-color: #424242;\n}\n";
|
|
48483
|
-
styleInject(css_248z);
|
|
48484
|
-
|
|
48485
|
-
var InformationWindow = function InformationWindow(_ref) {
|
|
48486
|
-
var _tool$parameters;
|
|
48487
|
-
var tool = _ref.tool;
|
|
48488
|
-
var root = useStore();
|
|
48489
|
-
var codex = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.contentItemCodex;
|
|
48490
|
-
useEffect(function () {
|
|
48491
|
-
var _root$resetErrorBound;
|
|
48492
|
-
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
|
48493
|
-
}, [tool.parameters]);
|
|
48494
|
-
return /*#__PURE__*/jsx(ErrorBoundary, {
|
|
48495
|
-
errorCode: "BACKO_0004",
|
|
48496
|
-
addToErrorLog: codex,
|
|
48497
|
-
children: /*#__PURE__*/jsx("div", {
|
|
48498
|
-
className: container,
|
|
48499
|
-
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
|
48500
|
-
contentItemCodex: codex
|
|
48501
|
-
})
|
|
48502
|
-
})
|
|
48503
|
-
});
|
|
48504
|
-
};
|
|
48505
|
-
|
|
48506
48602
|
function ownKeys$2(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; }
|
|
48507
48603
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48508
48604
|
var Toolbar = function Toolbar(_ref) {
|
|
@@ -48608,8 +48704,8 @@ function ToolElement(_ref2) {
|
|
|
48608
48704
|
loading = _ref2.loading;
|
|
48609
48705
|
var Tool = /*#__PURE__*/jsx(Fragment, {});
|
|
48610
48706
|
switch (tool.type) {
|
|
48611
|
-
case '
|
|
48612
|
-
Tool = /*#__PURE__*/jsx(
|
|
48707
|
+
case 'InformationWindow':
|
|
48708
|
+
Tool = /*#__PURE__*/jsx(InformationWindow, {
|
|
48613
48709
|
tool: tool,
|
|
48614
48710
|
toolbar: toolbar
|
|
48615
48711
|
});
|
|
@@ -48620,8 +48716,8 @@ function ToolElement(_ref2) {
|
|
|
48620
48716
|
toolbar: toolbar
|
|
48621
48717
|
});
|
|
48622
48718
|
break;
|
|
48623
|
-
case '
|
|
48624
|
-
Tool = /*#__PURE__*/jsx(
|
|
48719
|
+
case 'Configurator':
|
|
48720
|
+
Tool = /*#__PURE__*/jsx(Wsyiwyg, {
|
|
48625
48721
|
tool: tool,
|
|
48626
48722
|
toolbar: toolbar
|
|
48627
48723
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;IAWA,OAAO,CAAC,IAAI;IAVxB,OAAO,CAAC,MAAM,CAC8F;IAC5G,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,uBAAuB,CAA+C;IAC9E,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAgB,aAAa,EAAE,YAAY,CAAC;gBAExB,IAAI,EAAE,SAAS;IAcnC,QAAQ;IAmCR,IAAI,KAAK,6BAER;IAED,IAAI,YAAY,4BAEf;IAED,IAAI,YAAY,4BAEf;IAED,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAA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|
+
"version": "26.2.0-rc.2",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.2.0-rc.
|
|
19
|
-
"@crystaldesign/content-item": "26.2.0-rc.
|
|
20
|
-
"@crystaldesign/diva-core": "26.2.0-rc.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.2.0-rc.
|
|
22
|
-
"@crystaldesign/media-upload": "26.2.0-rc.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.2.0-rc.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.2.0-rc.
|
|
18
|
+
"@crystaldesign/content-box": "26.2.0-rc.2",
|
|
19
|
+
"@crystaldesign/content-item": "26.2.0-rc.2",
|
|
20
|
+
"@crystaldesign/diva-core": "26.2.0-rc.2",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.2.0-rc.2",
|
|
22
|
+
"@crystaldesign/media-upload": "26.2.0-rc.2",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.2.0-rc.2",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.2.0-rc.2",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "41a3d4d179117c6cb9df46ff4c4646c1e907dae6"
|
|
55
55
|
}
|