@crystaldesign/diva-core 25.14.0-beta.1 → 25.14.0-beta.10
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-95c170db.js → ModalsWrapper-e10c6d2e.js} +1 -1
- package/build/esm/{index-f7beb728.js → index-5c47a06e.js} +9 -9
- package/build/esm/{index-0fc0dc43.js → index-80b53700.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-5c47a06e.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.14.0-beta.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.14.0-beta.10"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -1066,7 +1066,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1066
1066
|
decimalSeparator: ',',
|
|
1067
1067
|
decimalsDigits: 2
|
|
1068
1068
|
};
|
|
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;
|
|
1069
|
+
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
1070
|
if ((_this$_configuration55 = this._configuration) !== null && _this$_configuration55 !== void 0 && _this$_configuration55.priceFormat) {
|
|
1071
1071
|
var _this$_configuration56;
|
|
1072
1072
|
if (Array.isArray((_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat)) {
|
|
@@ -1075,17 +1075,17 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1075
1075
|
var _this$root$dataStore$4;
|
|
1076
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);
|
|
1077
1077
|
})) !== null && _this$_configuration$6 !== void 0 ? _this$_configuration$6 : _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
|
|
1078
|
-
currency:
|
|
1078
|
+
currency: currency
|
|
1079
1079
|
});
|
|
1080
1080
|
} else {
|
|
1081
|
-
var _this$_configuration58, _this$
|
|
1081
|
+
var _this$_configuration58, _this$_configuration59;
|
|
1082
1082
|
return _objectSpread$d(_objectSpread$d({}, (_this$_configuration58 = this._configuration) === null || _this$_configuration58 === void 0 ? void 0 : _this$_configuration58.priceFormat), {}, {
|
|
1083
|
-
currency:
|
|
1083
|
+
currency: currency !== null && currency !== void 0 ? currency : (_this$_configuration59 = this._configuration) === null || _this$_configuration59 === void 0 ? void 0 : _this$_configuration59.priceFormat.currency
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
} else {
|
|
1087
1087
|
return _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
|
|
1088
|
-
currency:
|
|
1088
|
+
currency: currency
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
@@ -9659,7 +9659,7 @@ var DrawerMenu = observer(MobileDrawer);
|
|
|
9659
9659
|
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
9660
|
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
9661
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9662
|
-
return import('./ModalsWrapper-
|
|
9662
|
+
return import('./ModalsWrapper-e10c6d2e.js');
|
|
9663
9663
|
});
|
|
9664
9664
|
function Fullscreen(_ref) {
|
|
9665
9665
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10119,10 +10119,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10119
10119
|
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
10120
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10121
10121
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10122
|
-
return import('./index-
|
|
10122
|
+
return import('./index-80b53700.js');
|
|
10123
10123
|
});
|
|
10124
10124
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10125
|
-
return import('./ModalsWrapper-
|
|
10125
|
+
return import('./ModalsWrapper-e10c6d2e.js');
|
|
10126
10126
|
});
|
|
10127
10127
|
function ContentComponent() {
|
|
10128
10128
|
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-5c47a06e.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-5c47a06e.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';
|