@commercetools-frontend-extensions/export-resources-modal 1.0.2 → 1.0.4
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.
|
@@ -708,7 +708,7 @@ function ownKeys$7(object, enumerableOnly) { var keys = _Object$keys__default["d
|
|
|
708
708
|
|
|
709
709
|
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
710
710
|
|
|
711
|
-
var IconPlaceholder = _styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
711
|
+
var IconPlaceholder = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
712
712
|
target: "e1nl5t3e0"
|
|
713
713
|
} : {
|
|
714
714
|
target: "e1nl5t3e0",
|
|
@@ -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
|
|
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;
|
|
@@ -690,7 +690,7 @@ function ownKeys$7(object, enumerableOnly) { var keys = _Object$keys__default["d
|
|
|
690
690
|
|
|
691
691
|
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
692
692
|
|
|
693
|
-
var IconPlaceholder = _styled__default["default"]("div", {
|
|
693
|
+
var IconPlaceholder = /*#__PURE__*/_styled__default["default"]("div", {
|
|
694
694
|
target: "e1nl5t3e0"
|
|
695
695
|
} )("width:", uiKit.customProperties.spacingM, ";" + ("" ));
|
|
696
696
|
|
|
@@ -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
|
|
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.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "7.19.0",
|
|
21
21
|
"@babel/runtime-corejs3": "7.19.1",
|
|
22
|
-
"@commercetools-frontend/actions-global": "21.
|
|
23
|
-
"@commercetools-frontend/application-components": "21.
|
|
24
|
-
"@commercetools-frontend/application-shell-connectors": "21.
|
|
25
|
-
"@commercetools-frontend/constants": "^21.
|
|
26
|
-
"@commercetools-frontend/jest-preset-mc-app": "21.
|
|
27
|
-
"@commercetools-frontend/sdk": "^21.
|
|
28
|
-
"@commercetools-frontend/sentry": "^21.
|
|
29
|
-
"@commercetools-frontend/ui-kit": "15.
|
|
30
|
-
"@commercetools-uikit/design-system": "^15.
|
|
22
|
+
"@commercetools-frontend/actions-global": "21.21.2",
|
|
23
|
+
"@commercetools-frontend/application-components": "21.21.2",
|
|
24
|
+
"@commercetools-frontend/application-shell-connectors": "21.21.2",
|
|
25
|
+
"@commercetools-frontend/constants": "^21.21.2",
|
|
26
|
+
"@commercetools-frontend/jest-preset-mc-app": "21.21.2",
|
|
27
|
+
"@commercetools-frontend/sdk": "^21.21.2",
|
|
28
|
+
"@commercetools-frontend/sentry": "^21.21.2",
|
|
29
|
+
"@commercetools-frontend/ui-kit": "15.8.0",
|
|
30
|
+
"@commercetools-uikit/design-system": "^15.8.0",
|
|
31
31
|
"@emotion/react": "11.10.4",
|
|
32
32
|
"@emotion/styled": "11.10.4",
|
|
33
33
|
"@formatjs/cli": "4.7.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-intl": "5.25.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@commercetools-frontend/application-shell": "21.
|
|
45
|
+
"@commercetools-frontend/application-shell": "21.21.2",
|
|
46
46
|
"@preconstruct/cli": "^2.2.1",
|
|
47
47
|
"rimraf": "3.0.2"
|
|
48
48
|
}
|