@crystaldesign/diva-core 25.3.0-beta.12 → 25.3.0-beta.14
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-75bb8c3e.js → ModalsWrapper-f5c19da8.js} +1 -1
- package/build/esm/{index-40eeb46f.js → index-8b18b418.js} +1 -1
- package/build/esm/{index-546ba9e9.js → index-f151553c.js} +12 -9
- 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 +2 -2
- package/build/umd/report.html +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { i as styleInject, u as useDivaCoreContext } from './index-f151553c.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, 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-f151553c.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';
|
|
@@ -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-beta.
|
|
47
|
+
const env = {"STAGE":"production","VERSION":"25.3.0-beta.14"};
|
|
48
48
|
try {
|
|
49
49
|
if (process) {
|
|
50
50
|
process.env = Object.assign({}, process.env);
|
|
@@ -3809,7 +3809,7 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3809
3809
|
key: "loadUrlState",
|
|
3810
3810
|
value: (function () {
|
|
3811
3811
|
var _loadUrlState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
3812
|
-
var
|
|
3812
|
+
var _route, _searchParams$get;
|
|
3813
3813
|
var searchParams, currentUrl, state, route;
|
|
3814
3814
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3815
3815
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -3817,11 +3817,14 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3817
3817
|
searchParams = new URLSearchParams(window.location.search);
|
|
3818
3818
|
currentUrl = new URL(window.location.href);
|
|
3819
3819
|
state = {};
|
|
3820
|
-
|
|
3821
|
-
|
|
3820
|
+
route = currentUrl.pathname;
|
|
3821
|
+
route = (_route = route) !== null && _route !== void 0 && _route.endsWith('/') ? route.slice(0, -1) : route;
|
|
3822
|
+
if (route.endsWith('/login/debug')) {
|
|
3822
3823
|
state.debugLogin = true;
|
|
3824
|
+
route = route.replace('/login/debug', '');
|
|
3825
|
+
} else if (route.endsWith('/login')) {
|
|
3826
|
+
route = route.replace('/login', '');
|
|
3823
3827
|
}
|
|
3824
|
-
route = (_currentUrl$pathname = currentUrl.pathname) !== null && _currentUrl$pathname !== void 0 && _currentUrl$pathname.endsWith('/') ? currentUrl.pathname.slice(0, -1) : currentUrl.pathname;
|
|
3825
3828
|
state.component = {
|
|
3826
3829
|
parameters: {},
|
|
3827
3830
|
route: route
|
|
@@ -3847,7 +3850,7 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3847
3850
|
currentUrl.searchParams["delete"]('authdata');
|
|
3848
3851
|
history.replaceState(null, '', currentUrl.href);
|
|
3849
3852
|
return _context.abrupt("return", state);
|
|
3850
|
-
case
|
|
3853
|
+
case 19:
|
|
3851
3854
|
case "end":
|
|
3852
3855
|
return _context.stop();
|
|
3853
3856
|
}
|
|
@@ -9496,7 +9499,7 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9496
9499
|
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; }
|
|
9497
9500
|
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; }
|
|
9498
9501
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9499
|
-
return import('./ModalsWrapper-
|
|
9502
|
+
return import('./ModalsWrapper-f5c19da8.js');
|
|
9500
9503
|
});
|
|
9501
9504
|
function Fullscreen() {
|
|
9502
9505
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
@@ -9944,10 +9947,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
9944
9947
|
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; }
|
|
9945
9948
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9946
9949
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9947
|
-
return import('./index-
|
|
9950
|
+
return import('./index-8b18b418.js');
|
|
9948
9951
|
});
|
|
9949
9952
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9950
|
-
return import('./ModalsWrapper-
|
|
9953
|
+
return import('./ModalsWrapper-f5c19da8.js');
|
|
9951
9954
|
});
|
|
9952
9955
|
function ContentComponent() {
|
|
9953
9956
|
var context = useDivaCoreContext();
|
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-f151553c.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,MAAM,EAAE,UAAU,EAAE,SAAS,EAA2B,MAAM,UAAU,CAAC;AAClF,OAAO,SAAS,MAAM,aAAa,CAAC;AAUpC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EA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