@crystaldesign/diva-core 25.11.0-beta.30 → 25.11.0-beta.32

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-818c956c.js';
1
+ import { i as styleInject, u as useDivaCoreContext } from './index-721363ad.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';
@@ -48,7 +48,7 @@ import { actions } from '@storybook/addon-actions';
48
48
  import * as Styles from '@mui/styles';
49
49
 
50
50
  (function() {
51
- const env = {"STAGE":"production","VERSION":"25.11.0-beta.30"};
51
+ const env = {"STAGE":"production","VERSION":"25.11.0-beta.32"};
52
52
  try {
53
53
  if (process) {
54
54
  process.env = Object.assign({}, process.env);
@@ -485,6 +485,20 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
485
485
  return JSON.parse(compAttr);
486
486
  }
487
487
  return undefined;
488
+ },
489
+ set: function set(val) {
490
+ if (val) {
491
+ this.setAttribute('defaultApiConfig', JSON.stringify(val));
492
+ } else this.removeAttribute('defaultApiConfig');
493
+ }
494
+ }, {
495
+ key: "analyticsProps",
496
+ get: function get() {
497
+ var compAttr = this.getAttribute('analyticsProps') || undefined;
498
+ if (compAttr) {
499
+ return JSON.parse(compAttr);
500
+ }
501
+ return undefined;
488
502
  }
489
503
 
490
504
  /**
@@ -492,8 +506,8 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
492
506
  */,
493
507
  set: function set(val) {
494
508
  if (val) {
495
- this.setAttribute('defaultApiConfig', JSON.stringify(val));
496
- } else this.removeAttribute('defaultApiConfig');
509
+ this.setAttribute('analyticsProps', JSON.stringify(val));
510
+ } else this.removeAttribute('analyticsProps');
497
511
  }
498
512
  }, {
499
513
  key: "configUrl",
@@ -624,6 +638,7 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
624
638
  organizationId: this.organizationId,
625
639
  identifier: this.identifier,
626
640
  telemetry: this.telemetry,
641
+ analyticsProps: this.analyticsProps,
627
642
  onEvent: this.onEvent.bind(this),
628
643
  ref: this.ref
629
644
  });
@@ -9738,7 +9753,7 @@ var DrawerMenu = observer(MobileDrawer);
9738
9753
  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; }
9739
9754
  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; }
9740
9755
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9741
- return import('./ModalsWrapper-c6759670.js');
9756
+ return import('./ModalsWrapper-5305a2f0.js');
9742
9757
  });
9743
9758
  function Fullscreen(_ref) {
9744
9759
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -10196,10 +10211,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10196
10211
  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; }
10197
10212
  var LOG$2 = getLogger('Framework', 'Root');
10198
10213
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10199
- return import('./index-82e7c9b4.js');
10214
+ return import('./index-fca411aa.js');
10200
10215
  });
10201
10216
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10202
- return import('./ModalsWrapper-c6759670.js');
10217
+ return import('./ModalsWrapper-5305a2f0.js');
10203
10218
  });
10204
10219
  function ContentComponent() {
10205
10220
  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-818c956c.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-721363ad.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-818c956c.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-721363ad.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';