@commercetools-frontend-extensions/export-resources-modal 1.0.2 → 1.0.3

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.
@@ -903,9 +903,11 @@ function ExportFileSettings(props) {
903
903
  formik = _useExportResourcesCo.formik;
904
904
 
905
905
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
906
+ var _applicationContext$p;
907
+
906
908
  return {
907
909
  language: applicationContext.dataLocale,
908
- languages: applicationContext.project.languages
910
+ languages: ((_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.languages) || []
909
911
  };
910
912
  }),
911
913
  languages = _useApplicationContex.languages,
@@ -1017,9 +1019,11 @@ function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys__default["d
1017
1019
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$2(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
1018
1020
  function ExportConfirmationModal(props) {
1019
1021
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
1022
+ var _applicationContext$p, _applicationContext$p2;
1023
+
1020
1024
  return {
1021
- projectName: applicationContext.project.name,
1022
- projectKey: applicationContext.project.key
1025
+ projectName: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.name,
1026
+ projectKey: (_applicationContext$p2 = applicationContext.project) === null || _applicationContext$p2 === void 0 ? void 0 : _applicationContext$p2.key
1023
1027
  };
1024
1028
  }),
1025
1029
  projectName = _useApplicationContex.projectName,
@@ -1150,7 +1154,7 @@ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) {
1150
1154
 
1151
1155
  var getExportLogsLink = function getExportLogsLink(projectKey, msg) {
1152
1156
  return jsxRuntime.jsx(uiKit.Link, {
1153
- to: "/".concat(projectKey, "/operations/export-logs"),
1157
+ to: "/".concat(projectKey, "/operations/export/logs"),
1154
1158
  children: msg
1155
1159
  });
1156
1160
  };
@@ -1159,8 +1163,10 @@ function ExportOperationSuccessMessage(_ref) {
1159
1163
  var isShown = _ref.isShown;
1160
1164
 
1161
1165
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
1166
+ var _applicationContext$p;
1167
+
1162
1168
  return {
1163
- projectKey: applicationContext.project.key
1169
+ projectKey: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.key
1164
1170
  };
1165
1171
  }),
1166
1172
  projectKey = _useApplicationContex.projectKey;
@@ -873,9 +873,11 @@ function ExportFileSettings(props) {
873
873
  formik = _useExportResourcesCo.formik;
874
874
 
875
875
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
876
+ var _applicationContext$p;
877
+
876
878
  return {
877
879
  language: applicationContext.dataLocale,
878
- languages: applicationContext.project.languages
880
+ languages: ((_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.languages) || []
879
881
  };
880
882
  }),
881
883
  languages = _useApplicationContex.languages,
@@ -985,9 +987,11 @@ function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys__default["d
985
987
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$2(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
986
988
  function ExportConfirmationModal(props) {
987
989
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
990
+ var _applicationContext$p, _applicationContext$p2;
991
+
988
992
  return {
989
- projectName: applicationContext.project.name,
990
- projectKey: applicationContext.project.key
993
+ projectName: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.name,
994
+ projectKey: (_applicationContext$p2 = applicationContext.project) === null || _applicationContext$p2 === void 0 ? void 0 : _applicationContext$p2.key
991
995
  };
992
996
  }),
993
997
  projectName = _useApplicationContex.projectName,
@@ -1114,7 +1118,7 @@ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) {
1114
1118
 
1115
1119
  var getExportLogsLink = function getExportLogsLink(projectKey, msg) {
1116
1120
  return jsxRuntime.jsx(uiKit.Link, {
1117
- to: "/".concat(projectKey, "/operations/export-logs"),
1121
+ to: "/".concat(projectKey, "/operations/export/logs"),
1118
1122
  children: msg
1119
1123
  });
1120
1124
  };
@@ -1123,8 +1127,10 @@ function ExportOperationSuccessMessage(_ref) {
1123
1127
  var isShown = _ref.isShown;
1124
1128
 
1125
1129
  var _useApplicationContex = applicationShellConnectors.useApplicationContext(function (applicationContext) {
1130
+ var _applicationContext$p;
1131
+
1126
1132
  return {
1127
- projectKey: applicationContext.project.key
1133
+ projectKey: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.key
1128
1134
  };
1129
1135
  }),
1130
1136
  projectKey = _useApplicationContex.projectKey;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-frontend-extensions/export-resources-modal",
3
3
  "description": "Shared export modal for exporting resources",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"