@crystaldesign/diva-core 25.13.0-rc.9 → 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-56348251.js → ModalsWrapper-e10c6d2e.js} +1 -1
- package/build/esm/{index-57dd0153.js → index-5c47a06e.js} +9 -6
- package/build/esm/{index-1fc2181f.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.
|
|
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);
|
|
@@ -1054,7 +1054,9 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1054
1054
|
}, {
|
|
1055
1055
|
key: "priceFormat",
|
|
1056
1056
|
get: function get() {
|
|
1057
|
-
var _this$root$dataStore$3,
|
|
1057
|
+
var _this$root$dataStore$3,
|
|
1058
|
+
_this$_configuration55,
|
|
1059
|
+
_this = this;
|
|
1058
1060
|
var fallbackPriceFormat = {
|
|
1059
1061
|
currency: '€',
|
|
1060
1062
|
spacing: true,
|
|
@@ -1070,7 +1072,8 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1070
1072
|
if (Array.isArray((_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat)) {
|
|
1071
1073
|
var _this$_configuration$6, _this$_configuration57;
|
|
1072
1074
|
return (_this$_configuration$6 = (_this$_configuration57 = this._configuration) === null || _this$_configuration57 === void 0 ? void 0 : _this$_configuration57.priceFormat.find(function (pf) {
|
|
1073
|
-
|
|
1075
|
+
var _this$root$dataStore$4;
|
|
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);
|
|
1074
1077
|
})) !== null && _this$_configuration$6 !== void 0 ? _this$_configuration$6 : _objectSpread$d(_objectSpread$d({}, fallbackPriceFormat), {}, {
|
|
1075
1078
|
currency: currency
|
|
1076
1079
|
});
|
|
@@ -9656,7 +9659,7 @@ var DrawerMenu = observer(MobileDrawer);
|
|
|
9656
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; }
|
|
9657
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; }
|
|
9658
9661
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9659
|
-
return import('./ModalsWrapper-
|
|
9662
|
+
return import('./ModalsWrapper-e10c6d2e.js');
|
|
9660
9663
|
});
|
|
9661
9664
|
function Fullscreen(_ref) {
|
|
9662
9665
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10116,10 +10119,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10116
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; }
|
|
10117
10120
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10118
10121
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10119
|
-
return import('./index-
|
|
10122
|
+
return import('./index-80b53700.js');
|
|
10120
10123
|
});
|
|
10121
10124
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10122
|
-
return import('./ModalsWrapper-
|
|
10125
|
+
return import('./ModalsWrapper-e10c6d2e.js');
|
|
10123
10126
|
});
|
|
10124
10127
|
function ContentComponent() {
|
|
10125
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';
|