@crystaldesign/diva-core 25.14.0-beta.45 → 25.14.0-beta.47
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-2d1ad2e3.js → ModalsWrapper-b1f8f68c.js} +1 -1
- package/build/esm/{index-daeb1da2.js → index-ce932154.js} +1 -1
- package/build/esm/{index-148ee9aa.js → index-e3c1946a.js} +19 -16
- package/build/esm/index.js +1 -1
- package/build/types/core/src/store/BrowserStateStore.d.ts +1 -0
- 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-e3c1946a.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-e3c1946a.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';
|
|
@@ -45,7 +45,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
45
45
|
import * as Styles from '@mui/styles';
|
|
46
46
|
|
|
47
47
|
(function() {
|
|
48
|
-
const env = {"STAGE":"production","VERSION":"25.14.0-beta.
|
|
48
|
+
const env = {"STAGE":"production","VERSION":"25.14.0-beta.47"};
|
|
49
49
|
try {
|
|
50
50
|
if (process) {
|
|
51
51
|
process.env = Object.assign({}, process.env);
|
|
@@ -3804,7 +3804,7 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3804
3804
|
key: "loadUrlState",
|
|
3805
3805
|
value: (function () {
|
|
3806
3806
|
var _loadUrlState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
3807
|
-
var _route, _searchParams$get;
|
|
3807
|
+
var _route, _searchParams$get, _searchParams$get2;
|
|
3808
3808
|
var searchParams, currentUrl, state, route, authdataString, _state$authdata, _state$authdata2;
|
|
3809
3809
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3810
3810
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -3824,7 +3824,9 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3824
3824
|
parameters: {},
|
|
3825
3825
|
route: route
|
|
3826
3826
|
};
|
|
3827
|
-
state.
|
|
3827
|
+
state.provider = (_searchParams$get = searchParams.get('provider')) !== null && _searchParams$get !== void 0 ? _searchParams$get : undefined;
|
|
3828
|
+
searchParams["delete"]('provider');
|
|
3829
|
+
state.organization = (_searchParams$get2 = searchParams.get('organizationId')) !== null && _searchParams$get2 !== void 0 ? _searchParams$get2 : undefined;
|
|
3828
3830
|
searchParams["delete"]('organizationId');
|
|
3829
3831
|
|
|
3830
3832
|
//for backwards compatibilty, if the channelId is set in the url, use that one as organization and update the url in the browser
|
|
@@ -3853,9 +3855,10 @@ var BrowserStateStore = /*#__PURE__*/function () {
|
|
|
3853
3855
|
});
|
|
3854
3856
|
state.component.internal = history.state;
|
|
3855
3857
|
currentUrl.searchParams["delete"]('authdata');
|
|
3858
|
+
currentUrl.searchParams["delete"]('provider');
|
|
3856
3859
|
history.replaceState(null, '', currentUrl.href);
|
|
3857
3860
|
return _context.abrupt("return", state);
|
|
3858
|
-
case
|
|
3861
|
+
case 22:
|
|
3859
3862
|
case "end":
|
|
3860
3863
|
return _context.stop();
|
|
3861
3864
|
}
|
|
@@ -8576,7 +8579,7 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8576
8579
|
value: (function () {
|
|
8577
8580
|
var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(telemetry, identifier, organizationId, domain, language, component, analyticsProps) {
|
|
8578
8581
|
var _this4 = this;
|
|
8579
|
-
var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedOrganization, initialOrganization, initAuthPromise, afterInitPromise, configuration, header, manifest, verifyEmailToken, authObject, _authObject$code,
|
|
8582
|
+
var _this$_initalComponen, _this$_initalComponen2, _configuration$pwa, _this$contentStore$cu, urlState, storedOrganization, initialOrganization, initAuthPromise, afterInitPromise, configuration, header, manifest, verifyEmailToken, authObject, _authObject$code, _authObject$code2, _authObject$code3, _authObject$code4, _authObject$additiona, _authObject$additiona2, loadedOrganization, email, _this$contentStore$cu2;
|
|
8580
8583
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8581
8584
|
while (1) switch (_context.prev = _context.next) {
|
|
8582
8585
|
case 0:
|
|
@@ -8682,8 +8685,8 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8682
8685
|
LOG$4.errorTransaction('LOAD_USER_DATA', (_authObject$code = authObject.code) !== null && _authObject$code !== void 0 ? _authObject$code : 'CORE_0006', authObject.error);
|
|
8683
8686
|
this.authorizationStore.showLogin(false, true);
|
|
8684
8687
|
} else {
|
|
8685
|
-
if (urlState !== null && urlState !== void 0 &&
|
|
8686
|
-
this.browserStateStore.setStoredLoginMethod(urlState.
|
|
8688
|
+
if (urlState !== null && urlState !== void 0 && urlState.provider) {
|
|
8689
|
+
this.browserStateStore.setStoredLoginMethod(urlState.provider);
|
|
8687
8690
|
}
|
|
8688
8691
|
this.browserStateStore.setStoredNToken(authObject.token, authObject.expiresBy);
|
|
8689
8692
|
}
|
|
@@ -9888,7 +9891,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
|
|
|
9888
9891
|
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; }
|
|
9889
9892
|
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; }
|
|
9890
9893
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9891
|
-
return import('./ModalsWrapper-
|
|
9894
|
+
return import('./ModalsWrapper-b1f8f68c.js');
|
|
9892
9895
|
});
|
|
9893
9896
|
function Fullscreen(_ref) {
|
|
9894
9897
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10249,7 +10252,7 @@ function ClassicSnackBarComponent(_ref) {
|
|
|
10249
10252
|
};
|
|
10250
10253
|
return /*#__PURE__*/jsx(Snackbar, {
|
|
10251
10254
|
className: snackbar,
|
|
10252
|
-
color: "
|
|
10255
|
+
color: "primary",
|
|
10253
10256
|
autoHideDuration: data.autoHideDuration,
|
|
10254
10257
|
open: open,
|
|
10255
10258
|
anchorOrigin: {
|
|
@@ -10298,7 +10301,7 @@ function BigSnackBarComponent(_ref2) {
|
|
|
10298
10301
|
open: open,
|
|
10299
10302
|
className: snackbar,
|
|
10300
10303
|
autoHideDuration: data.autoHideDuration,
|
|
10301
|
-
color: "
|
|
10304
|
+
color: "primary",
|
|
10302
10305
|
anchorOrigin: {
|
|
10303
10306
|
vertical: 'bottom',
|
|
10304
10307
|
horizontal: 'right'
|
|
@@ -10308,8 +10311,8 @@ function BigSnackBarComponent(_ref2) {
|
|
|
10308
10311
|
},
|
|
10309
10312
|
children: /*#__PURE__*/jsxs(Card, {
|
|
10310
10313
|
style: {
|
|
10311
|
-
backgroundColor: 'var(--diva-theme-palette-
|
|
10312
|
-
color: 'var(--diva-theme-palette-
|
|
10314
|
+
backgroundColor: 'var(--diva-theme-palette-primary-dark)',
|
|
10315
|
+
color: 'var(--diva-theme-palette-primary-contrast-text)'
|
|
10313
10316
|
},
|
|
10314
10317
|
children: [/*#__PURE__*/jsx(CardHeader, {
|
|
10315
10318
|
action: /*#__PURE__*/jsx(IconButton, {
|
|
@@ -10335,8 +10338,8 @@ function BigSnackBarComponent(_ref2) {
|
|
|
10335
10338
|
children: /*#__PURE__*/jsx(QRCode, {
|
|
10336
10339
|
size: data.qrCodeSize,
|
|
10337
10340
|
value: data.qrCode,
|
|
10338
|
-
bgColor: 'var(--diva-theme-palette-
|
|
10339
|
-
fgColor: 'var(--diva-theme-palette-
|
|
10341
|
+
bgColor: 'var(--diva-theme-palette-primary-dark)',
|
|
10342
|
+
fgColor: 'var(--diva-theme-palette-primary-contrast-text)'
|
|
10340
10343
|
})
|
|
10341
10344
|
})]
|
|
10342
10345
|
})
|
|
@@ -10348,10 +10351,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10348
10351
|
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; }
|
|
10349
10352
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10350
10353
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10351
|
-
return import('./index-
|
|
10354
|
+
return import('./index-ce932154.js');
|
|
10352
10355
|
});
|
|
10353
10356
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10354
|
-
return import('./ModalsWrapper-
|
|
10357
|
+
return import('./ModalsWrapper-b1f8f68c.js');
|
|
10355
10358
|
});
|
|
10356
10359
|
function ContentComponent() {
|
|
10357
10360
|
var context = useDivaCoreContext();
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, h as storyBookCoreMock, a as useDivaCore } from './index-
|
|
1
|
+
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, h as storyBookCoreMock, a as useDivaCore } from './index-e3c1946a.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;
|
|
1
|
+
{"version":3,"file":"BrowserStateSt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