@crystaldesign/diva-core 25.13.0-beta.14 → 25.13.0-beta.16
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-ab63182f.js → ModalsWrapper-bb907e23.js} +1 -1
- package/build/esm/{index-e80468c5.js → index-2825d4e4.js} +11 -9
- package/build/esm/{index-4797c6af.js → index-7b41f41d.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/types/core/src/elements/Banner/index.d.ts.map +1 -1
- package/build/umd/diva-core.umd.min.js +3 -3
- 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-2825d4e4.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';
|
|
@@ -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.13.0-beta.
|
|
49
|
+
const env = {"STAGE":"production","VERSION":"25.13.0-beta.16"};
|
|
50
50
|
try {
|
|
51
51
|
if (process) {
|
|
52
52
|
process.env = Object.assign({}, process.env);
|
|
@@ -8588,8 +8588,8 @@ var RootStore = /*#__PURE__*/function () {
|
|
|
8588
8588
|
(_this4$contentStore = _this4.contentStore) === null || _this4$contentStore === void 0 || _this4$contentStore.openBanner({
|
|
8589
8589
|
key: 'InitialWarningBanner',
|
|
8590
8590
|
type: 'WARNING',
|
|
8591
|
-
title:
|
|
8592
|
-
text:
|
|
8591
|
+
title: 'modals.warning',
|
|
8592
|
+
text: 'init.deploymentwarntext',
|
|
8593
8593
|
useLocalStorage: true
|
|
8594
8594
|
});
|
|
8595
8595
|
}
|
|
@@ -9503,7 +9503,7 @@ var DrawerMenu = observer(MobileDrawer);
|
|
|
9503
9503
|
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; }
|
|
9504
9504
|
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; }
|
|
9505
9505
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9506
|
-
return import('./ModalsWrapper-
|
|
9506
|
+
return import('./ModalsWrapper-bb907e23.js');
|
|
9507
9507
|
});
|
|
9508
9508
|
function Fullscreen(_ref) {
|
|
9509
9509
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -9638,9 +9638,11 @@ var InfoCircleOutlined = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fww
|
|
|
9638
9638
|
var ExclamationCircleOutlined = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20width%3D%221em%22%20height%3D%221em%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448s448-200.6%20448-448S759.4%2064%20512%2064zm0%20820c-205.4%200-372-166.6-372-372s166.6-372%20372-372s372%20166.6%20372%20372s-166.6%20372-372%20372z%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M464%20688a48%2048%200%201%200%2096%200a48%2048%200%201%200-96%200zm24-112h48c4.4%200%208-3.6%208-8V296c0-4.4-3.6-8-8-8h-48c-4.4%200-8%203.6-8%208v272c0%204.4%203.6%208%208%208z%22%2F%3E%3C%2Fsvg%3E";
|
|
9639
9639
|
|
|
9640
9640
|
function Banner() {
|
|
9641
|
-
var _contentStore$banner2
|
|
9641
|
+
var _contentStore$banner2, _contentStore$banner$;
|
|
9642
9642
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
9643
9643
|
contentStore = _useDivaCoreContext.contentStore;
|
|
9644
|
+
var _useTranslation = useTranslation(),
|
|
9645
|
+
t = _useTranslation.t;
|
|
9644
9646
|
var onClose = function onClose() {
|
|
9645
9647
|
var _contentStore$banner;
|
|
9646
9648
|
contentStore.closeBanner();
|
|
@@ -9686,9 +9688,9 @@ function Banner() {
|
|
|
9686
9688
|
className: textWrapper,
|
|
9687
9689
|
children: [/*#__PURE__*/jsx("p", {
|
|
9688
9690
|
className: title,
|
|
9689
|
-
children: contentStore.banner.title
|
|
9691
|
+
children: t(contentStore.banner.title)
|
|
9690
9692
|
}), /*#__PURE__*/jsx("span", {
|
|
9691
|
-
children: contentStore.banner.text
|
|
9693
|
+
children: t((_contentStore$banner$ = contentStore.banner.text) !== null && _contentStore$banner$ !== void 0 ? _contentStore$banner$ : '')
|
|
9692
9694
|
})]
|
|
9693
9695
|
})]
|
|
9694
9696
|
});
|
|
@@ -9961,10 +9963,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
9961
9963
|
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; }
|
|
9962
9964
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9963
9965
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9964
|
-
return import('./index-
|
|
9966
|
+
return import('./index-7b41f41d.js');
|
|
9965
9967
|
});
|
|
9966
9968
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9967
|
-
return import('./ModalsWrapper-
|
|
9969
|
+
return import('./ModalsWrapper-bb907e23.js');
|
|
9968
9970
|
});
|
|
9969
9971
|
function ContentComponent() {
|
|
9970
9972
|
var context = useDivaCoreContext();
|
|
@@ -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-2825d4e4.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';
|
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-2825d4e4.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":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,iBAAS,MAAM,sBAqEd;;;;AAED,wBAAgC"}
|