@commercetools-frontend-extensions/delete-resources-modal 1.1.1 → 1.1.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-7f1c185e.cjs.prod.js → active-drag-drop-area-02d32e56.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-425ffc84.esm.js → active-drag-drop-area-92c5e785.esm.js} +1 -1
- package/dist/{active-drag-drop-area-934f9243.cjs.dev.js → active-drag-drop-area-ae07a99f.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.esm.js +1 -1
- package/dist/enabled-drop-area-5a49cc54.esm.js +69 -0
- package/dist/enabled-drop-area-8c18859d.cjs.prod.js +71 -0
- package/dist/enabled-drop-area-e89e781d.cjs.dev.js +71 -0
- package/dist/{file-dropped-area-15dd2016.esm.js → file-dropped-area-59c4b6b7.esm.js} +1 -1
- package/dist/{file-dropped-area-dda961f6.cjs.dev.js → file-dropped-area-a50c2310.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-6965bd1a.cjs.prod.js → file-dropped-area-e4770d95.cjs.prod.js} +1 -1
- package/dist/{index-916b1e2a.cjs.dev.js → index-6a1f6395.cjs.dev.js} +53 -52
- package/dist/{index-6d00fc30.cjs.prod.js → index-8e75600e.cjs.prod.js} +53 -52
- package/dist/{index-bf8624d0.esm.js → index-c60573c8.esm.js} +53 -53
- package/package.json +19 -20
- package/dist/enabled-drop-area-0c52ffdc.esm.js +0 -102
- package/dist/enabled-drop-area-3a3c80f6.cjs.dev.js +0 -115
- package/dist/enabled-drop-area-e145b93a.cjs.prod.js +0 -115
|
@@ -676,11 +676,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
676
676
|
return /*#__PURE__*/react.css("" , "" );
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
679
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-02d32e56.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
680
680
|
|
|
681
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
681
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-8c18859d.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
682
682
|
|
|
683
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
683
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-e4770d95.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
684
684
|
|
|
685
685
|
function getDropArea(_ref) {
|
|
686
686
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1220,39 +1220,6 @@ const Upload = () => {
|
|
|
1220
1220
|
});
|
|
1221
1221
|
};
|
|
1222
1222
|
|
|
1223
|
-
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; }
|
|
1224
|
-
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; }
|
|
1225
|
-
var FileIcon = function FileIcon(props) {
|
|
1226
|
-
return jsxRuntime.jsxs("svg", _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
1227
|
-
children: [jsxRuntime.jsx("mask", {
|
|
1228
|
-
id: "a",
|
|
1229
|
-
style: {
|
|
1230
|
-
maskType: "alpha"
|
|
1231
|
-
},
|
|
1232
|
-
maskUnits: "userSpaceOnUse",
|
|
1233
|
-
x: "0",
|
|
1234
|
-
y: "0",
|
|
1235
|
-
width: "32",
|
|
1236
|
-
height: "32",
|
|
1237
|
-
children: jsxRuntime.jsx("path", {
|
|
1238
|
-
fill: "#D9D9D9",
|
|
1239
|
-
d: "M0 0h32v32H0z"
|
|
1240
|
-
})
|
|
1241
|
-
}), jsxRuntime.jsx("g", {
|
|
1242
|
-
mask: "url(#a)",
|
|
1243
|
-
children: jsxRuntime.jsx("path", {
|
|
1244
|
-
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",
|
|
1245
|
-
fill: "#B1ACFF"
|
|
1246
|
-
})
|
|
1247
|
-
})]
|
|
1248
|
-
}));
|
|
1249
|
-
};
|
|
1250
|
-
FileIcon.defaultProps = {
|
|
1251
|
-
width: "32",
|
|
1252
|
-
height: "32",
|
|
1253
|
-
fill: "none",
|
|
1254
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1255
|
-
};
|
|
1256
1223
|
const Uploading = () => {
|
|
1257
1224
|
const intl = reactIntl.useIntl();
|
|
1258
1225
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
@@ -1327,15 +1294,15 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
1327
1294
|
}
|
|
1328
1295
|
});
|
|
1329
1296
|
|
|
1330
|
-
function ownKeys$
|
|
1331
|
-
function _objectSpread$
|
|
1297
|
+
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; }
|
|
1298
|
+
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; }
|
|
1332
1299
|
const getColumns = () => [{
|
|
1333
1300
|
key: 'errorType',
|
|
1334
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
1301
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$5({}, messages$1.errorType)),
|
|
1335
1302
|
width: 'max-content'
|
|
1336
1303
|
}, {
|
|
1337
1304
|
key: 'details',
|
|
1338
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
1305
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$5({}, messages$1.details))
|
|
1339
1306
|
}];
|
|
1340
1307
|
const UploadErrorTable = props => {
|
|
1341
1308
|
var _context;
|
|
@@ -1378,8 +1345,8 @@ function itemRenderer(item, column) {
|
|
|
1378
1345
|
}
|
|
1379
1346
|
}
|
|
1380
1347
|
|
|
1381
|
-
function ownKeys$
|
|
1382
|
-
function _objectSpread$
|
|
1348
|
+
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; }
|
|
1349
|
+
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; }
|
|
1383
1350
|
const UploadErrorsModal = () => {
|
|
1384
1351
|
const intl = reactIntl.useIntl();
|
|
1385
1352
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
@@ -1397,7 +1364,7 @@ const UploadErrorsModal = () => {
|
|
|
1397
1364
|
scale: "l",
|
|
1398
1365
|
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1399
1366
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1400
|
-
intlMessage: _objectSpread$
|
|
1367
|
+
intlMessage: _objectSpread$4(_objectSpread$4({}, messages$1.uploadErrorDescription), {}, {
|
|
1401
1368
|
values: {
|
|
1402
1369
|
fileName: state.droppedFile?.name,
|
|
1403
1370
|
errorsCount: intl.formatNumber(errorsCount),
|
|
@@ -1474,8 +1441,8 @@ var messages = reactIntl.defineMessages({
|
|
|
1474
1441
|
}
|
|
1475
1442
|
});
|
|
1476
1443
|
|
|
1477
|
-
function ownKeys$
|
|
1478
|
-
function _objectSpread$
|
|
1444
|
+
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; }
|
|
1445
|
+
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; }
|
|
1479
1446
|
const getNewLine = () => jsxRuntime.jsx("br", {}, "break");
|
|
1480
1447
|
const getImportLogsLink = (msg, projectKey) => jsxRuntime.jsx(uiKit.Link, {
|
|
1481
1448
|
to: `/${projectKey}/operations/import/logs`,
|
|
@@ -1488,7 +1455,7 @@ var _ref2 = {
|
|
|
1488
1455
|
const ImportRunningTextNotification = props => jsxRuntime.jsx("div", {
|
|
1489
1456
|
css: _ref2,
|
|
1490
1457
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1491
|
-
intlMessage: _objectSpread$
|
|
1458
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.importStarted), {}, {
|
|
1492
1459
|
values: {
|
|
1493
1460
|
newline: getNewLine,
|
|
1494
1461
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1504,7 +1471,7 @@ var _ref = {
|
|
|
1504
1471
|
const ImportPreparingTextNotification = props => jsxRuntime.jsx("div", {
|
|
1505
1472
|
css: _ref,
|
|
1506
1473
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1507
|
-
intlMessage: _objectSpread$
|
|
1474
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.preparingImport), {}, {
|
|
1508
1475
|
values: {
|
|
1509
1476
|
newline: getNewLine,
|
|
1510
1477
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1583,7 +1550,7 @@ const DeleteResourcesConfirmationModal = () => {
|
|
|
1583
1550
|
scale: "m",
|
|
1584
1551
|
children: [jsxRuntime.jsxs("div", {
|
|
1585
1552
|
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1586
|
-
intlMessage: _objectSpread$
|
|
1553
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationText), {}, {
|
|
1587
1554
|
values: {
|
|
1588
1555
|
projectName: projectName,
|
|
1589
1556
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType)),
|
|
@@ -1593,7 +1560,7 @@ const DeleteResourcesConfirmationModal = () => {
|
|
|
1593
1560
|
}
|
|
1594
1561
|
})
|
|
1595
1562
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1596
|
-
intlMessage: _objectSpread$
|
|
1563
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationQuestion), {}, {
|
|
1597
1564
|
values: {
|
|
1598
1565
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType))
|
|
1599
1566
|
}
|
|
@@ -1637,8 +1604,8 @@ function getBold$1(msg) {
|
|
|
1637
1604
|
}, crypto.randomUUID());
|
|
1638
1605
|
}
|
|
1639
1606
|
|
|
1640
|
-
function ownKeys$
|
|
1641
|
-
function _objectSpread$
|
|
1607
|
+
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; }
|
|
1608
|
+
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; }
|
|
1642
1609
|
function UploadPreviewModal() {
|
|
1643
1610
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
1644
1611
|
resourceType = _useDeleteResourcesCo.resourceType,
|
|
@@ -1673,7 +1640,7 @@ function UploadPreviewModal() {
|
|
|
1673
1640
|
size: "40",
|
|
1674
1641
|
color: "neutral60"
|
|
1675
1642
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1676
|
-
intlMessage: _objectSpread$
|
|
1643
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.resourcesToBeDeleted), {}, {
|
|
1677
1644
|
values: {
|
|
1678
1645
|
resourceType: intl.formatMessage(resourceTypeToMessage(resourceType)),
|
|
1679
1646
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType)),
|
|
@@ -1708,6 +1675,39 @@ const CurrentStep = () => {
|
|
|
1708
1675
|
return steps[state.currentStep] || null;
|
|
1709
1676
|
};
|
|
1710
1677
|
|
|
1678
|
+
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; }
|
|
1679
|
+
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; }
|
|
1680
|
+
const FileIcon = props => jsxRuntime.jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1681
|
+
width: "32",
|
|
1682
|
+
height: "32",
|
|
1683
|
+
viewBox: "0 0 32 32",
|
|
1684
|
+
fill: "none",
|
|
1685
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1686
|
+
}, props), {}, {
|
|
1687
|
+
children: [jsxRuntime.jsx("mask", {
|
|
1688
|
+
id: "mask0_17_6643",
|
|
1689
|
+
style: {
|
|
1690
|
+
maskType: 'alpha'
|
|
1691
|
+
},
|
|
1692
|
+
maskUnits: "userSpaceOnUse",
|
|
1693
|
+
x: "0",
|
|
1694
|
+
y: "0",
|
|
1695
|
+
width: "32",
|
|
1696
|
+
height: "32",
|
|
1697
|
+
children: jsxRuntime.jsx("rect", {
|
|
1698
|
+
width: "32",
|
|
1699
|
+
height: "32",
|
|
1700
|
+
fill: "#D9D9D9"
|
|
1701
|
+
})
|
|
1702
|
+
}), jsxRuntime.jsx("g", {
|
|
1703
|
+
mask: "url(#mask0_17_6643)",
|
|
1704
|
+
children: jsxRuntime.jsx("path", {
|
|
1705
|
+
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",
|
|
1706
|
+
fill: "#B1ACFF"
|
|
1707
|
+
})
|
|
1708
|
+
})]
|
|
1709
|
+
}));
|
|
1710
|
+
|
|
1711
1711
|
const getChunkImport = locale => {
|
|
1712
1712
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1713
1713
|
switch (intlLocale) {
|
|
@@ -1798,5 +1798,6 @@ DeleteResourcesModal.displayName = 'DeleteResourcesModal';
|
|
|
1798
1798
|
exports.DeleteResourcesModal = DeleteResourcesModal;
|
|
1799
1799
|
exports.EnabledDropArea = EnabledDropArea;
|
|
1800
1800
|
exports.FileDropped = FileDropped;
|
|
1801
|
+
exports.FileIcon = FileIcon;
|
|
1801
1802
|
exports.messages = messages$4;
|
|
1802
1803
|
exports.useDeleteResourcesContext = useDeleteResourcesContext;
|
|
@@ -654,11 +654,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
654
654
|
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== */");
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
657
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-92c5e785.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
658
658
|
|
|
659
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
659
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-5a49cc54.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
660
660
|
|
|
661
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
661
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-59c4b6b7.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
662
662
|
|
|
663
663
|
function getDropArea(_ref) {
|
|
664
664
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1198,39 +1198,6 @@ const Upload = () => {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
};
|
|
1200
1200
|
|
|
1201
|
-
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; }
|
|
1202
|
-
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; }
|
|
1203
|
-
var FileIcon = function FileIcon(props) {
|
|
1204
|
-
return jsxs("svg", _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
1205
|
-
children: [jsx("mask", {
|
|
1206
|
-
id: "a",
|
|
1207
|
-
style: {
|
|
1208
|
-
maskType: "alpha"
|
|
1209
|
-
},
|
|
1210
|
-
maskUnits: "userSpaceOnUse",
|
|
1211
|
-
x: "0",
|
|
1212
|
-
y: "0",
|
|
1213
|
-
width: "32",
|
|
1214
|
-
height: "32",
|
|
1215
|
-
children: jsx("path", {
|
|
1216
|
-
fill: "#D9D9D9",
|
|
1217
|
-
d: "M0 0h32v32H0z"
|
|
1218
|
-
})
|
|
1219
|
-
}), jsx("g", {
|
|
1220
|
-
mask: "url(#a)",
|
|
1221
|
-
children: jsx("path", {
|
|
1222
|
-
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",
|
|
1223
|
-
fill: "#B1ACFF"
|
|
1224
|
-
})
|
|
1225
|
-
})]
|
|
1226
|
-
}));
|
|
1227
|
-
};
|
|
1228
|
-
FileIcon.defaultProps = {
|
|
1229
|
-
width: "32",
|
|
1230
|
-
height: "32",
|
|
1231
|
-
fill: "none",
|
|
1232
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1233
|
-
};
|
|
1234
1201
|
const Uploading = () => {
|
|
1235
1202
|
const intl = useIntl();
|
|
1236
1203
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
@@ -1305,15 +1272,15 @@ var messages$1 = defineMessages({
|
|
|
1305
1272
|
}
|
|
1306
1273
|
});
|
|
1307
1274
|
|
|
1308
|
-
function ownKeys$
|
|
1309
|
-
function _objectSpread$
|
|
1275
|
+
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; }
|
|
1276
|
+
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; }
|
|
1310
1277
|
const getColumns = () => [{
|
|
1311
1278
|
key: 'errorType',
|
|
1312
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
1279
|
+
label: jsx(FormattedMessage, _objectSpread$5({}, messages$1.errorType)),
|
|
1313
1280
|
width: 'max-content'
|
|
1314
1281
|
}, {
|
|
1315
1282
|
key: 'details',
|
|
1316
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
1283
|
+
label: jsx(FormattedMessage, _objectSpread$5({}, messages$1.details))
|
|
1317
1284
|
}];
|
|
1318
1285
|
const UploadErrorTable = props => {
|
|
1319
1286
|
var _context;
|
|
@@ -1356,8 +1323,8 @@ function itemRenderer(item, column) {
|
|
|
1356
1323
|
}
|
|
1357
1324
|
}
|
|
1358
1325
|
|
|
1359
|
-
function ownKeys$
|
|
1360
|
-
function _objectSpread$
|
|
1326
|
+
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; }
|
|
1327
|
+
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; }
|
|
1361
1328
|
const UploadErrorsModal = () => {
|
|
1362
1329
|
const intl = useIntl();
|
|
1363
1330
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
@@ -1375,7 +1342,7 @@ const UploadErrorsModal = () => {
|
|
|
1375
1342
|
scale: "l",
|
|
1376
1343
|
children: [jsx(Masking.Mask, {
|
|
1377
1344
|
children: jsx(Text.Body, {
|
|
1378
|
-
intlMessage: _objectSpread$
|
|
1345
|
+
intlMessage: _objectSpread$4(_objectSpread$4({}, messages$1.uploadErrorDescription), {}, {
|
|
1379
1346
|
values: {
|
|
1380
1347
|
fileName: state.droppedFile?.name,
|
|
1381
1348
|
errorsCount: intl.formatNumber(errorsCount),
|
|
@@ -1452,8 +1419,8 @@ var messages = defineMessages({
|
|
|
1452
1419
|
}
|
|
1453
1420
|
});
|
|
1454
1421
|
|
|
1455
|
-
function ownKeys$
|
|
1456
|
-
function _objectSpread$
|
|
1422
|
+
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; }
|
|
1423
|
+
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; }
|
|
1457
1424
|
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)."; }
|
|
1458
1425
|
const getNewLine = () => jsx("br", {}, "break");
|
|
1459
1426
|
const getImportLogsLink = (msg, projectKey) => jsx(Link, {
|
|
@@ -1471,7 +1438,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
1471
1438
|
const ImportRunningTextNotification = props => jsx("div", {
|
|
1472
1439
|
css: _ref2,
|
|
1473
1440
|
children: jsx(Text.Body, {
|
|
1474
|
-
intlMessage: _objectSpread$
|
|
1441
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.importStarted), {}, {
|
|
1475
1442
|
values: {
|
|
1476
1443
|
newline: getNewLine,
|
|
1477
1444
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1491,7 +1458,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
1491
1458
|
const ImportPreparingTextNotification = props => jsx("div", {
|
|
1492
1459
|
css: _ref,
|
|
1493
1460
|
children: jsx(Text.Body, {
|
|
1494
|
-
intlMessage: _objectSpread$
|
|
1461
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.preparingImport), {}, {
|
|
1495
1462
|
values: {
|
|
1496
1463
|
newline: getNewLine,
|
|
1497
1464
|
logsLink: msg => getImportLogsLink(msg, props.projectKey),
|
|
@@ -1570,7 +1537,7 @@ const DeleteResourcesConfirmationModal = () => {
|
|
|
1570
1537
|
scale: "m",
|
|
1571
1538
|
children: [jsxs("div", {
|
|
1572
1539
|
children: [jsx(Text.Body, {
|
|
1573
|
-
intlMessage: _objectSpread$
|
|
1540
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationText), {}, {
|
|
1574
1541
|
values: {
|
|
1575
1542
|
projectName: projectName,
|
|
1576
1543
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType)),
|
|
@@ -1580,7 +1547,7 @@ const DeleteResourcesConfirmationModal = () => {
|
|
|
1580
1547
|
}
|
|
1581
1548
|
})
|
|
1582
1549
|
}), jsx(Text.Body, {
|
|
1583
|
-
intlMessage: _objectSpread$
|
|
1550
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages.confirmationQuestion), {}, {
|
|
1584
1551
|
values: {
|
|
1585
1552
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType))
|
|
1586
1553
|
}
|
|
@@ -1624,8 +1591,8 @@ function getBold$1(msg) {
|
|
|
1624
1591
|
}, crypto.randomUUID());
|
|
1625
1592
|
}
|
|
1626
1593
|
|
|
1627
|
-
function ownKeys$
|
|
1628
|
-
function _objectSpread$
|
|
1594
|
+
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; }
|
|
1595
|
+
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; }
|
|
1629
1596
|
function UploadPreviewModal() {
|
|
1630
1597
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
1631
1598
|
resourceType = _useDeleteResourcesCo.resourceType,
|
|
@@ -1660,7 +1627,7 @@ function UploadPreviewModal() {
|
|
|
1660
1627
|
size: "40",
|
|
1661
1628
|
color: "neutral60"
|
|
1662
1629
|
}), jsx(Text.Body, {
|
|
1663
|
-
intlMessage: _objectSpread$
|
|
1630
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.resourcesToBeDeleted), {}, {
|
|
1664
1631
|
values: {
|
|
1665
1632
|
resourceType: intl.formatMessage(resourceTypeToMessage(resourceType)),
|
|
1666
1633
|
resourceTypePlural: intl.formatMessage(resourceTypeToPluralMessage(resourceType)),
|
|
@@ -1695,6 +1662,39 @@ const CurrentStep = () => {
|
|
|
1695
1662
|
return steps[state.currentStep] || null;
|
|
1696
1663
|
};
|
|
1697
1664
|
|
|
1665
|
+
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; }
|
|
1666
|
+
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; }
|
|
1667
|
+
const FileIcon = props => jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1668
|
+
width: "32",
|
|
1669
|
+
height: "32",
|
|
1670
|
+
viewBox: "0 0 32 32",
|
|
1671
|
+
fill: "none",
|
|
1672
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1673
|
+
}, props), {}, {
|
|
1674
|
+
children: [jsx("mask", {
|
|
1675
|
+
id: "mask0_17_6643",
|
|
1676
|
+
style: {
|
|
1677
|
+
maskType: 'alpha'
|
|
1678
|
+
},
|
|
1679
|
+
maskUnits: "userSpaceOnUse",
|
|
1680
|
+
x: "0",
|
|
1681
|
+
y: "0",
|
|
1682
|
+
width: "32",
|
|
1683
|
+
height: "32",
|
|
1684
|
+
children: jsx("rect", {
|
|
1685
|
+
width: "32",
|
|
1686
|
+
height: "32",
|
|
1687
|
+
fill: "#D9D9D9"
|
|
1688
|
+
})
|
|
1689
|
+
}), jsx("g", {
|
|
1690
|
+
mask: "url(#mask0_17_6643)",
|
|
1691
|
+
children: jsx("path", {
|
|
1692
|
+
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",
|
|
1693
|
+
fill: "#B1ACFF"
|
|
1694
|
+
})
|
|
1695
|
+
})]
|
|
1696
|
+
}));
|
|
1697
|
+
|
|
1698
1698
|
const getChunkImport = locale => {
|
|
1699
1699
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1700
1700
|
switch (intlLocale) {
|
|
@@ -1782,4 +1782,4 @@ const DeleteResourcesModal = props => {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
DeleteResourcesModal.displayName = 'DeleteResourcesModal';
|
|
1784
1784
|
|
|
1785
|
-
export { DeleteResourcesModal as D, EnabledDropArea as E, FileDropped as F, messages$4 as m, useDeleteResourcesContext as u };
|
|
1785
|
+
export { DeleteResourcesModal as D, EnabledDropArea as E, FileDropped as F, FileIcon as a, messages$4 as m, useDeleteResourcesContext as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/delete-resources-modal",
|
|
3
3
|
"description": "Shared import modal for deleting resources",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.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.
|
|
19
|
-
"@babel/runtime-corejs3": "7.
|
|
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",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@commercetools-uikit/design-system": "fec-155-react-19",
|
|
52
51
|
"@commercetools-uikit/icons": "fec-155-react-19",
|
|
53
52
|
"@commercetools-uikit/select-field": "fec-155-react-19",
|
|
54
|
-
"@preconstruct/cli": "2.8.
|
|
53
|
+
"@preconstruct/cli": "2.8.12",
|
|
55
54
|
"@types/jest": "29.5.14",
|
|
56
55
|
"@types/lodash.truncate": "^4.4.7",
|
|
57
56
|
"@types/pluralize": "0.0.33",
|
|
@@ -64,20 +63,20 @@
|
|
|
64
63
|
"rimraf": "6.0.1"
|
|
65
64
|
},
|
|
66
65
|
"peerDependencies": {
|
|
67
|
-
"@commercetools-frontend/actions-global": "23.x || fec-156-react19",
|
|
68
|
-
"@commercetools-frontend/application-components": "23.x || fec-156-react19",
|
|
69
|
-
"@commercetools-frontend/application-shell": "23.x || fec-156-react19",
|
|
70
|
-
"@commercetools-frontend/application-shell-connectors": "23.x || fec-156-react19",
|
|
71
|
-
"@commercetools-frontend/constants": "23.x || fec-156-react19",
|
|
72
|
-
"@commercetools-frontend/fullstory": "2.x || 3.x || react-19-migration",
|
|
73
|
-
"@commercetools-frontend/i18n": "23.x || fec-156-react19",
|
|
74
|
-
"@commercetools-frontend/jest-preset-mc-app": "23.x || fec-156-react19",
|
|
75
|
-
"@commercetools-frontend/permissions": "23.x || fec-156-react19",
|
|
76
|
-
"@commercetools-frontend/sdk": "23.x || fec-156-react19",
|
|
77
|
-
"@commercetools-frontend/sentry": "23.x || fec-156-react19",
|
|
78
|
-
"@commercetools-frontend/ui-kit": "19.x || fec-155-react-19",
|
|
79
|
-
"@commercetools-uikit/design-system": "19.x || fec-155-react-19",
|
|
80
|
-
"@commercetools-uikit/icons": "19.x || fec-155-react-19",
|
|
66
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x || fec-156-react19",
|
|
67
|
+
"@commercetools-frontend/application-components": "23.x || 24.x || fec-156-react19",
|
|
68
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x || fec-156-react19",
|
|
69
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x || fec-156-react19",
|
|
70
|
+
"@commercetools-frontend/constants": "23.x || 24.x || fec-156-react19",
|
|
71
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x || react-19-migration",
|
|
72
|
+
"@commercetools-frontend/i18n": "23.x || 24.x || fec-156-react19",
|
|
73
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x || fec-156-react19",
|
|
74
|
+
"@commercetools-frontend/permissions": "23.x || 24.x || fec-156-react19",
|
|
75
|
+
"@commercetools-frontend/sdk": "23.x || 24.x || fec-156-react19",
|
|
76
|
+
"@commercetools-frontend/sentry": "23.x || 24.x || fec-156-react19",
|
|
77
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x || fec-155-react-19",
|
|
78
|
+
"@commercetools-uikit/design-system": "19.x || 20.x || fec-155-react-19",
|
|
79
|
+
"@commercetools-uikit/icons": "19.x || 20.x || fec-155-react-19",
|
|
81
80
|
"react": "17.x || 19.x",
|
|
82
81
|
"react-intl": "6.x || 7.x",
|
|
83
82
|
"react-redux": "7.x",
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
2
|
-
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
3
|
-
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
|
-
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
-
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
-
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
-
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
-
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
-
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
-
import 'react';
|
|
11
|
-
import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
|
|
12
|
-
import { m as messages } from './index-bf8624d0.esm.js';
|
|
13
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
14
|
-
import 'react-intl';
|
|
15
|
-
import '@commercetools-frontend/application-shell-connectors';
|
|
16
|
-
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
17
|
-
import '@commercetools-frontend/sdk';
|
|
18
|
-
import '@commercetools-frontend/constants';
|
|
19
|
-
import 'pluralize';
|
|
20
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
21
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
22
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
23
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
24
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
25
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
26
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
27
|
-
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
28
|
-
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
29
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
30
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
31
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
32
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
33
|
-
import 'papaparse';
|
|
34
|
-
import '@commercetools-frontend/application-components';
|
|
35
|
-
import '@commercetools-frontend/fullstory';
|
|
36
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
37
|
-
import 'react-dropzone';
|
|
38
|
-
import '@commercetools-frontend/actions-global';
|
|
39
|
-
import '@emotion/styled/base';
|
|
40
|
-
import '@emotion/react';
|
|
41
|
-
import '@commercetools-frontend/sentry';
|
|
42
|
-
import '@commercetools-frontend/application-shell';
|
|
43
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
44
|
-
import '@commercetools-frontend/i18n';
|
|
45
|
-
|
|
46
|
-
function ownKeys(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; }
|
|
47
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48
|
-
var FileIcon = function FileIcon(props) {
|
|
49
|
-
return jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
50
|
-
children: [jsx("mask", {
|
|
51
|
-
id: "a",
|
|
52
|
-
style: {
|
|
53
|
-
maskType: "alpha"
|
|
54
|
-
},
|
|
55
|
-
maskUnits: "userSpaceOnUse",
|
|
56
|
-
x: "0",
|
|
57
|
-
y: "0",
|
|
58
|
-
width: "32",
|
|
59
|
-
height: "32",
|
|
60
|
-
children: jsx("path", {
|
|
61
|
-
fill: "#D9D9D9",
|
|
62
|
-
d: "M0 0h32v32H0z"
|
|
63
|
-
})
|
|
64
|
-
}), jsx("g", {
|
|
65
|
-
mask: "url(#a)",
|
|
66
|
-
children: jsx("path", {
|
|
67
|
-
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",
|
|
68
|
-
fill: "#B1ACFF"
|
|
69
|
-
})
|
|
70
|
-
})]
|
|
71
|
-
}));
|
|
72
|
-
};
|
|
73
|
-
FileIcon.defaultProps = {
|
|
74
|
-
width: "32",
|
|
75
|
-
height: "32",
|
|
76
|
-
fill: "none",
|
|
77
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
78
|
-
};
|
|
79
|
-
function EnabledDropArea() {
|
|
80
|
-
return jsxs(Spacings.Inline, {
|
|
81
|
-
alignItems: "center",
|
|
82
|
-
justifyContent: "center",
|
|
83
|
-
scale: "s",
|
|
84
|
-
children: [jsx(FileIcon, {}), jsxs(Spacings.Inline, {
|
|
85
|
-
alignItems: "center",
|
|
86
|
-
scale: "s",
|
|
87
|
-
children: [jsx(Text.Subheadline, {
|
|
88
|
-
as: "h4",
|
|
89
|
-
intlMessage: messages.dragAndDropCSV
|
|
90
|
-
}), jsx(Text.Body, {
|
|
91
|
-
intlMessage: messages.or
|
|
92
|
-
}), jsx(Link, {
|
|
93
|
-
intlMessage: messages.browseButton,
|
|
94
|
-
tone: "secondary",
|
|
95
|
-
to: "",
|
|
96
|
-
onClick: ev => ev.preventDefault()
|
|
97
|
-
})]
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export { EnabledDropArea as default };
|