@crystaldesign/diva-core 25.7.0-beta.3 → 25.7.0-beta.5

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-c912c876.js';
1
+ import { i as styleInject, u as useDivaCoreContext } from './index-fce6138b.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';
@@ -1,4 +1,4 @@
1
- import { u as useDivaCoreContext, A as AuthButton, s as socialButton, g as google, m as microsoft, t as titlecontainer, e as error, a as getLogger, b as separator, I as Input, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-c912c876.js';
1
+ import { u as useDivaCoreContext, A as AuthButton, s as socialButton, g as google, m as microsoft, t as titlecontainer, e as error, a as getLogger, b as separator, I as Input, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-fce6138b.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';
@@ -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.7.0-beta.3"};
49
+ const env = {"STAGE":"production","VERSION":"25.7.0-beta.5"};
50
50
  try {
51
51
  if (process) {
52
52
  process.env = Object.assign({}, process.env);
@@ -8837,7 +8837,7 @@ var RootStore = /*#__PURE__*/function () {
8837
8837
  value: (function () {
8838
8838
  var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(telemetry, identifier, organizationId, domain, language, component) {
8839
8839
  var _this4 = this;
8840
- var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedLanguage, storedOrganization, initialOrganization, initalLanguage, configuration, initLocalesResult, telemetrySettings, enableApm, disableDivaAnalyticsLocalStorage, disableDivaAnalytics, enableBusinessMetrics, _configuration$enviro3, _configuration$enviro4, myUserAgentInfo, header, manifest, result, warningText, _this$contentStore, verifyEmailToken, authObject, _urlState$component, _initialOrganization, email, _this$contentStore$cu2;
8840
+ var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedLanguage, storedOrganization, initialOrganization, initialLanguage, configuration, initLocalesResult, telemetrySettings, enableApm, disableDivaAnalyticsLocalStorage, disableDivaAnalytics, enableBusinessMetrics, _configuration$enviro3, _configuration$enviro4, myUserAgentInfo, header, manifest, result, warningText, _this$contentStore, verifyEmailToken, authObject, _urlState$component, _initialOrganization, email, _this$contentStore$cu2;
8841
8841
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8842
8842
  while (1) switch (_context.prev = _context.next) {
8843
8843
  case 0:
@@ -8868,7 +8868,7 @@ var RootStore = /*#__PURE__*/function () {
8868
8868
  storedLanguage = this.browserStateStore.getStoredLanguage();
8869
8869
  storedOrganization = this.browserStateStore.getStoredOrganization(); //the inital state is derived in the fallowing order: component params > url > browserstore > configuration
8870
8870
  initialOrganization = organizationId || urlState.organization || storedOrganization;
8871
- initalLanguage = language || urlState.language || storedLanguage;
8871
+ initialLanguage = language || urlState.language || storedLanguage;
8872
8872
  LOG$4.startTransaction({
8873
8873
  event: 'onLoadConfig',
8874
8874
  message: 'loading Config',
@@ -8900,7 +8900,7 @@ var RootStore = /*#__PURE__*/function () {
8900
8900
 
8901
8901
  //async load locales data
8902
8902
  initLocalesResult = init(_objectSpread$7(_objectSpread$7({}, this.configurationStore.locales), {}, {
8903
- defaultLng: initalLanguage,
8903
+ defaultLng: initialLanguage,
8904
8904
  apiConfig: this.configurationStore.apiConfig
8905
8905
  }));
8906
8906
  telemetrySettings = this.configurationStore.telemetrySettings;
@@ -8918,7 +8918,7 @@ var RootStore = /*#__PURE__*/function () {
8918
8918
  var _configuration$enviro2;
8919
8919
  var myUserAgentInfo = getUserAgentInfo();
8920
8920
  DivaUtils.businessMetrics.init("production" != 'development', // true, - to local test on PETERPC
8921
- (_configuration$enviro2 = configuration.environment) !== null && _configuration$enviro2 !== void 0 ? _configuration$enviro2 : 'PROD', window.DIVA_VERSION, _this4.apiConfig.analyticsService, _this4.jwt, telemetrySettings === null || telemetrySettings === void 0 ? void 0 : telemetrySettings.personalData, myUserAgentInfo.family, myUserAgentInfo.os, myUserAgentInfo.deviceName, myUserAgentInfo.browser, myUserAgentInfo.screenWidth, myUserAgentInfo.screenHeight, myUserAgentInfo.osVersion, configuration.applicationEnvironment, language);
8921
+ (_configuration$enviro2 = configuration.environment) !== null && _configuration$enviro2 !== void 0 ? _configuration$enviro2 : 'PROD', window.DIVA_VERSION, _this4.apiConfig.analyticsService, _this4.jwt, telemetrySettings === null || telemetrySettings === void 0 ? void 0 : telemetrySettings.personalData, myUserAgentInfo.family, myUserAgentInfo.os, myUserAgentInfo.deviceName, myUserAgentInfo.browser, myUserAgentInfo.screenWidth, myUserAgentInfo.screenHeight, myUserAgentInfo.osVersion, configuration.applicationEnvironment, initialLanguage);
8922
8922
  }
8923
8923
  });
8924
8924
  } else {
@@ -8926,7 +8926,7 @@ var RootStore = /*#__PURE__*/function () {
8926
8926
  if (enableBusinessMetrics) {
8927
8927
  myUserAgentInfo = getUserAgentInfo();
8928
8928
  DivaUtils.businessMetrics.init("production" != 'development', // true, - to local test on PETERPC
8929
- (_configuration$enviro4 = configuration.environment) !== null && _configuration$enviro4 !== void 0 ? _configuration$enviro4 : 'PROD', window.DIVA_VERSION, this.apiConfig.analyticsService, this.jwt, telemetrySettings === null || telemetrySettings === void 0 ? void 0 : telemetrySettings.personalData, myUserAgentInfo.family, myUserAgentInfo.os, myUserAgentInfo.deviceName, myUserAgentInfo.browser, myUserAgentInfo.screenWidth, myUserAgentInfo.screenHeight, myUserAgentInfo.osVersion, configuration.applicationEnvironment, language);
8929
+ (_configuration$enviro4 = configuration.environment) !== null && _configuration$enviro4 !== void 0 ? _configuration$enviro4 : 'PROD', window.DIVA_VERSION, this.apiConfig.analyticsService, this.jwt, telemetrySettings === null || telemetrySettings === void 0 ? void 0 : telemetrySettings.personalData, myUserAgentInfo.family, myUserAgentInfo.os, myUserAgentInfo.deviceName, myUserAgentInfo.browser, myUserAgentInfo.screenWidth, myUserAgentInfo.screenHeight, myUserAgentInfo.osVersion, configuration.applicationEnvironment, initialLanguage);
8930
8930
  }
8931
8931
  }
8932
8932
  apmIsInitalized();
@@ -9736,7 +9736,7 @@ var SideMenu$1 = observer(SideMenu);
9736
9736
  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; }
9737
9737
  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; }
9738
9738
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9739
- return import('./ModalsWrapper-bb42a914.js');
9739
+ return import('./ModalsWrapper-a5b8f1fc.js');
9740
9740
  });
9741
9741
  function Fullscreen(_ref) {
9742
9742
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10194,10 +10194,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10194
10194
  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; }
10195
10195
  var LOG$2 = getLogger('Framework', 'Root');
10196
10196
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10197
- return import('./index-c16336da.js');
10197
+ return import('./index-ce8d90a2.js');
10198
10198
  });
10199
10199
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10200
- return import('./ModalsWrapper-bb42a914.js');
10200
+ return import('./ModalsWrapper-a5b8f1fc.js');
10201
10201
  });
10202
10202
  function ContentComponent() {
10203
10203
  var context = useDivaCoreContext();
@@ -1,4 +1,4 @@
1
- export { n as AnalyticsHandler, k as AuthorizationHandler, p as ClientArticleHandler, C as Content, q as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, o as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, r as storyBookCoreMock, j as useDivaCore } from './index-c912c876.js';
1
+ export { n as AnalyticsHandler, k as AuthorizationHandler, p as ClientArticleHandler, C as Content, q as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, o as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, a as getLogger, r as storyBookCoreMock, j as useDivaCore } from './index-fce6138b.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';