@crystaldesign/diva-core 25.11.0-rc.5 → 25.11.0-rc.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-0ad27e04.js → ModalsWrapper-361129bc.js} +1 -1
- package/build/esm/{index-6acf64a9.js → index-1bbf6966.js} +1 -1
- package/build/esm/{index-a8734e95.js → index-4d81321d.js} +15 -6
- package/build/esm/index.js +1 -1
- package/build/types/core/src/store/BrowserStateStore.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 { s as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext } from './index-4d81321d.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-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-4d81321d.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.11.0-rc.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.11.0-rc.6"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -3659,11 +3659,20 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3659
3659
|
};
|
|
3660
3660
|
state.organization = (_searchParams$get = searchParams.get('organizationId')) !== null && _searchParams$get !== void 0 ? _searchParams$get : undefined;
|
|
3661
3661
|
searchParams["delete"]('organizationId');
|
|
3662
|
+
|
|
3663
|
+
//for backwards compatibilty, if the channelId is set in the url, use that one as organization and update the url in the browser
|
|
3664
|
+
if (searchParams.get('channelId')) {
|
|
3665
|
+
state.organization = searchParams.get('channelId');
|
|
3666
|
+
searchParams["delete"]('channelId');
|
|
3667
|
+
currentUrl.searchParams.set('organizationId', state.organization);
|
|
3668
|
+
currentUrl.searchParams["delete"]('channelId');
|
|
3669
|
+
}
|
|
3662
3670
|
authdataString = searchParams.get('authdata') || undefined;
|
|
3663
3671
|
if (authdataString) {
|
|
3664
3672
|
state.authdata = JSON.parse(atob(authdataString));
|
|
3665
|
-
if ((_state$authdata = state.authdata) !== null && _state$authdata !== void 0 && _state$authdata.organizationId) {
|
|
3673
|
+
if ((_state$authdata = state.authdata) !== null && _state$authdata !== void 0 && _state$authdata.organizationId && state.organization != state.authdata.organizationId) {
|
|
3666
3674
|
state.organization = state.authdata.organizationId;
|
|
3675
|
+
currentUrl.searchParams.set('organizationId', state.organization);
|
|
3667
3676
|
}
|
|
3668
3677
|
}
|
|
3669
3678
|
searchParams["delete"]('lang');
|
|
@@ -3675,7 +3684,7 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3675
3684
|
currentUrl.searchParams["delete"]('authdata');
|
|
3676
3685
|
history.replaceState(null, '', currentUrl.href);
|
|
3677
3686
|
return _context.abrupt("return", state);
|
|
3678
|
-
case
|
|
3687
|
+
case 19:
|
|
3679
3688
|
case "end":
|
|
3680
3689
|
return _context.stop();
|
|
3681
3690
|
}
|
|
@@ -9444,7 +9453,7 @@ var DrawerMenu = observer(MobileDrawer);
|
|
|
9444
9453
|
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; }
|
|
9445
9454
|
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; }
|
|
9446
9455
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9447
|
-
return import('./ModalsWrapper-
|
|
9456
|
+
return import('./ModalsWrapper-361129bc.js');
|
|
9448
9457
|
});
|
|
9449
9458
|
function Fullscreen(_ref) {
|
|
9450
9459
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -9902,10 +9911,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
9902
9911
|
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; }
|
|
9903
9912
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9904
9913
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9905
|
-
return import('./index-
|
|
9914
|
+
return import('./index-1bbf6966.js');
|
|
9906
9915
|
});
|
|
9907
9916
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9908
|
-
return import('./ModalsWrapper-
|
|
9917
|
+
return import('./ModalsWrapper-361129bc.js');
|
|
9909
9918
|
});
|
|
9910
9919
|
function ContentComponent() {
|
|
9911
9920
|
var context = useDivaCoreContext();
|
package/build/esm/index.js
CHANGED
|
@@ -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-
|
|
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-4d81321d.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":"BrowserStateStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/BrowserStateStore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAA2B,MAAM,UAAU,CAAC;AAC5F,OAAO,SAAS,MAAM,aAAa,CAAC;AAUpC,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IAExB,OAAO,CAAC,IAAI;IADxB,OAAO,CAAC,IAAI,CAAc;gBACN,IAAI,EAAE,SAAS;IAqBnC;;;OAGG;IACG,YAAY,IAAI,OA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