@crystaldesign/diva-core 25.8.0-beta.4 → 25.8.0-beta.6
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-f84ec965.js → ModalsWrapper-b5270d4f.js} +1 -1
- package/build/esm/{index-5de35adc.js → index-281cd68b.js} +1 -1
- package/build/esm/{index-79e6bbe2.js → index-dfd26a16.js} +12 -12
- package/build/esm/index.js +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-dfd26a16.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-
|
|
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-dfd26a16.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.8.0-beta.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.8.0-beta.6"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -2310,7 +2310,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2310
2310
|
_config6,
|
|
2311
2311
|
_config8,
|
|
2312
2312
|
_config9;
|
|
2313
|
-
var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref2, type, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState, _this$root$dataStore$3, _config$barrier, _parameters2;
|
|
2313
|
+
var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref2, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState, _this$root$dataStore$3, _config$barrier, _parameters2;
|
|
2314
2314
|
return _regeneratorRuntime.wrap(function openComponent$(_context2) {
|
|
2315
2315
|
while (1) switch (_context2.prev = _context2.next) {
|
|
2316
2316
|
case 0:
|
|
@@ -2339,7 +2339,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2339
2339
|
this.root.loadingAndErrorStore.toggleLoading('openComponent');
|
|
2340
2340
|
return _context2.abrupt("return");
|
|
2341
2341
|
case 10:
|
|
2342
|
-
_ref2 = action, type = _ref2.type, parameters = _ref2.parameters, internal = _ref2.internal, route = _ref2.route, openInFullscreen = _ref2.openInFullscreen, keepOldState = _ref2.keepOldState;
|
|
2342
|
+
_ref2 = action, type = _ref2.type, identifier = _ref2.identifier, parameters = _ref2.parameters, internal = _ref2.internal, route = _ref2.route, openInFullscreen = _ref2.openInFullscreen, keepOldState = _ref2.keepOldState;
|
|
2343
2343
|
config = undefined;
|
|
2344
2344
|
if (!openInFullscreen) {
|
|
2345
2345
|
_context2.next = 15;
|
|
@@ -2350,7 +2350,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2350
2350
|
case 15:
|
|
2351
2351
|
if (type) {
|
|
2352
2352
|
config = this.availableComponents.find(function (c) {
|
|
2353
|
-
return c.type == type;
|
|
2353
|
+
return c.type == type && (!identifier || c.identifier == identifier);
|
|
2354
2354
|
});
|
|
2355
2355
|
} else if (route) {
|
|
2356
2356
|
config = this.availableComponents.find(function (c) {
|
|
@@ -9616,7 +9616,7 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9616
9616
|
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; }
|
|
9617
9617
|
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; }
|
|
9618
9618
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9619
|
-
return import('./ModalsWrapper-
|
|
9619
|
+
return import('./ModalsWrapper-b5270d4f.js');
|
|
9620
9620
|
});
|
|
9621
9621
|
function Fullscreen(_ref) {
|
|
9622
9622
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -9864,7 +9864,7 @@ function ErrorDisplay() {
|
|
|
9864
9864
|
setShowReload(loadingAndErrorStore.userFriendlyErrorMsg == undefined);
|
|
9865
9865
|
}, [loadingAndErrorStore.userFriendlyErrorMsg]);
|
|
9866
9866
|
if (loadingAndErrorStore.error) {
|
|
9867
|
-
var _loadingAndErrorStore,
|
|
9867
|
+
var _loadingAndErrorStore, _loadingAndErrorStore2, _loadingAndErrorStore6;
|
|
9868
9868
|
return /*#__PURE__*/jsx("div", {
|
|
9869
9869
|
className: errorDisplay,
|
|
9870
9870
|
children: /*#__PURE__*/jsxs("div", {
|
|
@@ -9891,16 +9891,16 @@ function ErrorDisplay() {
|
|
|
9891
9891
|
children: [loadingAndErrorStore.divaErrorCode ? loadingAndErrorStore.divaErrorCode + ': ' : '', " ", loadingAndErrorStore.error]
|
|
9892
9892
|
}), /*#__PURE__*/jsxs("div", {
|
|
9893
9893
|
className: actionButtons,
|
|
9894
|
-
children: [loadingAndErrorStore.fallbackModule && /*#__PURE__*/jsx(Button$1, {
|
|
9894
|
+
children: [((_loadingAndErrorStore2 = loadingAndErrorStore.fallbackModule) === null || _loadingAndErrorStore2 === void 0 ? void 0 : _loadingAndErrorStore2.route) && /*#__PURE__*/jsx(Button$1, {
|
|
9895
9895
|
color: "primary",
|
|
9896
9896
|
variant: "contained",
|
|
9897
9897
|
onClick: function onClick() {
|
|
9898
|
-
var
|
|
9898
|
+
var _loadingAndErrorStore3, _loadingAndErrorStore4, _loadingAndErrorStore5;
|
|
9899
9899
|
return contentStore.openComponent({
|
|
9900
|
-
url: window.location.origin + ((
|
|
9900
|
+
url: window.location.origin + ((_loadingAndErrorStore3 = loadingAndErrorStore.fallbackModule) === null || _loadingAndErrorStore3 === void 0 ? void 0 : _loadingAndErrorStore3.route.toLowerCase()) + ((_loadingAndErrorStore4 = loadingAndErrorStore.fallbackModule) !== null && _loadingAndErrorStore4 !== void 0 && _loadingAndErrorStore4.organizationId ? '?organizationId=' + ((_loadingAndErrorStore5 = loadingAndErrorStore.fallbackModule) === null || _loadingAndErrorStore5 === void 0 ? void 0 : _loadingAndErrorStore5.organizationId) : '')
|
|
9901
9901
|
});
|
|
9902
9902
|
},
|
|
9903
|
-
children: (
|
|
9903
|
+
children: (_loadingAndErrorStore6 = loadingAndErrorStore.fallbackModule.text) !== null && _loadingAndErrorStore6 !== void 0 ? _loadingAndErrorStore6 : t('portal.error.gotodefaultmodule') + ' (' + loadingAndErrorStore.fallbackModule.route.replace('/', '') + ')'
|
|
9904
9904
|
}), configurationStore.applicationEnvironment !== 'WEB' && loadingAndErrorStore.showLogout && /*#__PURE__*/jsx(Button$1, {
|
|
9905
9905
|
color: "primary",
|
|
9906
9906
|
variant: "contained",
|
|
@@ -10074,10 +10074,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10074
10074
|
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; }
|
|
10075
10075
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10076
10076
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10077
|
-
return import('./index-
|
|
10077
|
+
return import('./index-281cd68b.js');
|
|
10078
10078
|
});
|
|
10079
10079
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10080
|
-
return import('./ModalsWrapper-
|
|
10080
|
+
return import('./ModalsWrapper-b5270d4f.js');
|
|
10081
10081
|
});
|
|
10082
10082
|
function ContentComponent() {
|
|
10083
10083
|
var context = useDivaCoreContext();
|
package/build/esm/index.js
CHANGED
|
@@ -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-
|
|
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-dfd26a16.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';
|