@commercetools-frontend-extensions/unpublish-products-modal 1.2.2 → 1.2.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.
- package/dist/{active-drag-drop-area-5709c481.esm.js → active-drag-drop-area-83aa8e4f.esm.js} +1 -1
- package/dist/{active-drag-drop-area-2b23a825.cjs.prod.js → active-drag-drop-area-d185a08a.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-dfc9a24c.cjs.dev.js → active-drag-drop-area-e06cf383.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +1 -1
- package/dist/enabled-drop-area-94dddc1b.cjs.prod.js +70 -0
- package/dist/enabled-drop-area-c6c2639e.esm.js +68 -0
- package/dist/enabled-drop-area-e67ca3fe.cjs.dev.js +70 -0
- package/dist/{file-dropped-area-ca26707f.cjs.prod.js → file-dropped-area-0d6e8aa7.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-0f0a223c.esm.js → file-dropped-area-47ffbe43.esm.js} +1 -1
- package/dist/{file-dropped-area-f44849bb.cjs.dev.js → file-dropped-area-80912577.cjs.dev.js} +1 -1
- package/dist/{index-46884b7c.cjs.dev.js → index-057e13aa.cjs.dev.js} +52 -51
- package/dist/{index-a2de9e0c.esm.js → index-2c12be32.esm.js} +52 -52
- package/dist/{index-85708701.cjs.prod.js → index-405961f5.cjs.prod.js} +52 -51
- package/package.json +18 -19
- package/dist/enabled-drop-area-755a9ef6.cjs.dev.js +0 -114
- package/dist/enabled-drop-area-9209d2ac.cjs.prod.js +0 -114
- package/dist/enabled-drop-area-a1d62139.esm.js +0 -101
|
@@ -392,11 +392,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
392
392
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
395
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-83aa8e4f.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
396
396
|
|
|
397
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
397
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-c6c2639e.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
398
398
|
|
|
399
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
399
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-47ffbe43.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
400
400
|
|
|
401
401
|
function getDropArea(_ref) {
|
|
402
402
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -957,39 +957,6 @@ const Upload = () => {
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
|
|
960
|
-
function ownKeys$5(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
961
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
962
|
-
var FileIcon = function FileIcon(props) {
|
|
963
|
-
return jsxs("svg", _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
964
|
-
children: [jsx("mask", {
|
|
965
|
-
id: "a",
|
|
966
|
-
style: {
|
|
967
|
-
maskType: "alpha"
|
|
968
|
-
},
|
|
969
|
-
maskUnits: "userSpaceOnUse",
|
|
970
|
-
x: "0",
|
|
971
|
-
y: "0",
|
|
972
|
-
width: "32",
|
|
973
|
-
height: "32",
|
|
974
|
-
children: jsx("path", {
|
|
975
|
-
fill: "#D9D9D9",
|
|
976
|
-
d: "M0 0h32v32H0z"
|
|
977
|
-
})
|
|
978
|
-
}), jsx("g", {
|
|
979
|
-
mask: "url(#a)",
|
|
980
|
-
children: jsx("path", {
|
|
981
|
-
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
982
|
-
fill: "#B1ACFF"
|
|
983
|
-
})
|
|
984
|
-
})]
|
|
985
|
-
}));
|
|
986
|
-
};
|
|
987
|
-
FileIcon.defaultProps = {
|
|
988
|
-
width: "32",
|
|
989
|
-
height: "32",
|
|
990
|
-
fill: "none",
|
|
991
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
992
|
-
};
|
|
993
960
|
const Uploading = () => {
|
|
994
961
|
const intl = useIntl();
|
|
995
962
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
@@ -1064,15 +1031,15 @@ var messages$1 = defineMessages({
|
|
|
1064
1031
|
}
|
|
1065
1032
|
});
|
|
1066
1033
|
|
|
1067
|
-
function ownKeys$
|
|
1068
|
-
function _objectSpread$
|
|
1034
|
+
function ownKeys$5(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1035
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$5(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$5(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1069
1036
|
const getColumns = () => [{
|
|
1070
1037
|
key: 'errorType',
|
|
1071
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
1038
|
+
label: jsx(FormattedMessage, _objectSpread$5({}, messages$1.errorType)),
|
|
1072
1039
|
width: 'max-content'
|
|
1073
1040
|
}, {
|
|
1074
1041
|
key: 'details',
|
|
1075
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
1042
|
+
label: jsx(FormattedMessage, _objectSpread$5({}, messages$1.details))
|
|
1076
1043
|
}];
|
|
1077
1044
|
const UploadErrorTable = props => {
|
|
1078
1045
|
var _context;
|
|
@@ -1115,8 +1082,8 @@ function itemRenderer(item, column) {
|
|
|
1115
1082
|
}
|
|
1116
1083
|
}
|
|
1117
1084
|
|
|
1118
|
-
function ownKeys$
|
|
1119
|
-
function _objectSpread$
|
|
1085
|
+
function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1086
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1120
1087
|
const UploadErrorsModal = () => {
|
|
1121
1088
|
const intl = useIntl();
|
|
1122
1089
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
@@ -1134,7 +1101,7 @@ const UploadErrorsModal = () => {
|
|
|
1134
1101
|
scale: "l",
|
|
1135
1102
|
children: [jsx(Masking.Mask, {
|
|
1136
1103
|
children: jsx(Text.Body, {
|
|
1137
|
-
intlMessage: _objectSpread$
|
|
1104
|
+
intlMessage: _objectSpread$4(_objectSpread$4({}, messages$1.uploadErrorDescription), {}, {
|
|
1138
1105
|
values: {
|
|
1139
1106
|
fileName: state.droppedFile?.name,
|
|
1140
1107
|
errorsCount: intl.formatNumber(errorsCount),
|
|
@@ -1206,8 +1173,8 @@ var messages = defineMessages({
|
|
|
1206
1173
|
}
|
|
1207
1174
|
});
|
|
1208
1175
|
|
|
1209
|
-
function ownKeys$
|
|
1210
|
-
function _objectSpread$
|
|
1176
|
+
function ownKeys$3(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1177
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1211
1178
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
1212
1179
|
const getNewLine = () => jsx("br", {}, "break");
|
|
1213
1180
|
const getImportLogsLink = (msg, projectKey) => jsx(Link, {
|
|
@@ -1225,7 +1192,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
1225
1192
|
const ImportRunningTextNotification = props => jsx("div", {
|
|
1226
1193
|
css: _ref2,
|
|
1227
1194
|
children: jsx(Text.Body, {
|
|
1228
|
-
intlMessage: _objectSpread$
|
|
1195
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.importStarted), {}, {
|
|
1229
1196
|
values: {
|
|
1230
1197
|
newline: getNewLine,
|
|
1231
1198
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1245,7 +1212,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
1245
1212
|
const ImportPreparingTextNotification = props => jsx("div", {
|
|
1246
1213
|
css: _ref,
|
|
1247
1214
|
children: jsx(Text.Body, {
|
|
1248
|
-
intlMessage: _objectSpread$
|
|
1215
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.preparingImport), {}, {
|
|
1249
1216
|
values: {
|
|
1250
1217
|
newline: getNewLine,
|
|
1251
1218
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1329,7 +1296,7 @@ const UnpublishProductsConfirmationModal = () => {
|
|
|
1329
1296
|
children: jsxs(Spacings.Stack, {
|
|
1330
1297
|
scale: "xl",
|
|
1331
1298
|
children: [jsx(Text.Body, {
|
|
1332
|
-
intlMessage: _objectSpread$
|
|
1299
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationText), {}, {
|
|
1333
1300
|
values: {
|
|
1334
1301
|
projectName: projectName,
|
|
1335
1302
|
// TODO: Replace with actual count
|
|
@@ -1352,8 +1319,8 @@ function getBold$1(msg) {
|
|
|
1352
1319
|
}, crypto.randomUUID());
|
|
1353
1320
|
}
|
|
1354
1321
|
|
|
1355
|
-
function ownKeys$
|
|
1356
|
-
function _objectSpread$
|
|
1322
|
+
function ownKeys$2(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1323
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1357
1324
|
function UploadPreviewModal() {
|
|
1358
1325
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
1359
1326
|
state = _useUnpublishProducts.state,
|
|
@@ -1387,7 +1354,7 @@ function UploadPreviewModal() {
|
|
|
1387
1354
|
size: "40",
|
|
1388
1355
|
color: "neutral60"
|
|
1389
1356
|
}), jsx(Text.Body, {
|
|
1390
|
-
intlMessage: _objectSpread$
|
|
1357
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.productsToBeUnpublished), {}, {
|
|
1391
1358
|
values: {
|
|
1392
1359
|
count: intl.formatNumber(state.uploadFileResponse?.rowsCount),
|
|
1393
1360
|
b: getBold
|
|
@@ -1420,6 +1387,39 @@ const CurrentStep = () => {
|
|
|
1420
1387
|
return steps[state.currentStep] || null;
|
|
1421
1388
|
};
|
|
1422
1389
|
|
|
1390
|
+
function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1391
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1392
|
+
const FileIcon = props => jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1393
|
+
width: "32",
|
|
1394
|
+
height: "32",
|
|
1395
|
+
viewBox: "0 0 32 32",
|
|
1396
|
+
fill: "none",
|
|
1397
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1398
|
+
}, props), {}, {
|
|
1399
|
+
children: [jsx("mask", {
|
|
1400
|
+
id: "mask0_17_6643",
|
|
1401
|
+
style: {
|
|
1402
|
+
maskType: 'alpha'
|
|
1403
|
+
},
|
|
1404
|
+
maskUnits: "userSpaceOnUse",
|
|
1405
|
+
x: "0",
|
|
1406
|
+
y: "0",
|
|
1407
|
+
width: "32",
|
|
1408
|
+
height: "32",
|
|
1409
|
+
children: jsx("rect", {
|
|
1410
|
+
width: "32",
|
|
1411
|
+
height: "32",
|
|
1412
|
+
fill: "#D9D9D9"
|
|
1413
|
+
})
|
|
1414
|
+
}), jsx("g", {
|
|
1415
|
+
mask: "url(#mask0_17_6643)",
|
|
1416
|
+
children: jsx("path", {
|
|
1417
|
+
d: "M14.6667 25.3333H17.3333V19.7667L19.4667 21.9L21.3333 20L16 14.6667L10.6667 20L12.5667 21.8667L14.6667 19.7667V25.3333ZM8 29.3333C7.26667 29.3333 6.63889 29.0722 6.11667 28.55C5.59444 28.0278 5.33333 27.4 5.33333 26.6667V5.33332C5.33333 4.59999 5.59444 3.97221 6.11667 3.44999C6.63889 2.92777 7.26667 2.66666 8 2.66666H18.6667L26.6667 10.6667V26.6667C26.6667 27.4 26.4056 28.0278 25.8833 28.55C25.3611 29.0722 24.7333 29.3333 24 29.3333H8ZM17.3333 12H24L17.3333 5.33332V12Z",
|
|
1418
|
+
fill: "#B1ACFF"
|
|
1419
|
+
})
|
|
1420
|
+
})]
|
|
1421
|
+
}));
|
|
1422
|
+
|
|
1423
1423
|
const getChunkImport = locale => {
|
|
1424
1424
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1425
1425
|
switch (intlLocale) {
|
|
@@ -1505,4 +1505,4 @@ const UnpublishProductsModal = props => {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
UnpublishProductsModal.displayName = 'UnpublishProductsModal';
|
|
1507
1507
|
|
|
1508
|
-
export { EnabledDropArea as E, FileDropped as F, UnpublishProductsModal as U, messages$4 as m, useUnpublishProductsContext as u };
|
|
1508
|
+
export { EnabledDropArea as E, FileDropped as F, UnpublishProductsModal as U, FileIcon as a, messages$4 as m, useUnpublishProductsContext as u };
|
|
@@ -414,11 +414,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
414
414
|
return /*#__PURE__*/react.css("" , "" );
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
417
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-d185a08a.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
418
418
|
|
|
419
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
419
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-94dddc1b.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
420
420
|
|
|
421
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
421
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-0d6e8aa7.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
422
422
|
|
|
423
423
|
function getDropArea(_ref) {
|
|
424
424
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -979,39 +979,6 @@ const Upload = () => {
|
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
-
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
983
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
984
|
-
var FileIcon = function FileIcon(props) {
|
|
985
|
-
return jsxRuntime.jsxs("svg", _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
986
|
-
children: [jsxRuntime.jsx("mask", {
|
|
987
|
-
id: "a",
|
|
988
|
-
style: {
|
|
989
|
-
maskType: "alpha"
|
|
990
|
-
},
|
|
991
|
-
maskUnits: "userSpaceOnUse",
|
|
992
|
-
x: "0",
|
|
993
|
-
y: "0",
|
|
994
|
-
width: "32",
|
|
995
|
-
height: "32",
|
|
996
|
-
children: jsxRuntime.jsx("path", {
|
|
997
|
-
fill: "#D9D9D9",
|
|
998
|
-
d: "M0 0h32v32H0z"
|
|
999
|
-
})
|
|
1000
|
-
}), jsxRuntime.jsx("g", {
|
|
1001
|
-
mask: "url(#a)",
|
|
1002
|
-
children: jsxRuntime.jsx("path", {
|
|
1003
|
-
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
1004
|
-
fill: "#B1ACFF"
|
|
1005
|
-
})
|
|
1006
|
-
})]
|
|
1007
|
-
}));
|
|
1008
|
-
};
|
|
1009
|
-
FileIcon.defaultProps = {
|
|
1010
|
-
width: "32",
|
|
1011
|
-
height: "32",
|
|
1012
|
-
fill: "none",
|
|
1013
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1014
|
-
};
|
|
1015
982
|
const Uploading = () => {
|
|
1016
983
|
const intl = reactIntl.useIntl();
|
|
1017
984
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
@@ -1086,15 +1053,15 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
1086
1053
|
}
|
|
1087
1054
|
});
|
|
1088
1055
|
|
|
1089
|
-
function ownKeys$
|
|
1090
|
-
function _objectSpread$
|
|
1056
|
+
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1057
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$5(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1091
1058
|
const getColumns = () => [{
|
|
1092
1059
|
key: 'errorType',
|
|
1093
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
1060
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$5({}, messages$1.errorType)),
|
|
1094
1061
|
width: 'max-content'
|
|
1095
1062
|
}, {
|
|
1096
1063
|
key: 'details',
|
|
1097
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
1064
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$5({}, messages$1.details))
|
|
1098
1065
|
}];
|
|
1099
1066
|
const UploadErrorTable = props => {
|
|
1100
1067
|
var _context;
|
|
@@ -1137,8 +1104,8 @@ function itemRenderer(item, column) {
|
|
|
1137
1104
|
}
|
|
1138
1105
|
}
|
|
1139
1106
|
|
|
1140
|
-
function ownKeys$
|
|
1141
|
-
function _objectSpread$
|
|
1107
|
+
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1108
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1142
1109
|
const UploadErrorsModal = () => {
|
|
1143
1110
|
const intl = reactIntl.useIntl();
|
|
1144
1111
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
@@ -1156,7 +1123,7 @@ const UploadErrorsModal = () => {
|
|
|
1156
1123
|
scale: "l",
|
|
1157
1124
|
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1158
1125
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1159
|
-
intlMessage: _objectSpread$
|
|
1126
|
+
intlMessage: _objectSpread$4(_objectSpread$4({}, messages$1.uploadErrorDescription), {}, {
|
|
1160
1127
|
values: {
|
|
1161
1128
|
fileName: state.droppedFile?.name,
|
|
1162
1129
|
errorsCount: intl.formatNumber(errorsCount),
|
|
@@ -1228,8 +1195,8 @@ var messages = reactIntl.defineMessages({
|
|
|
1228
1195
|
}
|
|
1229
1196
|
});
|
|
1230
1197
|
|
|
1231
|
-
function ownKeys$
|
|
1232
|
-
function _objectSpread$
|
|
1198
|
+
function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1199
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1233
1200
|
const getNewLine = () => jsxRuntime.jsx("br", {}, "break");
|
|
1234
1201
|
const getImportLogsLink = (msg, projectKey) => jsxRuntime.jsx(uiKit.Link, {
|
|
1235
1202
|
to: `/${projectKey}/operations/import/logs`,
|
|
@@ -1242,7 +1209,7 @@ var _ref2 = {
|
|
|
1242
1209
|
const ImportRunningTextNotification = props => jsxRuntime.jsx("div", {
|
|
1243
1210
|
css: _ref2,
|
|
1244
1211
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1245
|
-
intlMessage: _objectSpread$
|
|
1212
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.importStarted), {}, {
|
|
1246
1213
|
values: {
|
|
1247
1214
|
newline: getNewLine,
|
|
1248
1215
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1258,7 +1225,7 @@ var _ref = {
|
|
|
1258
1225
|
const ImportPreparingTextNotification = props => jsxRuntime.jsx("div", {
|
|
1259
1226
|
css: _ref,
|
|
1260
1227
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1261
|
-
intlMessage: _objectSpread$
|
|
1228
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.preparingImport), {}, {
|
|
1262
1229
|
values: {
|
|
1263
1230
|
newline: getNewLine,
|
|
1264
1231
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1342,7 +1309,7 @@ const UnpublishProductsConfirmationModal = () => {
|
|
|
1342
1309
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1343
1310
|
scale: "xl",
|
|
1344
1311
|
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1345
|
-
intlMessage: _objectSpread$
|
|
1312
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationText), {}, {
|
|
1346
1313
|
values: {
|
|
1347
1314
|
projectName: projectName,
|
|
1348
1315
|
// TODO: Replace with actual count
|
|
@@ -1365,8 +1332,8 @@ function getBold$1(msg) {
|
|
|
1365
1332
|
}, crypto.randomUUID());
|
|
1366
1333
|
}
|
|
1367
1334
|
|
|
1368
|
-
function ownKeys$
|
|
1369
|
-
function _objectSpread$
|
|
1335
|
+
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1336
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1370
1337
|
function UploadPreviewModal() {
|
|
1371
1338
|
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
1372
1339
|
state = _useUnpublishProducts.state,
|
|
@@ -1400,7 +1367,7 @@ function UploadPreviewModal() {
|
|
|
1400
1367
|
size: "40",
|
|
1401
1368
|
color: "neutral60"
|
|
1402
1369
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1403
|
-
intlMessage: _objectSpread$
|
|
1370
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.productsToBeUnpublished), {}, {
|
|
1404
1371
|
values: {
|
|
1405
1372
|
count: intl.formatNumber(state.uploadFileResponse?.rowsCount),
|
|
1406
1373
|
b: getBold
|
|
@@ -1433,6 +1400,39 @@ const CurrentStep = () => {
|
|
|
1433
1400
|
return steps[state.currentStep] || null;
|
|
1434
1401
|
};
|
|
1435
1402
|
|
|
1403
|
+
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1404
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1405
|
+
const FileIcon = props => jsxRuntime.jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1406
|
+
width: "32",
|
|
1407
|
+
height: "32",
|
|
1408
|
+
viewBox: "0 0 32 32",
|
|
1409
|
+
fill: "none",
|
|
1410
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1411
|
+
}, props), {}, {
|
|
1412
|
+
children: [jsxRuntime.jsx("mask", {
|
|
1413
|
+
id: "mask0_17_6643",
|
|
1414
|
+
style: {
|
|
1415
|
+
maskType: 'alpha'
|
|
1416
|
+
},
|
|
1417
|
+
maskUnits: "userSpaceOnUse",
|
|
1418
|
+
x: "0",
|
|
1419
|
+
y: "0",
|
|
1420
|
+
width: "32",
|
|
1421
|
+
height: "32",
|
|
1422
|
+
children: jsxRuntime.jsx("rect", {
|
|
1423
|
+
width: "32",
|
|
1424
|
+
height: "32",
|
|
1425
|
+
fill: "#D9D9D9"
|
|
1426
|
+
})
|
|
1427
|
+
}), jsxRuntime.jsx("g", {
|
|
1428
|
+
mask: "url(#mask0_17_6643)",
|
|
1429
|
+
children: jsxRuntime.jsx("path", {
|
|
1430
|
+
d: "M14.6667 25.3333H17.3333V19.7667L19.4667 21.9L21.3333 20L16 14.6667L10.6667 20L12.5667 21.8667L14.6667 19.7667V25.3333ZM8 29.3333C7.26667 29.3333 6.63889 29.0722 6.11667 28.55C5.59444 28.0278 5.33333 27.4 5.33333 26.6667V5.33332C5.33333 4.59999 5.59444 3.97221 6.11667 3.44999C6.63889 2.92777 7.26667 2.66666 8 2.66666H18.6667L26.6667 10.6667V26.6667C26.6667 27.4 26.4056 28.0278 25.8833 28.55C25.3611 29.0722 24.7333 29.3333 24 29.3333H8ZM17.3333 12H24L17.3333 5.33332V12Z",
|
|
1431
|
+
fill: "#B1ACFF"
|
|
1432
|
+
})
|
|
1433
|
+
})]
|
|
1434
|
+
}));
|
|
1435
|
+
|
|
1436
1436
|
const getChunkImport = locale => {
|
|
1437
1437
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1438
1438
|
switch (intlLocale) {
|
|
@@ -1520,6 +1520,7 @@ UnpublishProductsModal.displayName = 'UnpublishProductsModal';
|
|
|
1520
1520
|
|
|
1521
1521
|
exports.EnabledDropArea = EnabledDropArea;
|
|
1522
1522
|
exports.FileDropped = FileDropped;
|
|
1523
|
+
exports.FileIcon = FileIcon;
|
|
1523
1524
|
exports.UnpublishProductsModal = UnpublishProductsModal;
|
|
1524
1525
|
exports.messages = messages$4;
|
|
1525
1526
|
exports.useUnpublishProductsContext = useUnpublishProductsContext;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/unpublish-products-modal",
|
|
3
3
|
"description": "Shared import modal for unpublishing products",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,13 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.27.
|
|
19
|
-
"@babel/runtime-corejs3": "7.27.
|
|
18
|
+
"@babel/runtime": "7.27.1",
|
|
19
|
+
"@babel/runtime-corejs3": "7.27.1",
|
|
20
20
|
"@commercetools/importapi-sdk": "5.20.0",
|
|
21
21
|
"@emotion/react": "11.14.0",
|
|
22
22
|
"@emotion/styled": "11.14.0",
|
|
23
|
-
"@formatjs/cli": "6.
|
|
24
|
-
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
23
|
+
"@formatjs/cli": "6.7.1",
|
|
25
24
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
26
25
|
"jest": "29.7.0",
|
|
27
26
|
"lodash": "4.17.21",
|
|
@@ -63,20 +62,20 @@
|
|
|
63
62
|
"rimraf": "6.0.1"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
|
-
"@commercetools-frontend/actions-global": "23.x || fec-156-react19",
|
|
67
|
-
"@commercetools-frontend/application-components": "23.x || fec-156-react19",
|
|
68
|
-
"@commercetools-frontend/application-shell": "23.x || fec-156-react19",
|
|
69
|
-
"@commercetools-frontend/application-shell-connectors": "23.x || fec-156-react19",
|
|
70
|
-
"@commercetools-frontend/constants": "23.x || fec-156-react19",
|
|
71
|
-
"@commercetools-frontend/fullstory": "2.x || 3.x || react-19-migration",
|
|
72
|
-
"@commercetools-frontend/i18n": "23.x || fec-156-react19",
|
|
73
|
-
"@commercetools-frontend/jest-preset-mc-app": "23.x || fec-156-react19",
|
|
74
|
-
"@commercetools-frontend/permissions": "23.x || fec-156-react19",
|
|
75
|
-
"@commercetools-frontend/sdk": "23.x || fec-156-react19",
|
|
76
|
-
"@commercetools-frontend/sentry": "23.x || fec-156-react19",
|
|
77
|
-
"@commercetools-frontend/ui-kit": "19.x || fec-155-react-19",
|
|
78
|
-
"@commercetools-uikit/design-system": "19.x || fec-155-react-19",
|
|
79
|
-
"@commercetools-uikit/icons": "19.x || fec-155-react-19",
|
|
65
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x || fec-156-react19",
|
|
66
|
+
"@commercetools-frontend/application-components": "23.x || 24.x || fec-156-react19",
|
|
67
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x || fec-156-react19",
|
|
68
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x || fec-156-react19",
|
|
69
|
+
"@commercetools-frontend/constants": "23.x || 24.x || fec-156-react19",
|
|
70
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x || react-19-migration",
|
|
71
|
+
"@commercetools-frontend/i18n": "23.x || 24.x || fec-156-react19",
|
|
72
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x || fec-156-react19",
|
|
73
|
+
"@commercetools-frontend/permissions": "23.x || 24.x || fec-156-react19",
|
|
74
|
+
"@commercetools-frontend/sdk": "23.x || 24.x || fec-156-react19",
|
|
75
|
+
"@commercetools-frontend/sentry": "23.x || 24.x || fec-156-react19",
|
|
76
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x || fec-155-react-19",
|
|
77
|
+
"@commercetools-uikit/design-system": "19.x || 20.x || fec-155-react-19",
|
|
78
|
+
"@commercetools-uikit/icons": "19.x || 20.x || fec-155-react-19",
|
|
80
79
|
"react": "17.x || 19.x",
|
|
81
80
|
"react-intl": "6.x || 7.x",
|
|
82
81
|
"react-redux": "7.x",
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
4
|
-
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
5
|
-
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
6
|
-
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
7
|
-
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
8
|
-
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
9
|
-
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
10
|
-
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
11
|
-
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
|
-
require('react');
|
|
13
|
-
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
14
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-46884b7c.cjs.dev.js');
|
|
15
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
|
-
require('react-intl');
|
|
17
|
-
require('@commercetools-frontend/application-shell-connectors');
|
|
18
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
19
|
-
require('@commercetools-frontend/sdk');
|
|
20
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
21
|
-
require('@commercetools-frontend/constants');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
25
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
26
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
27
|
-
require('papaparse');
|
|
28
|
-
require('@commercetools-frontend/application-components');
|
|
29
|
-
require('@commercetools-frontend/fullstory');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
-
require('react-dropzone');
|
|
32
|
-
require('@commercetools-frontend/actions-global');
|
|
33
|
-
require('@emotion/styled/base');
|
|
34
|
-
require('@emotion/react');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
-
require('@commercetools-frontend/sentry');
|
|
43
|
-
require('@commercetools-frontend/application-shell');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
48
|
-
|
|
49
|
-
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
50
|
-
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
51
|
-
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
52
|
-
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
53
|
-
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
54
|
-
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
55
|
-
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
56
|
-
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
57
|
-
|
|
58
|
-
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
60
|
-
var FileIcon = function FileIcon(props) {
|
|
61
|
-
return jsxRuntime.jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
62
|
-
children: [jsxRuntime.jsx("mask", {
|
|
63
|
-
id: "a",
|
|
64
|
-
style: {
|
|
65
|
-
maskType: "alpha"
|
|
66
|
-
},
|
|
67
|
-
maskUnits: "userSpaceOnUse",
|
|
68
|
-
x: "0",
|
|
69
|
-
y: "0",
|
|
70
|
-
width: "32",
|
|
71
|
-
height: "32",
|
|
72
|
-
children: jsxRuntime.jsx("path", {
|
|
73
|
-
fill: "#D9D9D9",
|
|
74
|
-
d: "M0 0h32v32H0z"
|
|
75
|
-
})
|
|
76
|
-
}), jsxRuntime.jsx("g", {
|
|
77
|
-
mask: "url(#a)",
|
|
78
|
-
children: jsxRuntime.jsx("path", {
|
|
79
|
-
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
80
|
-
fill: "#B1ACFF"
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
83
|
-
}));
|
|
84
|
-
};
|
|
85
|
-
FileIcon.defaultProps = {
|
|
86
|
-
width: "32",
|
|
87
|
-
height: "32",
|
|
88
|
-
fill: "none",
|
|
89
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
90
|
-
};
|
|
91
|
-
function EnabledDropArea() {
|
|
92
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
93
|
-
alignItems: "center",
|
|
94
|
-
justifyContent: "center",
|
|
95
|
-
scale: "s",
|
|
96
|
-
children: [jsxRuntime.jsx(FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
97
|
-
alignItems: "center",
|
|
98
|
-
scale: "s",
|
|
99
|
-
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
100
|
-
as: "h4",
|
|
101
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.dragAndDropCSV
|
|
102
|
-
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
103
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.or
|
|
104
|
-
}), jsxRuntime.jsx(uiKit.Link, {
|
|
105
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.browseButton,
|
|
106
|
-
tone: "secondary",
|
|
107
|
-
to: "",
|
|
108
|
-
onClick: ev => ev.preventDefault()
|
|
109
|
-
})]
|
|
110
|
-
})]
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
exports["default"] = EnabledDropArea;
|