@crystaldesign/diva-core 24.15.0-rc.8 → 24.15.0-rc.9
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-5555e382.js → ModalsWrapper-75d6324d.js} +1 -1
- package/build/esm/{index-43bc7a1a.js → index-56f0d879.js} +26 -18
- package/build/esm/{index-a6b3c6f9.js → index-86793632.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/types/core/src/handler/ClientArticleHandler/index.d.ts +1 -1
- package/build/types/core/src/handler/ClientArticleHandler/index.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 +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-56f0d879.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';
|
|
@@ -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":"24.15.0-rc.
|
|
47
|
+
const env = {"STAGE":"production","VERSION":"24.15.0-rc.9"};
|
|
48
48
|
try {
|
|
49
49
|
if (process) {
|
|
50
50
|
process.env = Object.assign({}, process.env);
|
|
@@ -8073,12 +8073,13 @@ var ClientArticleHandler = /*#__PURE__*/function () {
|
|
|
8073
8073
|
key: "saveProductsSMArticles",
|
|
8074
8074
|
value: function () {
|
|
8075
8075
|
var _saveProductsSMArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, serverUrl, organizationId) {
|
|
8076
|
-
var fullUrl;
|
|
8076
|
+
var fullUrl, response;
|
|
8077
8077
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8078
8078
|
while (1) switch (_context.prev = _context.next) {
|
|
8079
8079
|
case 0:
|
|
8080
8080
|
fullUrl = serverUrl + '/v1/pfisterproducts/smarticle?organizationId=' + organizationId;
|
|
8081
|
-
_context.
|
|
8081
|
+
_context.prev = 1;
|
|
8082
|
+
_context.next = 4;
|
|
8082
8083
|
return axios.post(fullUrl, JSON.stringify({
|
|
8083
8084
|
products: data.products,
|
|
8084
8085
|
removedProductIds: data.removedProductIds,
|
|
@@ -8088,22 +8089,29 @@ var ClientArticleHandler = /*#__PURE__*/function () {
|
|
|
8088
8089
|
Authorization: 'Bearer ' + this.jwt,
|
|
8089
8090
|
'Content-Type': 'application/json'
|
|
8090
8091
|
}
|
|
8091
|
-
}).then(function (res) {
|
|
8092
|
-
if (res.status === 200) {
|
|
8093
|
-
return res.data.products;
|
|
8094
|
-
}
|
|
8095
|
-
})["catch"](function (error) {
|
|
8096
|
-
console.error(error.response.data.error);
|
|
8097
|
-
throw new Error(error.response.data.errorCode + ' - ' + error.response.data.error);
|
|
8098
8092
|
});
|
|
8099
|
-
case
|
|
8100
|
-
_context.sent;
|
|
8101
|
-
|
|
8102
|
-
|
|
8093
|
+
case 4:
|
|
8094
|
+
response = _context.sent;
|
|
8095
|
+
if (!(response.status === 200)) {
|
|
8096
|
+
_context.next = 9;
|
|
8097
|
+
break;
|
|
8098
|
+
}
|
|
8099
|
+
_context.next = 8;
|
|
8100
|
+
return response.data.products;
|
|
8101
|
+
case 8:
|
|
8102
|
+
return _context.abrupt("return", _context.sent);
|
|
8103
|
+
case 9:
|
|
8104
|
+
_context.next = 14;
|
|
8105
|
+
break;
|
|
8106
|
+
case 11:
|
|
8107
|
+
_context.prev = 11;
|
|
8108
|
+
_context.t0 = _context["catch"](1);
|
|
8109
|
+
throw new Error('Unexpected error occurred during saveProductsSMArticles', _context.t0);
|
|
8110
|
+
case 14:
|
|
8103
8111
|
case "end":
|
|
8104
8112
|
return _context.stop();
|
|
8105
8113
|
}
|
|
8106
|
-
}, _callee, this);
|
|
8114
|
+
}, _callee, this, [[1, 11]]);
|
|
8107
8115
|
}));
|
|
8108
8116
|
function saveProductsSMArticles(_x, _x2, _x3) {
|
|
8109
8117
|
return _saveProductsSMArticles.apply(this, arguments);
|
|
@@ -9473,7 +9481,7 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9473
9481
|
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; }
|
|
9474
9482
|
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; }
|
|
9475
9483
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9476
|
-
return import('./ModalsWrapper-
|
|
9484
|
+
return import('./ModalsWrapper-75d6324d.js');
|
|
9477
9485
|
});
|
|
9478
9486
|
function Fullscreen() {
|
|
9479
9487
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
@@ -9921,10 +9929,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
9921
9929
|
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; }
|
|
9922
9930
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9923
9931
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9924
|
-
return import('./index-
|
|
9932
|
+
return import('./index-86793632.js');
|
|
9925
9933
|
});
|
|
9926
9934
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9927
|
-
return import('./ModalsWrapper-
|
|
9935
|
+
return import('./ModalsWrapper-75d6324d.js');
|
|
9928
9936
|
});
|
|
9929
9937
|
function ContentComponent() {
|
|
9930
9938
|
var context = useDivaCoreContext();
|
|
@@ -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-56f0d879.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';
|
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-56f0d879.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';
|
|
@@ -10,6 +10,6 @@ export declare class ClientArticleHandler {
|
|
|
10
10
|
constructor(root: IRootStore);
|
|
11
11
|
get clientArticleService(): string | undefined;
|
|
12
12
|
private get jwt();
|
|
13
|
-
saveProductsSMArticles(data: SaveArticleParams, serverUrl: string, organizationId: string): Promise<
|
|
13
|
+
saveProductsSMArticles(data: SaveArticleParams, serverUrl: string, organizationId: string): Promise<any>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/ClientArticleHandler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,IAAI,oBAAoB,uBAEvB;IACD,OAAO,KAAK,GAAG,GAEd;IAEK,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/handler/ClientArticleHandler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,IAAI,oBAAoB,uBAEvB;IACD,OAAO,KAAK,GAAG,GAEd;IAEK,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;CAyBhG"}
|