@crystaldesign/diva-core 25.4.0-beta.36 → 25.4.0-beta.38

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 { i as styleInject, u as useDivaCoreContext } from './index-5ecec7ce.js';
1
+ import { i as styleInject, u as useDivaCoreContext } from './index-6e4ad7d0.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';
@@ -44,7 +44,7 @@ import { actions } from '@storybook/addon-actions';
44
44
  import * as Styles from '@mui/styles';
45
45
 
46
46
  (function() {
47
- const env = {"STAGE":"production","VERSION":"25.4.0-beta.36"};
47
+ const env = {"STAGE":"production","VERSION":"25.4.0-beta.38"};
48
48
  try {
49
49
  if (process) {
50
50
  process.env = Object.assign({}, process.env);
@@ -6287,7 +6287,7 @@ var MediaHandler = /*#__PURE__*/function () {
6287
6287
  _context5.next = 21;
6288
6288
  break;
6289
6289
  }
6290
- return _context5.abrupt("return", resData);
6290
+ return _context5.abrupt("return", resData.data);
6291
6291
  case 21:
6292
6292
  throw new Error(resData.error);
6293
6293
  case 22:
@@ -6352,7 +6352,7 @@ var MediaHandler = /*#__PURE__*/function () {
6352
6352
  _context6.next = 22;
6353
6353
  break;
6354
6354
  }
6355
- return _context6.abrupt("return", resData);
6355
+ return _context6.abrupt("return", resData.data);
6356
6356
  case 22:
6357
6357
  throw new Error(resData.error);
6358
6358
  case 23:
@@ -6420,7 +6420,7 @@ var MediaHandler = /*#__PURE__*/function () {
6420
6420
  _context7.next = 22;
6421
6421
  break;
6422
6422
  }
6423
- return _context7.abrupt("return", resData);
6423
+ return _context7.abrupt("return", organizationId ? resData : resData.data);
6424
6424
  case 22:
6425
6425
  throw new Error(resData.error);
6426
6426
  case 23:
@@ -9572,7 +9572,7 @@ var SideMenu$1 = observer(SideMenu);
9572
9572
  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; }
9573
9573
  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; }
9574
9574
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9575
- return import('./ModalsWrapper-cb0a6f53.js');
9575
+ return import('./ModalsWrapper-2513130d.js');
9576
9576
  });
9577
9577
  function Fullscreen() {
9578
9578
  var _useDivaCoreContext = useDivaCoreContext(),
@@ -10026,10 +10026,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10026
10026
  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; }
10027
10027
  var LOG$2 = getLogger('Framework', 'Root');
10028
10028
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10029
- return import('./index-dcd6bcfd.js');
10029
+ return import('./index-74276481.js');
10030
10030
  });
10031
10031
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10032
- return import('./ModalsWrapper-cb0a6f53.js');
10032
+ return import('./ModalsWrapper-2513130d.js');
10033
10033
  });
10034
10034
  function ContentComponent() {
10035
10035
  var context = useDivaCoreContext();
@@ -1,4 +1,4 @@
1
- import { u as useDivaCoreContext, B as Button, s as socialButton, g as google, m as microsoft, a as getLogger, e as error, b as separator, I as Input, r as resetInput, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-5ecec7ce.js';
1
+ import { u as useDivaCoreContext, B as Button, s as socialButton, g as google, m as microsoft, a as getLogger, e as error, b as separator, I as Input, r as resetInput, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-6e4ad7d0.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';
@@ -1,4 +1,4 @@
1
- export { k as AnalyticsHandler, A as AuthorizationHandler, o as ClientArticleHandler, C as Content, p as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, n as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, q as storyBookCoreMock, j as useDivaCore } from './index-5ecec7ce.js';
1
+ export { k as AnalyticsHandler, A as AuthorizationHandler, o as ClientArticleHandler, C as Content, p as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, n as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, q as storyBookCoreMock, j as useDivaCore } from './index-6e4ad7d0.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';