@crystaldesign/diva-backoffice 26.3.0-beta.25 → 26.3.0-beta.27
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/index.js
CHANGED
|
@@ -46517,7 +46517,7 @@ var SendToPIM = function SendToPIM(_ref) {
|
|
|
46517
46517
|
var sendToPimUrl = root.configurationStore.sendToPimUrl;
|
|
46518
46518
|
var handleTrigger = /*#__PURE__*/function () {
|
|
46519
46519
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
46520
|
-
var
|
|
46520
|
+
var url, response, text, errMessage, json, _err$message;
|
|
46521
46521
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
46522
46522
|
while (1) switch (_context.prev = _context.next) {
|
|
46523
46523
|
case 0:
|
|
@@ -46532,14 +46532,9 @@ var SendToPIM = function SendToPIM(_ref) {
|
|
|
46532
46532
|
setError(undefined);
|
|
46533
46533
|
setSuccess(undefined);
|
|
46534
46534
|
_context.prev = 6;
|
|
46535
|
-
organizationId = root.dataStore.organizationId;
|
|
46536
|
-
_context.next = 10;
|
|
46537
|
-
return root.dataStore.getApi2SessionGuid(organizationId, sendToPimUrl.trim());
|
|
46538
|
-
case 10:
|
|
46539
|
-
_context.sent;
|
|
46540
46535
|
url = new URL(sendToPimUrl.trim());
|
|
46541
46536
|
url.searchParams.set('function', API_FUNCTION);
|
|
46542
|
-
_context.next =
|
|
46537
|
+
_context.next = 11;
|
|
46543
46538
|
return fetch(url.toString(), {
|
|
46544
46539
|
method: 'POST',
|
|
46545
46540
|
headers: {
|
|
@@ -46548,11 +46543,11 @@ var SendToPIM = function SendToPIM(_ref) {
|
|
|
46548
46543
|
},
|
|
46549
46544
|
body: JSON.stringify({})
|
|
46550
46545
|
});
|
|
46551
|
-
case
|
|
46546
|
+
case 11:
|
|
46552
46547
|
response = _context.sent;
|
|
46553
|
-
_context.next =
|
|
46548
|
+
_context.next = 14;
|
|
46554
46549
|
return response.text();
|
|
46555
|
-
case
|
|
46550
|
+
case 14:
|
|
46556
46551
|
text = _context.sent;
|
|
46557
46552
|
try {
|
|
46558
46553
|
json = JSON.parse(text);
|
|
@@ -46561,27 +46556,27 @@ var SendToPIM = function SendToPIM(_ref) {
|
|
|
46561
46556
|
errMessage = text || "HTTP ".concat(response.status);
|
|
46562
46557
|
}
|
|
46563
46558
|
if (!errMessage) {
|
|
46564
|
-
_context.next =
|
|
46559
|
+
_context.next = 18;
|
|
46565
46560
|
break;
|
|
46566
46561
|
}
|
|
46567
46562
|
throw new Error(errMessage);
|
|
46568
|
-
case
|
|
46563
|
+
case 18:
|
|
46569
46564
|
setSuccess(t('backoffice.sendtopim.success'));
|
|
46570
|
-
_context.next =
|
|
46565
|
+
_context.next = 24;
|
|
46571
46566
|
break;
|
|
46572
|
-
case
|
|
46573
|
-
_context.prev =
|
|
46567
|
+
case 21:
|
|
46568
|
+
_context.prev = 21;
|
|
46574
46569
|
_context.t0 = _context["catch"](6);
|
|
46575
46570
|
setError((_err$message = _context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) !== null && _err$message !== void 0 ? _err$message : t('backoffice.sendtopim.error'));
|
|
46576
|
-
case
|
|
46577
|
-
_context.prev =
|
|
46571
|
+
case 24:
|
|
46572
|
+
_context.prev = 24;
|
|
46578
46573
|
setLoading(false);
|
|
46579
|
-
return _context.finish(
|
|
46580
|
-
case
|
|
46574
|
+
return _context.finish(24);
|
|
46575
|
+
case 27:
|
|
46581
46576
|
case "end":
|
|
46582
46577
|
return _context.stop();
|
|
46583
46578
|
}
|
|
46584
|
-
}, _callee, null, [[6,
|
|
46579
|
+
}, _callee, null, [[6, 21, 24, 27]]);
|
|
46585
46580
|
}));
|
|
46586
46581
|
return function handleTrigger() {
|
|
46587
46582
|
return _ref2.apply(this, arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SendToPIM/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;kCAE0B,KAAK;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SendToPIM/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;kCAE0B,KAAK;;;AAmFhC,wBAAmC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.3.0-beta.
|
|
3
|
+
"version": "26.3.0-beta.27",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.3.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "26.3.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "26.3.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.3.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "26.3.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.3.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.3.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "26.3.0-beta.27",
|
|
19
|
+
"@crystaldesign/content-item": "26.3.0-beta.27",
|
|
20
|
+
"@crystaldesign/diva-core": "26.3.0-beta.27",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.3.0-beta.27",
|
|
22
|
+
"@crystaldesign/media-upload": "26.3.0-beta.27",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.3.0-beta.27",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.3.0-beta.27",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "adbc53c438cea26660fd8c6c5aa4c90659cb778a"
|
|
55
55
|
}
|