@crystaldesign/diva-core 26.2.0-rc.20 → 26.2.0-rc.21

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.
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext } from './index-e8f4c45d.js';
1
+ import { s as styleInject, u as useDivaCoreContext } from './index-065ddaee.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';
@@ -45,7 +45,7 @@ import { actions } from '@storybook/addon-actions';
45
45
  import * as Styles from '@mui/styles';
46
46
 
47
47
  (function() {
48
- const env = {"STAGE":"production","VERSION":"26.2.0-rc.20"};
48
+ const env = {"STAGE":"production","VERSION":"26.2.0-rc.21"};
49
49
  try {
50
50
  if (process) {
51
51
  process.env = Object.assign({}, process.env);
@@ -3241,6 +3241,7 @@ var ContentStore = /*#__PURE__*/function () {
3241
3241
  var _this$root,
3242
3242
  _this7 = this;
3243
3243
  return (_this$root = this.root) === null || _this$root === void 0 ? void 0 : _this$root.configurationStore.components.filter(function (component) {
3244
+ var _this7$root$dataStore;
3244
3245
  //the component must be passed to diva core
3245
3246
  if (!_this7.configuration.find(function (config) {
3246
3247
  return config.name == component.type;
@@ -3258,7 +3259,7 @@ var ContentStore = /*#__PURE__*/function () {
3258
3259
  }
3259
3260
 
3260
3261
  //IF INSIGHTS, THEN IN ORGANIZATION has to be true
3261
- if (component.type === 'SALES_MANAGER' && !_this7.root.dataStore.organization.settings.enableInsights) {
3262
+ if (component.type === 'SALES_MANAGER' && !((_this7$root$dataStore = _this7.root.dataStore.organization) !== null && _this7$root$dataStore !== void 0 && (_this7$root$dataStore = _this7$root$dataStore.settings) !== null && _this7$root$dataStore !== void 0 && _this7$root$dataStore.enableInsights)) {
3262
3263
  return false;
3263
3264
  }
3264
3265
 
@@ -9931,7 +9932,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
9931
9932
  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; }
9932
9933
  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; }
9933
9934
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9934
- return import('./ModalsWrapper-ed1d0da9.js');
9935
+ return import('./ModalsWrapper-2bad169e.js');
9935
9936
  });
9936
9937
  function Fullscreen(_ref) {
9937
9938
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10391,10 +10392,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10391
10392
  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; }
10392
10393
  var LOG$2 = getLogger('Framework', 'Root');
10393
10394
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10394
- return import('./index-e2e005a8.js');
10395
+ return import('./index-556fe480.js');
10395
10396
  });
10396
10397
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10397
- return import('./ModalsWrapper-ed1d0da9.js');
10398
+ return import('./ModalsWrapper-2bad169e.js');
10398
10399
  });
10399
10400
  function ContentComponent() {
10400
10401
  var context = useDivaCoreContext();
@@ -1,4 +1,4 @@
1
- import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-e8f4c45d.js';
1
+ import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-065ddaee.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';
@@ -1,4 +1,4 @@
1
- export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-e8f4c45d.js';
1
+ export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-065ddaee.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';