@crystaldesign/diva-core 25.13.0-rc.2 → 25.13.0-rc.4
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-16a1124e.js → ModalsWrapper-edeba091.js} +1 -1
- package/build/esm/{index-c958978a.js → index-86ad40ce.js} +11 -14
- package/build/esm/{index-a3e5d05a.js → index-d2a5fe02.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext } from './index-86ad40ce.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';
|
|
@@ -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.13.0-rc.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.13.0-rc.4"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -1054,9 +1054,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1054
1054
|
}, {
|
|
1055
1055
|
key: "priceFormat",
|
|
1056
1056
|
get: function get() {
|
|
1057
|
-
var _this$root$dataStore$3,
|
|
1058
|
-
_this$_configuration55,
|
|
1059
|
-
_this = this;
|
|
1057
|
+
var _this$root$dataStore$3, _this$_configuration55;
|
|
1060
1058
|
var fallbackPriceFormat = {
|
|
1061
1059
|
currency: '€',
|
|
1062
1060
|
spacing: true,
|
|
@@ -1066,26 +1064,25 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1066
1064
|
decimalSeparator: ',',
|
|
1067
1065
|
decimalsDigits: 2
|
|
1068
1066
|
};
|
|
1069
|
-
(_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 || (_this$root$dataStore$3 = _this$root$dataStore$3.settings) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.defaultCurrency;
|
|
1067
|
+
var currency = (_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 || (_this$root$dataStore$3 = _this$root$dataStore$3.settings) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.defaultCurrency;
|
|
1070
1068
|
if ((_this$_configuration55 = this._configuration) !== null && _this$_configuration55 !== void 0 && _this$_configuration55.priceFormat) {
|
|
1071
1069
|
var _this$_configuration56;
|
|
1072
1070
|
if (Array.isArray((_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat)) {
|
|
1073
1071
|
var _this$_configuration$6, _this$_configuration57;
|
|
1074
1072
|
return (_this$_configuration$6 = (_this$_configuration57 = this._configuration) === null || _this$_configuration57 === void 0 ? void 0 : _this$_configuration57.priceFormat.find(function (pf) {
|
|
1075
|
-
|
|
1076
|
-
return pf.currency === ((_this$root$dataStore$4 = _this.root.dataStore.organization) === null || _this$root$dataStore$4 === void 0 ? void 0 : _this$root$dataStore$4.settings.defaultCurrency);
|
|
1073
|
+
return pf.currency === currency;
|
|
1077
1074
|
})) !== null && _this$_configuration$6 !== void 0 ? _this$_configuration$6 : _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
|
|
1078
|
-
currency:
|
|
1075
|
+
currency: currency
|
|
1079
1076
|
});
|
|
1080
1077
|
} else {
|
|
1081
|
-
var _this$_configuration58, _this$
|
|
1078
|
+
var _this$_configuration58, _this$_configuration59;
|
|
1082
1079
|
return _objectSpread$d(_objectSpread$d({}, (_this$_configuration58 = this._configuration) === null || _this$_configuration58 === void 0 ? void 0 : _this$_configuration58.priceFormat), {}, {
|
|
1083
|
-
currency:
|
|
1080
|
+
currency: currency !== null && currency !== void 0 ? currency : (_this$_configuration59 = this._configuration) === null || _this$_configuration59 === void 0 ? void 0 : _this$_configuration59.priceFormat.currency
|
|
1084
1081
|
});
|
|
1085
1082
|
}
|
|
1086
1083
|
} else {
|
|
1087
1084
|
return _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
|
|
1088
|
-
currency:
|
|
1085
|
+
currency: currency
|
|
1089
1086
|
});
|
|
1090
1087
|
}
|
|
1091
1088
|
}
|
|
@@ -9659,7 +9656,7 @@ var DrawerMenu = observer(MobileDrawer);
|
|
|
9659
9656
|
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; }
|
|
9660
9657
|
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; }
|
|
9661
9658
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9662
|
-
return import('./ModalsWrapper-
|
|
9659
|
+
return import('./ModalsWrapper-edeba091.js');
|
|
9663
9660
|
});
|
|
9664
9661
|
function Fullscreen(_ref) {
|
|
9665
9662
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10119,10 +10116,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10119
10116
|
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; }
|
|
10120
10117
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10121
10118
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10122
|
-
return import('./index-
|
|
10119
|
+
return import('./index-d2a5fe02.js');
|
|
10123
10120
|
});
|
|
10124
10121
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10125
|
-
return import('./ModalsWrapper-
|
|
10122
|
+
return import('./ModalsWrapper-edeba091.js');
|
|
10126
10123
|
});
|
|
10127
10124
|
function ContentComponent() {
|
|
10128
10125
|
var context = useDivaCoreContext();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-86ad40ce.js';
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-
|
|
1
|
+
export { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-86ad40ce.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';
|