@crystaldesign/diva-core 25.3.0-rc.24 → 25.3.0-rc.26
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.
- package/build/esm/{ModalsWrapper-12f6a527.js → ModalsWrapper-ecd3cdb7.js} +1 -1
- package/build/esm/{index-e3be7a23.js → index-9e999484.js} +12 -8
- package/build/esm/{index-1e54f58a.js → index-ef825959.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/types/core/src/elements/Fullscreen/index.d.ts +3 -1
- package/build/types/core/src/elements/Fullscreen/index.d.ts.map +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { i as styleInject, u as useDivaCoreContext } from './index-9e999484.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.3.0-rc.
|
|
47
|
+
const env = {"STAGE":"production","VERSION":"25.3.0-rc.26"};
|
|
48
48
|
try {
|
|
49
49
|
if (process) {
|
|
50
50
|
process.env = Object.assign({}, process.env);
|
|
@@ -9559,9 +9559,10 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9559
9559
|
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; }
|
|
9560
9560
|
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; }
|
|
9561
9561
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9562
|
-
return import('./ModalsWrapper-
|
|
9562
|
+
return import('./ModalsWrapper-ecd3cdb7.js');
|
|
9563
9563
|
});
|
|
9564
|
-
function Fullscreen() {
|
|
9564
|
+
function Fullscreen(_ref) {
|
|
9565
|
+
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
9565
9566
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
9566
9567
|
contentStore = _useDivaCoreContext.contentStore,
|
|
9567
9568
|
configurationStore = _useDivaCoreContext.configurationStore;
|
|
@@ -9643,21 +9644,24 @@ function Fullscreen() {
|
|
|
9643
9644
|
(_element$2 = element[0]) === null || _element$2 === void 0 || _element$2.classList.remove('diva-pseudo-fullscreen');
|
|
9644
9645
|
};
|
|
9645
9646
|
}, [contentStore.isFullscreenComponentDefined]);
|
|
9646
|
-
if (!contentStore.fullscreen) {
|
|
9647
|
+
if (!contentStore.isFullscreenComponentDefined && !contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
|
|
9648
|
+
if ((!contentStore.fullscreen || contentStore.isFullscreenComponentDefined) && !inAbsoluteFullscreen) {
|
|
9647
9649
|
var _c$state$absoluteFull, _c$state$absoluteFull2;
|
|
9648
|
-
if (!contentStore.isFullscreenComponentDefined) return /*#__PURE__*/jsx(Fragment, {});
|
|
9649
9650
|
var c = contentStore.fullscreenComponent;
|
|
9650
9651
|
var C = c.component;
|
|
9651
9652
|
return /*#__PURE__*/jsxs("div", {
|
|
9652
9653
|
id: "DivaCore",
|
|
9653
9654
|
className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9654
9655
|
style: isMobile ? (_c$state$absoluteFull = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull === void 0 ? void 0 : _c$state$absoluteFull.mobile : (_c$state$absoluteFull2 = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull2 === void 0 ? void 0 : _c$state$absoluteFull2.desktop,
|
|
9655
|
-
children: [/*#__PURE__*/jsx(
|
|
9656
|
+
children: [/*#__PURE__*/jsx(Fullscreen, {
|
|
9657
|
+
inAbsoluteFullscreen: true
|
|
9658
|
+
}), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(SideMenu$1, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
|
|
9656
9659
|
fallback: /*#__PURE__*/jsx(Fallback, {}),
|
|
9657
9660
|
children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
|
|
9658
9661
|
})]
|
|
9659
9662
|
});
|
|
9660
9663
|
}
|
|
9664
|
+
if (!contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
|
|
9661
9665
|
return /*#__PURE__*/jsxs("div", {
|
|
9662
9666
|
className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9663
9667
|
"data-test-id": "plannerFullscreen",
|
|
@@ -10013,10 +10017,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10013
10017
|
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; }
|
|
10014
10018
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10015
10019
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10016
|
-
return import('./index-
|
|
10020
|
+
return import('./index-ef825959.js');
|
|
10017
10021
|
});
|
|
10018
10022
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10019
|
-
return import('./ModalsWrapper-
|
|
10023
|
+
return import('./ModalsWrapper-ecd3cdb7.js');
|
|
10020
10024
|
});
|
|
10021
10025
|
function ContentComponent() {
|
|
10022
10026
|
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-
|
|
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-9e999484.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';
|
package/build/esm/index.js
CHANGED
|
@@ -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-
|
|
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-9e999484.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,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare function Fullscreen(
|
|
2
|
+
declare function Fullscreen({ inAbsoluteFullscreen }: {
|
|
3
|
+
inAbsoluteFullscreen?: boolean;
|
|
4
|
+
}): React.JSX.Element;
|
|
3
5
|
declare const _default: typeof Fullscreen & {
|
|
4
6
|
displayName: string;
|
|
5
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/Fullscreen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAW1E,iBAAS,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/Fullscreen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAW1E,iBAAS,UAAU,CAAC,EAAE,oBAAoB,EAAE,EAAE;IAAE,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAAE,qBAyH/E;;;;AAED,wBAAoC"}
|