@crystaldesign/diva-core 25.10.0-rc.4 → 25.10.1-rc.0

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-c0089edd.js';
1
+ import { i as styleInject, u as useDivaCoreContext } from './index-94b33b4a.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.10.0-rc.4"};
49
+ const env = {"STAGE":"production","VERSION":"25.10.1-rc.0"};
50
50
  try {
51
51
  if (process) {
52
52
  process.env = Object.assign({}, process.env);
@@ -483,6 +483,20 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
483
483
  return JSON.parse(compAttr);
484
484
  }
485
485
  return undefined;
486
+ },
487
+ set: function set(val) {
488
+ if (val) {
489
+ this.setAttribute('defaultApiConfig', JSON.stringify(val));
490
+ } else this.removeAttribute('defaultApiConfig');
491
+ }
492
+ }, {
493
+ key: "analyticsProps",
494
+ get: function get() {
495
+ var compAttr = this.getAttribute('analyticsProps') || undefined;
496
+ if (compAttr) {
497
+ return JSON.parse(compAttr);
498
+ }
499
+ return undefined;
486
500
  }
487
501
 
488
502
  /**
@@ -490,8 +504,8 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
490
504
  */,
491
505
  set: function set(val) {
492
506
  if (val) {
493
- this.setAttribute('defaultApiConfig', JSON.stringify(val));
494
- } else this.removeAttribute('defaultApiConfig');
507
+ this.setAttribute('analyticsProps', JSON.stringify(val));
508
+ } else this.removeAttribute('analyticsProps');
495
509
  }
496
510
  }, {
497
511
  key: "configUrl",
@@ -622,6 +636,7 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
622
636
  organizationId: this.organizationId,
623
637
  identifier: this.identifier,
624
638
  telemetry: this.telemetry,
639
+ analyticsProps: this.analyticsProps,
625
640
  onEvent: this.onEvent.bind(this),
626
641
  ref: this.ref
627
642
  });
@@ -9621,7 +9636,7 @@ var SideMenu$1 = observer(SideMenu);
9621
9636
  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; }
9622
9637
  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; }
9623
9638
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9624
- return import('./ModalsWrapper-8ac8ec64.js');
9639
+ return import('./ModalsWrapper-c4b2a6f9.js');
9625
9640
  });
9626
9641
  function Fullscreen(_ref) {
9627
9642
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10079,10 +10094,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10079
10094
  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; }
10080
10095
  var LOG$2 = getLogger('Framework', 'Root');
10081
10096
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10082
- return import('./index-74e7415b.js');
10097
+ return import('./index-f8e0e540.js');
10083
10098
  });
10084
10099
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10085
- return import('./ModalsWrapper-8ac8ec64.js');
10100
+ return import('./ModalsWrapper-c4b2a6f9.js');
10086
10101
  });
10087
10102
  function ContentComponent() {
10088
10103
  var context = useDivaCoreContext();
@@ -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-c0089edd.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-94b33b4a.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 { 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-c0089edd.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-94b33b4a.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';