@crystaldesign/diva-core 25.7.0-beta.17 → 25.7.0-beta.19
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/{ModalsWrapper-b61f4f0b.js → ModalsWrapper-273adbe3.js} +1 -1
- package/build/esm/{index-7aff23b3.js → index-7a4a3b1f.js} +1 -1
- package/build/esm/{index-b16153c1.js → index-c3a9a397.js} +50 -168
- package/build/esm/index.js +1 -1
- package/build/types/core/src/store/RootStore.d.ts +0 -7
- package/build/types/core/src/store/RootStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +0 -2
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/types/core/src/store/mock/index.d.ts.map +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
- package/build/types/core/src/handler/ContentItemHandler/index.d.ts +0 -18
- package/build/types/core/src/handler/ContentItemHandler/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { i as styleInject, u as useDivaCoreContext } from './index-c3a9a397.js';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import Button from '@mui/material/Button';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDivaCoreContext, A as AuthButton, s as socialButton, g as google, m as microsoft, t as titlecontainer, e as error, a as getLogger, b as separator, I as Input, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-
|
|
1
|
+
import { u as useDivaCoreContext, A as AuthButton, s as socialButton, g as google, m as microsoft, t as titlecontainer, e as error, a as getLogger, b as separator, I as Input, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-c3a9a397.js';
|
|
2
2
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -46,7 +46,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
46
46
|
import * as Styles from '@mui/styles';
|
|
47
47
|
|
|
48
48
|
(function() {
|
|
49
|
-
const env = {"STAGE":"production","VERSION":"25.7.0-beta.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.7.0-beta.19"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -123,8 +123,8 @@ function baseUrl() {
|
|
|
123
123
|
return urlParts[urlParts.length - 2] + '.' + urlParts[urlParts.length - 1];
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
function ownKeys$
|
|
127
|
-
function _objectSpread$
|
|
126
|
+
function ownKeys$h(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; }
|
|
127
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
128
128
|
var _existingLogger = new Map();
|
|
129
129
|
var _apmInitialized = false;
|
|
130
130
|
var _onErrorEvent = function _onErrorEvent() {};
|
|
@@ -205,9 +205,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
205
205
|
this.transactions["delete"](eventId);
|
|
206
206
|
event.end = end;
|
|
207
207
|
var cleanLabels = this.cleanLabels(labels);
|
|
208
|
-
event.event.labels = _objectSpread$
|
|
208
|
+
event.event.labels = _objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels);
|
|
209
209
|
if (event.event.span) {
|
|
210
|
-
event.event.span.addLabels(_objectSpread$
|
|
210
|
+
event.event.span.addLabels(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
|
|
211
211
|
eventId: eventId
|
|
212
212
|
}));
|
|
213
213
|
event.event.span.end();
|
|
@@ -215,7 +215,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
215
215
|
clearTimeout(event.event.warningTimeout);
|
|
216
216
|
clearTimeout(event.event.errorTimeout);
|
|
217
217
|
this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") took ").concat(Math.floor(end - event.start), "ms"));
|
|
218
|
-
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$
|
|
218
|
+
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
|
|
219
219
|
eventId: eventId,
|
|
220
220
|
status: event.event.timeout ? 'TIMEOUT' : 'SUCCESS',
|
|
221
221
|
eventDuration: Math.floor(end - event.start),
|
|
@@ -250,9 +250,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
250
250
|
}
|
|
251
251
|
event.end = end;
|
|
252
252
|
var cleanLabels = this.cleanLabels(labels);
|
|
253
|
-
event.event.labels = _objectSpread$
|
|
253
|
+
event.event.labels = _objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels);
|
|
254
254
|
if (event.event.span) {
|
|
255
|
-
event.event.span.addLabels(_objectSpread$
|
|
255
|
+
event.event.span.addLabels(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
|
|
256
256
|
eventId: eventId
|
|
257
257
|
}));
|
|
258
258
|
event.event.span.end();
|
|
@@ -260,7 +260,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
260
260
|
clearTimeout(event.event.warningTimeout);
|
|
261
261
|
clearTimeout(event.event.errorTimeout);
|
|
262
262
|
this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") failed after ").concat(Math.floor(end - event.start), "ms"));
|
|
263
|
-
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$
|
|
263
|
+
DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
|
|
264
264
|
error: code,
|
|
265
265
|
errorMessage: message,
|
|
266
266
|
eventId: eventId,
|
|
@@ -359,7 +359,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
|
|
|
359
359
|
_onErrorEvent(_error.message, _error.name);
|
|
360
360
|
|
|
361
361
|
//for apm we spread the custom object directly on the error object, so that the are added to APM as custom attributes
|
|
362
|
-
var forApm = _objectSpread$
|
|
362
|
+
var forApm = _objectSpread$h(_objectSpread$h({}, _error), _error.custom);
|
|
363
363
|
(_getApmInstance = getApmInstance()) === null || _getApmInstance === void 0 || _getApmInstance.captureError(forApm);
|
|
364
364
|
}
|
|
365
365
|
}, {
|
|
@@ -433,8 +433,8 @@ if (typeof __webpack_public_path__ !== 'undefined') {
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
function ownKeys$
|
|
437
|
-
function _objectSpread$
|
|
436
|
+
function ownKeys$g(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; }
|
|
437
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
438
438
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
439
439
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
440
440
|
var LOG$e = getLogger('Framework', 'webcomponent');
|
|
@@ -658,14 +658,14 @@ var CoreWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
658
658
|
if (!components) {
|
|
659
659
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
660
660
|
}
|
|
661
|
-
return /*#__PURE__*/jsx(DivaCore, _objectSpread$
|
|
661
|
+
return /*#__PURE__*/jsx(DivaCore, _objectSpread$g(_objectSpread$g({}, props), {}, {
|
|
662
662
|
components: components,
|
|
663
663
|
ref: ref
|
|
664
664
|
}));
|
|
665
665
|
});
|
|
666
666
|
|
|
667
667
|
//we have to externalize the materialUI styling here, so that also in UMD the same instance is used
|
|
668
|
-
window.MaterialUIStyles = _objectSpread$
|
|
668
|
+
window.MaterialUIStyles = _objectSpread$g(_objectSpread$g({}, Styles), CoreStyles);
|
|
669
669
|
if (!window.customElements.get('diva-framework')) {
|
|
670
670
|
window.customElements.define('diva-framework', DivaFramework);
|
|
671
671
|
}
|
|
@@ -768,8 +768,8 @@ var defaultTheme = {
|
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
function ownKeys$
|
|
772
|
-
function _objectSpread$
|
|
771
|
+
function ownKeys$f(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; }
|
|
772
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
773
773
|
var LOG$d = getLogger('Framework', 'ConfigurationStore');
|
|
774
774
|
var ConfigurationStore = /*#__PURE__*/function () {
|
|
775
775
|
function ConfigurationStore(root, identifier, defaultApiConfig, domain) {
|
|
@@ -940,7 +940,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
940
940
|
key: "authentication",
|
|
941
941
|
get: function get() {
|
|
942
942
|
var _this$_configuration$, _this$_configuration37, _this$_configuration38, _this$_configuration39, _this$_configuration40, _this$_configuration41, _this$_configuration42, _this$_configuration43, _this$_configuration44, _this$_configuration45, _this$_configuration$2, _this$_configuration46;
|
|
943
|
-
return _objectSpread$
|
|
943
|
+
return _objectSpread$f(_objectSpread$f({}, (_this$_configuration$ = (_this$_configuration37 = this._configuration) === null || _this$_configuration37 === void 0 ? void 0 : _this$_configuration37.authentication) !== null && _this$_configuration$ !== void 0 ? _this$_configuration$ : {}), {}, {
|
|
944
944
|
loginMethods: {
|
|
945
945
|
google: (_this$_configuration38 = this._configuration) !== null && _this$_configuration38 !== void 0 && (_this$_configuration38 = _this$_configuration38.authentication) !== null && _this$_configuration38 !== void 0 && _this$_configuration38.loginMethods ? (_this$_configuration39 = this._configuration) === null || _this$_configuration39 === void 0 || (_this$_configuration39 = _this$_configuration39.authentication) === null || _this$_configuration39 === void 0 ? void 0 : _this$_configuration39.loginMethods.google : true,
|
|
946
946
|
microsoft: (_this$_configuration40 = this._configuration) !== null && _this$_configuration40 !== void 0 && (_this$_configuration40 = _this$_configuration40.authentication) !== null && _this$_configuration40 !== void 0 && _this$_configuration40.loginMethods ? (_this$_configuration41 = this._configuration) === null || _this$_configuration41 === void 0 || (_this$_configuration41 = _this$_configuration41.authentication) === null || _this$_configuration41 === void 0 ? void 0 : _this$_configuration41.loginMethods.microsoft : true,
|
|
@@ -1010,12 +1010,12 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1010
1010
|
var _this$_configuration55;
|
|
1011
1011
|
if ((_this$_configuration55 = this._configuration) !== null && _this$_configuration55 !== void 0 && _this$_configuration55.priceFormat) {
|
|
1012
1012
|
var _this$_configuration56, _this$root$dataStore$2, _this$root$dataStore$3, _this$_configuration57;
|
|
1013
|
-
return _objectSpread$
|
|
1013
|
+
return _objectSpread$f(_objectSpread$f({}, (_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat), {}, {
|
|
1014
1014
|
currency: (_this$root$dataStore$2 = (_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.settings.defaultCurrency) !== null && _this$root$dataStore$2 !== void 0 ? _this$root$dataStore$2 : (_this$_configuration57 = this._configuration) === null || _this$_configuration57 === void 0 ? void 0 : _this$_configuration57.priceFormat.currency
|
|
1015
1015
|
});
|
|
1016
1016
|
} else {
|
|
1017
1017
|
var _this$root$dataStore$4, _this$root$dataStore$5;
|
|
1018
|
-
return _objectSpread$
|
|
1018
|
+
return _objectSpread$f(_objectSpread$f({}, DivaUtils.defaultPriceFormat), {}, {
|
|
1019
1019
|
currency: (_this$root$dataStore$4 = (_this$root$dataStore$5 = this.root.dataStore.organization) === null || _this$root$dataStore$5 === void 0 ? void 0 : _this$root$dataStore$5.settings.defaultCurrency) !== null && _this$root$dataStore$4 !== void 0 ? _this$root$dataStore$4 : DivaUtils.defaultPriceFormat.currency
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
@@ -1226,8 +1226,8 @@ function isIpadOS() {
|
|
|
1226
1226
|
return navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform);
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
function ownKeys$
|
|
1230
|
-
function _objectSpread$
|
|
1229
|
+
function ownKeys$e(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; }
|
|
1230
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1231
1231
|
var LOG$c = getLogger('Framework', 'DataStore');
|
|
1232
1232
|
var DataStore = /*#__PURE__*/function () {
|
|
1233
1233
|
function DataStore(root) {
|
|
@@ -1265,8 +1265,8 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1265
1265
|
key: "organization",
|
|
1266
1266
|
get: function get() {
|
|
1267
1267
|
var _settings$defaultCurr, _settings;
|
|
1268
|
-
return this._organization ? _objectSpread$
|
|
1269
|
-
settings: _objectSpread$
|
|
1268
|
+
return this._organization ? _objectSpread$e(_objectSpread$e({}, this._organization), {}, {
|
|
1269
|
+
settings: _objectSpread$e(_objectSpread$e({}, this._organization.settings), {}, {
|
|
1270
1270
|
defaultCurrency: (_settings$defaultCurr = (_settings = this._organization.settings) === null || _settings === void 0 ? void 0 : _settings.defaultCurrency) !== null && _settings$defaultCurr !== void 0 ? _settings$defaultCurr : '€'
|
|
1271
1271
|
})
|
|
1272
1272
|
}) : this._organization;
|
|
@@ -1307,7 +1307,7 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
1307
1307
|
return [].concat(_toConsumableArray(((_this$_organization$p = (_this$_organization$p2 = this._organization.parentOrganizations) === null || _this$_organization$p2 === void 0 ? void 0 : _this$_organization$p2.filter(function (org) {
|
|
1308
1308
|
return _this._parentOrganizations.includes(org._id);
|
|
1309
1309
|
})) !== null && _this$_organization$p !== void 0 ? _this$_organization$p : []).map(function (org) {
|
|
1310
|
-
return _objectSpread$
|
|
1310
|
+
return _objectSpread$e(_objectSpread$e({}, org), {}, {
|
|
1311
1311
|
type: org.type != 'SUPPLIER' ? org.parentType : undefined //supplier should not be accessed directly, only its children, so the simpliest solution is to remove here the type
|
|
1312
1312
|
});
|
|
1313
1313
|
}).reverse()), [{
|
|
@@ -1750,8 +1750,8 @@ var css_248z$6 = ".titlecontainer-LeRMj {\n text-align: center;\n color: #4747
|
|
|
1750
1750
|
styleInject(css_248z$6);
|
|
1751
1751
|
|
|
1752
1752
|
var _excluded$7 = ["className", "disabled", "children", "onClick", "style"];
|
|
1753
|
-
function ownKeys$
|
|
1754
|
-
function _objectSpread$
|
|
1753
|
+
function ownKeys$d(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; }
|
|
1754
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1755
1755
|
function AuthButton(_ref) {
|
|
1756
1756
|
var className = _ref.className,
|
|
1757
1757
|
disabled = _ref.disabled,
|
|
@@ -1759,7 +1759,7 @@ function AuthButton(_ref) {
|
|
|
1759
1759
|
onClick = _ref.onClick,
|
|
1760
1760
|
style = _ref.style,
|
|
1761
1761
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1762
|
-
return /*#__PURE__*/jsx(Button, _objectSpread$
|
|
1762
|
+
return /*#__PURE__*/jsx(Button, _objectSpread$d(_objectSpread$d({
|
|
1763
1763
|
id: "submit",
|
|
1764
1764
|
variant: "contained",
|
|
1765
1765
|
disabled: disabled,
|
|
@@ -1772,8 +1772,8 @@ function AuthButton(_ref) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
1774
|
var _excluded$6 = ["className", "readOnly", "resetInput"];
|
|
1775
|
-
function ownKeys$
|
|
1776
|
-
function _objectSpread$
|
|
1775
|
+
function ownKeys$c(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; }
|
|
1776
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1777
1777
|
var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1778
1778
|
var className = _ref.className,
|
|
1779
1779
|
readOnly = _ref.readOnly,
|
|
@@ -1783,7 +1783,7 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1783
1783
|
style: {
|
|
1784
1784
|
position: 'relative'
|
|
1785
1785
|
},
|
|
1786
|
-
children: [/*#__PURE__*/jsx("input", _objectSpread$
|
|
1786
|
+
children: [/*#__PURE__*/jsx("input", _objectSpread$c({
|
|
1787
1787
|
ref: ref,
|
|
1788
1788
|
className: classnames(input, readOnly ? readonly : undefined, className),
|
|
1789
1789
|
readOnly: readOnly,
|
|
@@ -1975,8 +1975,8 @@ function Fallback () {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
|
|
1977
1977
|
var _excluded$5 = ["children"];
|
|
1978
|
-
function ownKeys$
|
|
1979
|
-
function _objectSpread$
|
|
1978
|
+
function ownKeys$b(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; }
|
|
1979
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1980
1980
|
var LOG$a = getLogger('Framework', 'root');
|
|
1981
1981
|
var DivaCore = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1982
1982
|
var children = _ref.children,
|
|
@@ -1984,7 +1984,7 @@ var DivaCore = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1984
1984
|
useEffect(function () {
|
|
1985
1985
|
LOG$a.successTransaction('UNTIL_RENDER');
|
|
1986
1986
|
}, []);
|
|
1987
|
-
return /*#__PURE__*/jsx(DivaCoreProvider, _objectSpread$
|
|
1987
|
+
return /*#__PURE__*/jsx(DivaCoreProvider, _objectSpread$b(_objectSpread$b({}, props), {}, {
|
|
1988
1988
|
ref: ref,
|
|
1989
1989
|
children: /*#__PURE__*/jsx(ContentWrapper, {
|
|
1990
1990
|
children: /*#__PURE__*/jsx(Fragment, {
|
|
@@ -2113,8 +2113,8 @@ var _excluded$4 = ["openFrom"],
|
|
|
2113
2113
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2114
2114
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
2115
2115
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2116
|
-
function ownKeys$
|
|
2117
|
-
function _objectSpread$
|
|
2116
|
+
function ownKeys$a(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; }
|
|
2117
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2118
2118
|
var LOG$9 = getLogger('Framework', 'ContentStore');
|
|
2119
2119
|
var ContentStore = /*#__PURE__*/function () {
|
|
2120
2120
|
function ContentStore(components, root) {
|
|
@@ -2451,8 +2451,8 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2451
2451
|
currentState = this.state.get(config.type);
|
|
2452
2452
|
componentState = {};
|
|
2453
2453
|
componentState.settings = toJS(settings);
|
|
2454
|
-
componentState.parameters = _objectSpread$
|
|
2455
|
-
componentState.internal = _objectSpread$
|
|
2454
|
+
componentState.parameters = _objectSpread$a(_objectSpread$a({}, keepOldState && currentState ? currentState.parameters : {}), parameters);
|
|
2455
|
+
componentState.internal = _objectSpread$a(_objectSpread$a({}, keepOldState && currentState ? currentState.internal : {}), internal);
|
|
2456
2456
|
componentState.path = route;
|
|
2457
2457
|
this.state.set(config.type, componentState);
|
|
2458
2458
|
this.visible = config.type;
|
|
@@ -3063,7 +3063,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3063
3063
|
onClose = _ref3$onClose === void 0 ? this.closeSideMenu.bind(this) : _ref3$onClose,
|
|
3064
3064
|
sideMenu = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
3065
3065
|
if (sideMenu.open === undefined) sideMenu.open = (_this$_sideMenu$open = (_this$_sideMenu = this._sideMenu) === null || _this$_sideMenu === void 0 ? void 0 : _this$_sideMenu.open) !== null && _this$_sideMenu$open !== void 0 ? _this$_sideMenu$open : false;
|
|
3066
|
-
this._sideMenu = _objectSpread$
|
|
3066
|
+
this._sideMenu = _objectSpread$a(_objectSpread$a({}, sideMenu), {}, {
|
|
3067
3067
|
onClose: onClose
|
|
3068
3068
|
});
|
|
3069
3069
|
}
|
|
@@ -3074,7 +3074,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3074
3074
|
}, {
|
|
3075
3075
|
key: "closeSideMenu",
|
|
3076
3076
|
value: function closeSideMenu() {
|
|
3077
|
-
if (this._sideMenu) this._sideMenu = _objectSpread$
|
|
3077
|
+
if (this._sideMenu) this._sideMenu = _objectSpread$a(_objectSpread$a({}, this._sideMenu), {}, {
|
|
3078
3078
|
open: false
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
@@ -3131,7 +3131,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3131
3131
|
type: barrier.type,
|
|
3132
3132
|
currentEmail: (_this$root$dataStore$7 = this.root.dataStore.user) === null || _this$root$dataStore$7 === void 0 ? void 0 : _this$root$dataStore$7.mainEmail,
|
|
3133
3133
|
actions: (_barrier$actions = barrier.actions) === null || _barrier$actions === void 0 ? void 0 : _barrier$actions.map(function (a) {
|
|
3134
|
-
return _objectSpread$
|
|
3134
|
+
return _objectSpread$a(_objectSpread$a({}, a), {}, {
|
|
3135
3135
|
onClick: function () {
|
|
3136
3136
|
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(email) {
|
|
3137
3137
|
var _this8$root$dataStore;
|
|
@@ -3282,7 +3282,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3282
3282
|
key: "getState",
|
|
3283
3283
|
value: function getState(type) {
|
|
3284
3284
|
var state = this.state.get(type);
|
|
3285
|
-
return state ? _objectSpread$
|
|
3285
|
+
return state ? _objectSpread$a(_objectSpread$a({}, state), {}, {
|
|
3286
3286
|
isVisible: this.isVisible(type)
|
|
3287
3287
|
}) : {
|
|
3288
3288
|
settings: {}
|
|
@@ -4318,8 +4318,8 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
4318
4318
|
}]);
|
|
4319
4319
|
}();
|
|
4320
4320
|
|
|
4321
|
-
function ownKeys$
|
|
4322
|
-
function _objectSpread$
|
|
4321
|
+
function ownKeys$9(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; }
|
|
4322
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4323
4323
|
var LOG$6 = getLogger('Framework', 'AuthorizationStore');
|
|
4324
4324
|
var AuthorizationStore = /*#__PURE__*/function () {
|
|
4325
4325
|
function AuthorizationStore(root) {
|
|
@@ -4377,7 +4377,7 @@ var AuthorizationStore = /*#__PURE__*/function () {
|
|
|
4377
4377
|
if (debug) {
|
|
4378
4378
|
this._state = {
|
|
4379
4379
|
type: 'LOGIN',
|
|
4380
|
-
loginMethods: _objectSpread$
|
|
4380
|
+
loginMethods: _objectSpread$9(_objectSpread$9({}, loginMethods), {}, {
|
|
4381
4381
|
standard: true
|
|
4382
4382
|
}),
|
|
4383
4383
|
organizationId: organizationId
|
|
@@ -7079,8 +7079,8 @@ var RequestStatus = /*#__PURE__*/function (RequestStatus) {
|
|
|
7079
7079
|
return RequestStatus;
|
|
7080
7080
|
}({});
|
|
7081
7081
|
|
|
7082
|
-
function ownKeys$
|
|
7083
|
-
function _objectSpread$
|
|
7082
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7083
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7084
7084
|
var SupportHandler = /*#__PURE__*/function () {
|
|
7085
7085
|
function SupportHandler(root) {
|
|
7086
7086
|
_classCallCheck(this, SupportHandler);
|
|
@@ -7163,7 +7163,7 @@ var SupportHandler = /*#__PURE__*/function () {
|
|
|
7163
7163
|
Authorization: 'Bearer ' + this.jwt,
|
|
7164
7164
|
'Content-Type': 'application/json'
|
|
7165
7165
|
},
|
|
7166
|
-
body: JSON.stringify(_objectSpread$
|
|
7166
|
+
body: JSON.stringify(_objectSpread$8({
|
|
7167
7167
|
divaNr: divaNr
|
|
7168
7168
|
}, participantEmail && {
|
|
7169
7169
|
participantEmail: participantEmail
|
|
@@ -8338,106 +8338,6 @@ var ClientArticleHandler = /*#__PURE__*/function () {
|
|
|
8338
8338
|
}]);
|
|
8339
8339
|
}();
|
|
8340
8340
|
|
|
8341
|
-
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8342
|
-
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8343
|
-
getLogger('Framework', 'ConetentItemHandler');
|
|
8344
|
-
var ContentItemHandler = /*#__PURE__*/function () {
|
|
8345
|
-
function ContentItemHandler(root) {
|
|
8346
|
-
_classCallCheck(this, ContentItemHandler);
|
|
8347
|
-
this.root = root;
|
|
8348
|
-
}
|
|
8349
|
-
return _createClass(ContentItemHandler, [{
|
|
8350
|
-
key: "catalogService",
|
|
8351
|
-
get: function get() {
|
|
8352
|
-
return this.root.apiConfig.catalogService;
|
|
8353
|
-
}
|
|
8354
|
-
}, {
|
|
8355
|
-
key: "mediaService",
|
|
8356
|
-
get: function get() {
|
|
8357
|
-
return this.root.apiConfig.mediaService;
|
|
8358
|
-
}
|
|
8359
|
-
}, {
|
|
8360
|
-
key: "organization",
|
|
8361
|
-
get: function get() {
|
|
8362
|
-
return this.root.organization;
|
|
8363
|
-
}
|
|
8364
|
-
}, {
|
|
8365
|
-
key: "user",
|
|
8366
|
-
get: function get() {
|
|
8367
|
-
return this.root.user;
|
|
8368
|
-
}
|
|
8369
|
-
}, {
|
|
8370
|
-
key: "langs",
|
|
8371
|
-
get: function get() {
|
|
8372
|
-
return this.root.languages;
|
|
8373
|
-
}
|
|
8374
|
-
}, {
|
|
8375
|
-
key: "jwt",
|
|
8376
|
-
get: function get() {
|
|
8377
|
-
return this.root.jwt;
|
|
8378
|
-
}
|
|
8379
|
-
}, {
|
|
8380
|
-
key: "getContentItem",
|
|
8381
|
-
value: function () {
|
|
8382
|
-
var _getContentItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(id, lang) {
|
|
8383
|
-
var _res;
|
|
8384
|
-
var fullUrl, res, resData;
|
|
8385
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8386
|
-
while (1) switch (_context.prev = _context.next) {
|
|
8387
|
-
case 0:
|
|
8388
|
-
fullUrl = this.catalogService + '/contentItems/' + id + '?language=' + lang;
|
|
8389
|
-
_context.prev = 1;
|
|
8390
|
-
_context.next = 4;
|
|
8391
|
-
return axios.get(fullUrl, {
|
|
8392
|
-
headers: _objectSpread$8({}, this.getHeaders())
|
|
8393
|
-
});
|
|
8394
|
-
case 4:
|
|
8395
|
-
res = _context.sent;
|
|
8396
|
-
_context.next = 7;
|
|
8397
|
-
return res.data;
|
|
8398
|
-
case 7:
|
|
8399
|
-
resData = _context.sent;
|
|
8400
|
-
_context.next = 13;
|
|
8401
|
-
break;
|
|
8402
|
-
case 10:
|
|
8403
|
-
_context.prev = 10;
|
|
8404
|
-
_context.t0 = _context["catch"](1);
|
|
8405
|
-
throw new DivaError('Could not get content item', {
|
|
8406
|
-
cause: _context.t0
|
|
8407
|
-
});
|
|
8408
|
-
case 13:
|
|
8409
|
-
if (!(((_res = res) === null || _res === void 0 ? void 0 : _res.status) == 200)) {
|
|
8410
|
-
_context.next = 15;
|
|
8411
|
-
break;
|
|
8412
|
-
}
|
|
8413
|
-
return _context.abrupt("return", resData);
|
|
8414
|
-
case 15:
|
|
8415
|
-
throw new Error(resData.error);
|
|
8416
|
-
case 16:
|
|
8417
|
-
case "end":
|
|
8418
|
-
return _context.stop();
|
|
8419
|
-
}
|
|
8420
|
-
}, _callee, this, [[1, 10]]);
|
|
8421
|
-
}));
|
|
8422
|
-
function getContentItem(_x, _x2) {
|
|
8423
|
-
return _getContentItem.apply(this, arguments);
|
|
8424
|
-
}
|
|
8425
|
-
return getContentItem;
|
|
8426
|
-
}()
|
|
8427
|
-
}, {
|
|
8428
|
-
key: "getHeaders",
|
|
8429
|
-
value: function getHeaders() {
|
|
8430
|
-
var headers = undefined;
|
|
8431
|
-
if (this.jwt) headers = {
|
|
8432
|
-
Authorization: 'Bearer ' + this.jwt
|
|
8433
|
-
};
|
|
8434
|
-
if (!headers) {
|
|
8435
|
-
throw new Error('jwt and apiKey not set');
|
|
8436
|
-
} else return headers;
|
|
8437
|
-
}
|
|
8438
|
-
}]);
|
|
8439
|
-
}();
|
|
8440
|
-
|
|
8441
8341
|
function ownKeys$7(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; }
|
|
8442
8342
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8443
8343
|
var LOGINMODE_LOCALSTORAGE_KEY = 'diva-login-mode';
|
|
@@ -8475,7 +8375,6 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8475
8375
|
_defineProperty(this, "_productHandler", void 0);
|
|
8476
8376
|
_defineProperty(this, "_reportHandler", void 0);
|
|
8477
8377
|
_defineProperty(this, "_organizationHandler", void 0);
|
|
8478
|
-
_defineProperty(this, "_contentItemHandler", void 0);
|
|
8479
8378
|
_defineProperty(this, "_mediaHandler", void 0);
|
|
8480
8379
|
_defineProperty(this, "_adminHandler", void 0);
|
|
8481
8380
|
_defineProperty(this, "_analyticsHandler", void 0);
|
|
@@ -8506,7 +8405,6 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8506
8405
|
this._productHandler = new ProductHandler(this, this.contentStore.openModal.bind(this.contentStore), this.contentStore.closeModal.bind(this.contentStore));
|
|
8507
8406
|
this._reportHandler = new ReportHandler(this);
|
|
8508
8407
|
this._organizationHandler = new OrganizationHandler(this);
|
|
8509
|
-
this._contentItemHandler = new ContentItemHandler(this);
|
|
8510
8408
|
this._mediaHandler = new MediaHandler(this);
|
|
8511
8409
|
this._adminHandler = new AdminHandler(this);
|
|
8512
8410
|
this._analyticsHandler = new AnalyticsHandler(this);
|
|
@@ -8698,14 +8596,6 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8698
8596
|
get: function get() {
|
|
8699
8597
|
return this._productHandler;
|
|
8700
8598
|
}
|
|
8701
|
-
/**
|
|
8702
|
-
* get the contentItem instance with the current configuration
|
|
8703
|
-
*/
|
|
8704
|
-
}, {
|
|
8705
|
-
key: "contentItemHandler",
|
|
8706
|
-
get: function get() {
|
|
8707
|
-
return this._contentItemHandler;
|
|
8708
|
-
}
|
|
8709
8599
|
|
|
8710
8600
|
/**
|
|
8711
8601
|
* get the organizationHandler instance with the current configuration
|
|
@@ -9284,7 +9174,6 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9284
9174
|
}),
|
|
9285
9175
|
handler: {
|
|
9286
9176
|
productHandler: store.productHandler,
|
|
9287
|
-
contentItemHandler: store.contentItemHandler,
|
|
9288
9177
|
organizationHandler: store.organizationHandler,
|
|
9289
9178
|
mediaHandler: store.mediaHandler,
|
|
9290
9179
|
adminHandler: store.adminHandler,
|
|
@@ -9384,7 +9273,6 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9384
9273
|
}),
|
|
9385
9274
|
handler: {
|
|
9386
9275
|
productHandler: store.productHandler,
|
|
9387
|
-
contentItemHandler: store.contentItemHandler,
|
|
9388
9276
|
organizationHandler: store.organizationHandler,
|
|
9389
9277
|
mediaHandler: store.mediaHandler,
|
|
9390
9278
|
adminHandler: store.adminHandler,
|
|
@@ -9728,7 +9616,7 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9728
9616
|
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; }
|
|
9729
9617
|
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; }
|
|
9730
9618
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9731
|
-
return import('./ModalsWrapper-
|
|
9619
|
+
return import('./ModalsWrapper-273adbe3.js');
|
|
9732
9620
|
});
|
|
9733
9621
|
function Fullscreen(_ref) {
|
|
9734
9622
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10186,10 +10074,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10186
10074
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10187
10075
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10188
10076
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10189
|
-
return import('./index-
|
|
10077
|
+
return import('./index-7a4a3b1f.js');
|
|
10190
10078
|
});
|
|
10191
10079
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10192
|
-
return import('./ModalsWrapper-
|
|
10080
|
+
return import('./ModalsWrapper-273adbe3.js');
|
|
10193
10081
|
});
|
|
10194
10082
|
function ContentComponent() {
|
|
10195
10083
|
var context = useDivaCoreContext();
|
|
@@ -10732,11 +10620,6 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10732
10620
|
get: function get() {
|
|
10733
10621
|
return this.handlers.productHandler;
|
|
10734
10622
|
}
|
|
10735
|
-
}, {
|
|
10736
|
-
key: "contentItemHandler",
|
|
10737
|
-
get: function get() {
|
|
10738
|
-
return this.handlers.contentItemHandler;
|
|
10739
|
-
}
|
|
10740
10623
|
}, {
|
|
10741
10624
|
key: "organizationHandler",
|
|
10742
10625
|
get: function get() {
|
|
@@ -11157,7 +11040,6 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11157
11040
|
function mockCoreHandlers(root) {
|
|
11158
11041
|
return {
|
|
11159
11042
|
productHandler: new ProductHandler(root),
|
|
11160
|
-
contentItemHandler: new ContentItemHandler(root),
|
|
11161
11043
|
organizationHandler: new OrganizationHandler(root),
|
|
11162
11044
|
mediaHandler: new MediaHandler(root),
|
|
11163
11045
|
adminHandler: new AdminHandler(root),
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { n as AnalyticsHandler, k as AuthorizationHandler, p as ClientArticleHandler, C as Content, q as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, o as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, r as storyBookCoreMock, j as useDivaCore } from './index-
|
|
1
|
+
export { n as AnalyticsHandler, k as AuthorizationHandler, p as ClientArticleHandler, C as Content, q as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, o as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, r as storyBookCoreMock, j as useDivaCore } from './index-c3a9a397.js';
|
|
2
2
|
export { DivaError, default as DivaUtils } from '@crystaldesign/diva-utils';
|
|
3
3
|
export { Trans, useTranslation } from 'react-i18next';
|
|
4
4
|
export * from '@crystaldesign/basket-model';
|
|
@@ -16,7 +16,6 @@ import { ReportHandler } from '../handler/ReportHandler';
|
|
|
16
16
|
import { SupportHandler } from '../handler/SupportHandler';
|
|
17
17
|
import { AuthorizationHandler } from '../handler/AuthorizationHandler';
|
|
18
18
|
import { ClientArticleHandler } from '../handler/ClientArticleHandler';
|
|
19
|
-
import { ContentItemHandler } from '../handler/ContentItemHandler';
|
|
20
19
|
export interface IRootStore {
|
|
21
20
|
changeLanguage(lang: string): void;
|
|
22
21
|
changeLoginMode(loginMode: LoginMode): void;
|
|
@@ -31,7 +30,6 @@ export interface IRootStore {
|
|
|
31
30
|
readonly initializing: boolean;
|
|
32
31
|
readonly apiHandler: ApiHandler;
|
|
33
32
|
readonly productHandler: ProductHandler;
|
|
34
|
-
readonly contentItemHandler: ContentItemHandler;
|
|
35
33
|
readonly organizationHandler: OrganizationHandler;
|
|
36
34
|
readonly mediaHandler: MediaHandler;
|
|
37
35
|
readonly adminHandler: AdminHandler;
|
|
@@ -67,7 +65,6 @@ export default class RootStore implements IRootStore {
|
|
|
67
65
|
private _productHandler;
|
|
68
66
|
private _reportHandler;
|
|
69
67
|
private _organizationHandler;
|
|
70
|
-
private _contentItemHandler;
|
|
71
68
|
private _mediaHandler;
|
|
72
69
|
private _adminHandler;
|
|
73
70
|
private _analyticsHandler;
|
|
@@ -133,10 +130,6 @@ export default class RootStore implements IRootStore {
|
|
|
133
130
|
* get the productHander instance with the current configuration
|
|
134
131
|
*/
|
|
135
132
|
get productHandler(): ProductHandler;
|
|
136
|
-
/**
|
|
137
|
-
* get the contentItem instance with the current configuration
|
|
138
|
-
*/
|
|
139
|
-
get contentItemHandler(): ContentItemHandler;
|
|
140
133
|
/**
|
|
141
134
|
* get the organizationHandler instance with the current configuration
|
|
142
135
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnC,OAAO,UAAU,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAiB,KAAK,EAAE,gBAAg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AED;;OAEG;IACH,IAAI,mBAAmB,wBAEtB;IAED;;OAEG;IACH,IAAI,YAAY,iBAEf;IAED,IAAI,YAAY,iBAEf;IAED,IAAI,aAAa,kBAEhB;IAED,IAAI,cAAc,mBAEjB;IAED,IAAI,gBAAgB,qBAEnB;IAED,IAAI,oBAAoB,yBAEvB;IAED,IAAI,oBAAoB,yBAEvB;IAED,IAAI,oBAAoB,YAEvB;IAED,IAAI,SAAS,cAEZ;IAED,IAAI,GAAG,uBAEN;IAED,IAAI,YAAY,uBAEf;IAED,IAAI,IAAI,yBAEP;IAED,IAAI,YAAY,qBAEf;IAED,IAAI,wBAAwB,uBAE3B;IAED,IAAI,kBAAkB,yBAErB;IAED,IAAI,qBAAqB,yBAExB;IAED;;;;;;;;;OASG;YACW,UAAU;IAuVjB,aAAa;IAapB,IAAW,eAAe,IAAI,SAAS,GAAG,SAAS,CAKlD;CACF"}
|
|
@@ -11,7 +11,6 @@ import RootStore from './RootStore';
|
|
|
11
11
|
import { AdminHandler } from '../handler/AdminHandler';
|
|
12
12
|
import { AnalyticsHandler } from '../handler/AnalyticsHandler';
|
|
13
13
|
import { SupportHandler } from '../handler/SupportHandler';
|
|
14
|
-
import { ContentItemHandler } from '../handler/ContentItemHandler';
|
|
15
14
|
export interface DivaCoreState {
|
|
16
15
|
/**
|
|
17
16
|
* Contains the current state
|
|
@@ -302,7 +301,6 @@ export interface Actions {
|
|
|
302
301
|
}
|
|
303
302
|
export interface CoreHandlers {
|
|
304
303
|
productHandler: ProductHandler;
|
|
305
|
-
contentItemHandler: ContentItemHandler;
|
|
306
304
|
organizationHandler: OrganizationHandler;
|
|
307
305
|
mediaHandler: MediaHandler;
|
|
308
306
|
adminHandler: AdminHandler;
|