@crystaldesign/diva-core 25.12.2-rc.0 → 25.12.3-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 { s as styleInject, u as useDivaCoreContext } from './index-a6a69b78.js';
1
+ import { s as styleInject, u as useDivaCoreContext } from './index-be544e7d.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 { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-a6a69b78.js';
1
+ import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-be544e7d.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';
@@ -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.12.2-rc.0"};
49
+ const env = {"STAGE":"production","VERSION":"25.12.3-rc.0"};
50
50
  try {
51
51
  if (process) {
52
52
  process.env = Object.assign({}, process.env);
@@ -9357,7 +9357,17 @@ var MobileDrawer = function MobileDrawer(_ref) {
9357
9357
  _setActiveSnapPoint = _useState2[1];
9358
9358
  var useMove = useMemo(function () {
9359
9359
  return function (ev) {
9360
- return ev.preventDefault();
9360
+ // Allow touch events on input, textarea, and select elements
9361
+ var target = ev.target;
9362
+ if (target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.tagName === 'SELECT')) {
9363
+ return;
9364
+ }
9365
+ // Allow touch events on elements with contenteditable
9366
+ if (target && target.isContentEditable) {
9367
+ return;
9368
+ }
9369
+ // Only prevent default for other elements to stop pull-to-refresh
9370
+ ev.preventDefault();
9361
9371
  };
9362
9372
  }, []);
9363
9373
  var closeDrawerMenu = contentStore.closeDrawerMenu;
@@ -9488,7 +9498,7 @@ var DrawerMenu = observer(MobileDrawer);
9488
9498
  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; }
9489
9499
  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; }
9490
9500
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9491
- return import('./ModalsWrapper-447210d5.js');
9501
+ return import('./ModalsWrapper-517af2a1.js');
9492
9502
  });
9493
9503
  function Fullscreen(_ref) {
9494
9504
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -9946,10 +9956,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
9946
9956
  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; }
9947
9957
  var LOG$2 = getLogger('Framework', 'Root');
9948
9958
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
9949
- return import('./index-84939b32.js');
9959
+ return import('./index-8167621e.js');
9950
9960
  });
9951
9961
  var LazyModals = /*#__PURE__*/React.lazy(function () {
9952
- return import('./ModalsWrapper-447210d5.js');
9962
+ return import('./ModalsWrapper-517af2a1.js');
9953
9963
  });
9954
9964
  function ContentComponent() {
9955
9965
  var context = useDivaCoreContext();
@@ -1,4 +1,4 @@
1
- export { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-a6a69b78.js';
1
+ export { b as AnalyticsHandler, A as AuthorizationHandler, d as ClientArticleHandler, C as Content, e as DivaMockProvider, H as HelpButton, O as ONE_DAY_UNIX, c as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, D as default, g as getLogger, f as storyBookCoreMock, a as useDivaCore } from './index-be544e7d.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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/DrawerMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAuB5D,KAAK,KAAK,GAAG,EAAE,CAAC;8BAEU,KAAK;;;AAuI/B,wBAAsC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/DrawerMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAuB5D,KAAK,KAAK,GAAG,EAAE,CAAC;8BAEU,KAAK;;;AAsJ/B,wBAAsC"}