@crystaldesign/diva-backoffice 25.8.0-beta.15 → 25.8.0-beta.17

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.
@@ -31773,7 +31773,7 @@ function PublishCustomCell (_ref) {
31773
31773
  var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
31774
31774
  var _onChange = /*#__PURE__*/function () {
31775
31775
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
31776
- var loadingTimeout, response;
31776
+ var loadingTimeout, response, _errorText, errorText, json;
31777
31777
  return _regeneratorRuntime.wrap(function _callee$(_context) {
31778
31778
  while (1) switch (_context.prev = _context.next) {
31779
31779
  case 0:
@@ -31810,7 +31810,7 @@ function PublishCustomCell (_ref) {
31810
31810
  break;
31811
31811
  }
31812
31812
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
31813
- _context.next = 22;
31813
+ _context.next = 34;
31814
31814
  break;
31815
31815
  case 17:
31816
31816
  if (!(response.status == 200)) {
@@ -31818,30 +31818,46 @@ function PublishCustomCell (_ref) {
31818
31818
  break;
31819
31819
  }
31820
31820
  modalState.closeModal();
31821
- _context.next = 22;
31821
+ _context.next = 34;
31822
31822
  break;
31823
31823
  case 21:
31824
- throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31825
- case 22:
31824
+ _context.prev = 21;
31825
+ _context.next = 24;
31826
+ return response.json();
31827
+ case 24:
31828
+ json = _context.sent;
31829
+ errorText = json.error;
31830
+ _context.next = 33;
31831
+ break;
31832
+ case 28:
31833
+ _context.prev = 28;
31834
+ _context.t0 = _context["catch"](21);
31835
+ _context.next = 32;
31836
+ return response.text();
31837
+ case 32:
31838
+ errorText = _context.sent;
31839
+ case 33:
31840
+ throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
31841
+ case 34:
31826
31842
  context === null || context === void 0 || context.reset({
31827
31843
  context: context,
31828
31844
  api: api
31829
31845
  });
31830
- _context.next = 28;
31846
+ _context.next = 40;
31831
31847
  break;
31832
- case 25:
31833
- _context.prev = 25;
31834
- _context.t0 = _context["catch"](2);
31835
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
31836
- case 28:
31837
- _context.prev = 28;
31848
+ case 37:
31849
+ _context.prev = 37;
31850
+ _context.t1 = _context["catch"](2);
31851
+ modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t1 instanceof Error ? _context.t1.message : String(_context.t1)));
31852
+ case 40:
31853
+ _context.prev = 40;
31838
31854
  isLoading(false);
31839
- return _context.finish(28);
31840
- case 31:
31855
+ return _context.finish(40);
31856
+ case 43:
31841
31857
  case "end":
31842
31858
  return _context.stop();
31843
31859
  }
31844
- }, _callee, null, [[2, 25, 28, 31]]);
31860
+ }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31845
31861
  }));
31846
31862
  return function onChange(_x) {
31847
31863
  return _ref2.apply(this, arguments);
@@ -1 +1 @@
1
- {"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,GACX,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAAC,0BAyEhG"}
1
+ {"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,GACX,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAAC,0BAgFhG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.8.0-beta.15",
3
+ "version": "25.8.0-beta.17",
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": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.8.0-beta.15",
19
- "@crystaldesign/content-item": "25.8.0-beta.15",
20
- "@crystaldesign/diva-core": "25.8.0-beta.15",
21
- "@crystaldesign/diva-utils": "25.8.0-beta.15",
22
- "@crystaldesign/media-upload": "25.8.0-beta.15",
23
- "@crystaldesign/rtf-editor": "25.8.0-beta.15",
24
- "@crystaldesign/spreadsheet": "25.8.0-beta.15",
18
+ "@crystaldesign/content-box": "25.8.0-beta.17",
19
+ "@crystaldesign/content-item": "25.8.0-beta.17",
20
+ "@crystaldesign/diva-core": "25.8.0-beta.17",
21
+ "@crystaldesign/diva-utils": "25.8.0-beta.17",
22
+ "@crystaldesign/media-upload": "25.8.0-beta.17",
23
+ "@crystaldesign/rtf-editor": "25.8.0-beta.17",
24
+ "@crystaldesign/spreadsheet": "25.8.0-beta.17",
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": "bf79de9df314c4ae32cd6d5f778cc9b4322aad95"
54
+ "gitHead": "3187599d81f072e4d84d83d1732fe4bce8eac2bc"
55
55
  }