@commercetools-frontend-extensions/import-resources-modal 1.2.3 → 1.2.5
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-f12630d8.esm.js → active-drag-drop-area-0096403f.esm.js} +2 -1
- package/dist/{active-drag-drop-area-4555b547.cjs.prod.js → active-drag-drop-area-52119833.cjs.dev.js} +2 -1
- package/dist/{active-drag-drop-area-e3d97116.cjs.dev.js → active-drag-drop-area-89f8264c.cjs.prod.js} +2 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +2 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +2 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +2 -1
- package/dist/{enabled-drop-area-f9b365c6.cjs.dev.js → enabled-drop-area-77836aae.cjs.prod.js} +2 -1
- package/dist/{enabled-drop-area-2b2fedcf.esm.js → enabled-drop-area-8a60a954.esm.js} +2 -1
- package/dist/{enabled-drop-area-9d72368b.cjs.prod.js → enabled-drop-area-cd1ff191.cjs.dev.js} +2 -1
- package/dist/{file-dropped-area-37e73131.esm.js → file-dropped-area-29daabcd.esm.js} +2 -1
- package/dist/{file-dropped-area-fa8f8320.cjs.dev.js → file-dropped-area-47e83d97.cjs.prod.js} +2 -1
- package/dist/{file-dropped-area-114c7008.cjs.prod.js → file-dropped-area-922d238a.cjs.dev.js} +2 -1
- package/dist/{index-2b12bfb1.cjs.dev.js → index-0756fe60.cjs.dev.js} +173 -156
- package/dist/{index-c301af5d.cjs.prod.js → index-4a4bda05.cjs.prod.js} +173 -156
- package/dist/{index-e4e280d7.esm.js → index-8ce079d8.esm.js} +173 -156
- package/package.json +20 -19
|
@@ -39,6 +39,7 @@ import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
|
39
39
|
import _wrapNativeSuper from '@babel/runtime-corejs3/helpers/esm/wrapNativeSuper';
|
|
40
40
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
41
41
|
import { FormDialog, PageContentNarrow, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
|
|
42
|
+
import { Masking } from '@commercetools-frontend/fullstory';
|
|
42
43
|
import { customProperties, Constraints, Spacings, Grid, designTokens, Text, Link, Card, CheckBoldIcon, EyeCrossedIcon, usePaginationState, PageNavigator, Stamp, SecondaryButton, PrimaryButton, ImportIcon, ProgressBar, RadioInput } from '@commercetools-frontend/ui-kit';
|
|
43
44
|
import { useShowNotification } from '@commercetools-frontend/actions-global';
|
|
44
45
|
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
@@ -837,13 +838,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
837
838
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHR5cGUgRHJvcHpvbmVSb290UHJvcHMgfSBmcm9tICdyZWFjdC1kcm9wem9uZSdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
838
839
|
}
|
|
839
840
|
|
|
840
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
841
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-0096403f.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
841
842
|
|
|
842
843
|
var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-2c088477.esm.js' /* webpackChunkName: "disabled-drop-area" */));
|
|
843
844
|
|
|
844
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
845
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-8a60a954.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
845
846
|
|
|
846
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
847
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-29daabcd.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
847
848
|
|
|
848
849
|
function getDropArea(_ref) {
|
|
849
850
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1074,27 +1075,31 @@ const Upload = () => {
|
|
|
1074
1075
|
onClose: () => onClose({
|
|
1075
1076
|
shouldDeleteImportContainer: true
|
|
1076
1077
|
}),
|
|
1077
|
-
children:
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
children: jsx(
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1078
|
+
children: jsx(Masking.Unmask, {
|
|
1079
|
+
children: jsxs(Spacings.Stack, {
|
|
1080
|
+
scale: "l",
|
|
1081
|
+
children: [isMultipleResourceTypes ? jsxs(Grid, {
|
|
1082
|
+
gridRowGap: designTokens.spacingL,
|
|
1083
|
+
gridTemplateColumns: _concatInstanceProperty(_context = "calc(".concat(designTokens.constraint3, " + ")).call(_context, designTokens.spacingL, ") auto"),
|
|
1084
|
+
children: [jsx(Grid.Item, {
|
|
1085
|
+
children: jsx(Text.Body, {
|
|
1086
|
+
isBold: true,
|
|
1087
|
+
intlMessage: messages$4.dataType
|
|
1088
|
+
})
|
|
1089
|
+
}), jsx(Grid.Item, {
|
|
1090
|
+
children: jsx(ResourceTypeSelection, {})
|
|
1091
|
+
}), jsx(Grid.Item, {
|
|
1092
|
+
children: jsx(Text.Body, {
|
|
1093
|
+
isBold: true,
|
|
1094
|
+
intlMessage: messages$4.instructions
|
|
1095
|
+
})
|
|
1096
|
+
}), jsx(Grid.Item, {
|
|
1097
|
+
children: jsx(Instructions, {})
|
|
1098
|
+
})]
|
|
1099
|
+
}) : jsx(Instructions, {}), jsx(Masking.Mask, {
|
|
1100
|
+
children: jsx(FileDropArea, {})
|
|
1096
1101
|
})]
|
|
1097
|
-
})
|
|
1102
|
+
})
|
|
1098
1103
|
})
|
|
1099
1104
|
});
|
|
1100
1105
|
};
|
|
@@ -1241,68 +1246,70 @@ function UploadPreviewModal() {
|
|
|
1241
1246
|
onClose: () => onClose({
|
|
1242
1247
|
shouldDeleteImportContainer: true
|
|
1243
1248
|
}),
|
|
1244
|
-
children: jsx(
|
|
1245
|
-
children: jsx(
|
|
1246
|
-
scale: "xxxl",
|
|
1249
|
+
children: jsx(Masking.Unmask, {
|
|
1250
|
+
children: jsx(PageContentNarrow, {
|
|
1247
1251
|
children: jsx(Spacings.Stack, {
|
|
1248
|
-
scale: "
|
|
1249
|
-
children:
|
|
1250
|
-
scale: "
|
|
1251
|
-
children:
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
children:
|
|
1258
|
-
|
|
1259
|
-
children: [
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1252
|
+
scale: "xxxl",
|
|
1253
|
+
children: jsx(Spacings.Stack, {
|
|
1254
|
+
scale: "xl",
|
|
1255
|
+
children: jsxs(Spacings.Stack, {
|
|
1256
|
+
scale: "m",
|
|
1257
|
+
children: [jsx("div", {}), jsx(Text.Body, {
|
|
1258
|
+
intlMessage: messages$3.previewOfYourImport
|
|
1259
|
+
}), jsx(Card, {
|
|
1260
|
+
insetScale: "xl",
|
|
1261
|
+
children: jsxs(Spacings.Stack, {
|
|
1262
|
+
scale: "xs",
|
|
1263
|
+
children: [jsxs(Spacings.Inline, {
|
|
1264
|
+
alignItems: "center",
|
|
1265
|
+
children: [jsx(CheckBoldIcon, {
|
|
1266
|
+
color: "success"
|
|
1267
|
+
}), jsx(Text.Body, {
|
|
1268
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.rowsToBeImported), {}, {
|
|
1269
|
+
values: {
|
|
1270
|
+
rowCount: intl.formatNumber(state.uploadFileResponse.rowsCount),
|
|
1271
|
+
b: getBold$3
|
|
1272
|
+
}
|
|
1273
|
+
})
|
|
1274
|
+
})]
|
|
1275
|
+
}), jsxs(Spacings.Inline, {
|
|
1276
|
+
alignItems: "center",
|
|
1277
|
+
children: [jsx(CheckBoldIcon, {
|
|
1278
|
+
color: "success"
|
|
1279
|
+
}), jsx(Text.Body, {
|
|
1280
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.columnsToBeImported), {}, {
|
|
1281
|
+
values: {
|
|
1282
|
+
columnCount: intl.formatNumber(validatedColumns.length),
|
|
1283
|
+
b: getBold$3
|
|
1284
|
+
}
|
|
1285
|
+
})
|
|
1286
|
+
})]
|
|
1287
|
+
}), jsx(ColumnList, {
|
|
1288
|
+
columns: validatedColumns
|
|
1280
1289
|
})]
|
|
1281
|
-
})
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1290
|
+
})
|
|
1291
|
+
}), ignoredColumns.length > 0 && jsx(Card, {
|
|
1292
|
+
insetScale: "xl",
|
|
1293
|
+
children: jsxs(Spacings.Stack, {
|
|
1294
|
+
scale: "xs",
|
|
1295
|
+
children: [jsxs(Spacings.Inline, {
|
|
1296
|
+
alignItems: "center",
|
|
1297
|
+
children: [jsx(EyeCrossedIcon, {
|
|
1298
|
+
color: "neutral60"
|
|
1299
|
+
}), jsx(Text.Body, {
|
|
1300
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.columnsToBeIgnored), {}, {
|
|
1301
|
+
values: {
|
|
1302
|
+
columnCount: intl.formatNumber(ignoredColumns.length),
|
|
1303
|
+
b: getBold$3
|
|
1304
|
+
}
|
|
1305
|
+
})
|
|
1306
|
+
})]
|
|
1307
|
+
}), jsx(ColumnList, {
|
|
1308
|
+
columns: ignoredColumns
|
|
1300
1309
|
})]
|
|
1301
|
-
})
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
})
|
|
1305
|
-
})]
|
|
1310
|
+
})
|
|
1311
|
+
})]
|
|
1312
|
+
})
|
|
1306
1313
|
})
|
|
1307
1314
|
})
|
|
1308
1315
|
})
|
|
@@ -1400,23 +1407,25 @@ const ImportConfirmationModal = () => {
|
|
|
1400
1407
|
}
|
|
1401
1408
|
},
|
|
1402
1409
|
size: 16,
|
|
1403
|
-
children:
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
children: [
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1410
|
+
children: jsx(Masking.Unmask, {
|
|
1411
|
+
children: jsxs(Spacings.Stack, {
|
|
1412
|
+
scale: "xl",
|
|
1413
|
+
children: [jsxs("div", {
|
|
1414
|
+
children: [jsx(Text.Body, {
|
|
1415
|
+
intlMessage: _objectSpread$7(_objectSpread$7({}, messages$3.confirmationBodyText), {}, {
|
|
1416
|
+
values: {
|
|
1417
|
+
projectName: projectName,
|
|
1418
|
+
count: intl.formatNumber((state === null || state === void 0 || (_state$uploadFileResp = state.uploadFileResponse) === null || _state$uploadFileResp === void 0 ? void 0 : _state$uploadFileResp.rowsCount) || 0),
|
|
1419
|
+
bold: getBold$2
|
|
1420
|
+
}
|
|
1421
|
+
})
|
|
1422
|
+
}), jsx(Text.Body, {
|
|
1423
|
+
intlMessage: messages$3.confirmationBodyNote
|
|
1424
|
+
})]
|
|
1414
1425
|
}), jsx(Text.Body, {
|
|
1415
|
-
intlMessage: messages$3.
|
|
1426
|
+
intlMessage: messages$3.confirmationBodyQuestion
|
|
1416
1427
|
})]
|
|
1417
|
-
})
|
|
1418
|
-
intlMessage: messages$3.confirmationBodyQuestion
|
|
1419
|
-
})]
|
|
1428
|
+
})
|
|
1420
1429
|
})
|
|
1421
1430
|
});
|
|
1422
1431
|
};
|
|
@@ -1527,30 +1536,34 @@ const UploadClientSideErrorsModal = () => {
|
|
|
1527
1536
|
isOpen: true,
|
|
1528
1537
|
title: intl.formatMessage(sharedMessages["modalTitle.".concat(state.resourceType)]),
|
|
1529
1538
|
onClose: () => onClose(),
|
|
1530
|
-
children:
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1539
|
+
children: jsx(Masking.Unmask, {
|
|
1540
|
+
children: jsxs(Spacings.Stack, {
|
|
1541
|
+
scale: "l",
|
|
1542
|
+
children: [jsx(Masking.Mask, {
|
|
1543
|
+
children: jsx(Text.Body, {
|
|
1544
|
+
intlMessage: _objectSpread$5(_objectSpread$5({}, messages$2.uploadingError), {}, {
|
|
1545
|
+
values: {
|
|
1546
|
+
fileName: (_state$droppedFile = state.droppedFile) === null || _state$droppedFile === void 0 ? void 0 : _state$droppedFile.name,
|
|
1547
|
+
errorsCount: intl.formatNumber(errorsCount),
|
|
1548
|
+
b: getBold$1
|
|
1549
|
+
}
|
|
1550
|
+
})
|
|
1551
|
+
})
|
|
1552
|
+
}), jsx(UploadClientSideErrorTable, {
|
|
1553
|
+
rows: mapUploadFileClientSideErrorsToUploadFileErrorRows(state.fileUploadClientSideErrors)
|
|
1554
|
+
}), jsxs(Spacings.Inline, {
|
|
1555
|
+
scale: "m",
|
|
1556
|
+
justifyContent: "flex-end",
|
|
1557
|
+
children: [jsx(SecondaryButton, {
|
|
1558
|
+
label: intl.formatMessage(sharedMessages.close),
|
|
1559
|
+
onClick: () => onClose()
|
|
1560
|
+
}), jsx(PrimaryButton, {
|
|
1561
|
+
iconLeft: jsx(ImportIcon, {}),
|
|
1562
|
+
label: intl.formatMessage(messages$2.uploadNewFile),
|
|
1563
|
+
onClick: () => actions.uploadNewFile()
|
|
1564
|
+
})]
|
|
1552
1565
|
})]
|
|
1553
|
-
})
|
|
1566
|
+
})
|
|
1554
1567
|
})
|
|
1555
1568
|
});
|
|
1556
1569
|
};
|
|
@@ -1641,44 +1654,48 @@ const UploadServerSideErrorsModal = () => {
|
|
|
1641
1654
|
isOpen: true,
|
|
1642
1655
|
title: intl.formatMessage(sharedMessages["modalTitle.".concat(state.resourceType)]),
|
|
1643
1656
|
onClose: onClose,
|
|
1644
|
-
children:
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.supportedValuesDocumentation), {}, {
|
|
1658
|
-
values: {
|
|
1659
|
-
documentationLink: msg => jsx(Link, {
|
|
1660
|
-
tone: "secondary",
|
|
1661
|
-
isExternal: true,
|
|
1662
|
-
to: documentationLink,
|
|
1663
|
-
children: msg
|
|
1657
|
+
children: jsx(Masking.Unmask, {
|
|
1658
|
+
children: jsxs(Spacings.Stack, {
|
|
1659
|
+
scale: "l",
|
|
1660
|
+
children: [jsxs(Spacings.Stack, {
|
|
1661
|
+
scale: "xs",
|
|
1662
|
+
children: [jsx(Masking.Mask, {
|
|
1663
|
+
children: jsx(Text.Body, {
|
|
1664
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.uploadingError), {}, {
|
|
1665
|
+
values: {
|
|
1666
|
+
fileName: (_state$droppedFile = state.droppedFile) === null || _state$droppedFile === void 0 ? void 0 : _state$droppedFile.name,
|
|
1667
|
+
errorsCount: intl.formatNumber(errorsCount),
|
|
1668
|
+
b: getBold
|
|
1669
|
+
}
|
|
1664
1670
|
})
|
|
1665
|
-
}
|
|
1666
|
-
})
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1671
|
+
})
|
|
1672
|
+
}), jsx(Text.Body, {
|
|
1673
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.supportedValuesDocumentation), {}, {
|
|
1674
|
+
values: {
|
|
1675
|
+
documentationLink: msg => jsx(Link, {
|
|
1676
|
+
tone: "secondary",
|
|
1677
|
+
isExternal: true,
|
|
1678
|
+
to: documentationLink,
|
|
1679
|
+
children: msg
|
|
1680
|
+
})
|
|
1681
|
+
}
|
|
1682
|
+
})
|
|
1683
|
+
})]
|
|
1684
|
+
}), jsx(UploadServerSideErrorTable, {
|
|
1685
|
+
rows: mapUploadFileErrorsResponseToUploadFileErrorRows((_state$uploadFileResp2 = state.uploadFileResponse) === null || _state$uploadFileResp2 === void 0 ? void 0 : _state$uploadFileResp2.results)
|
|
1686
|
+
}), jsxs(Spacings.Inline, {
|
|
1687
|
+
scale: "m",
|
|
1688
|
+
justifyContent: "flex-end",
|
|
1689
|
+
children: [jsx(SecondaryButton, {
|
|
1690
|
+
label: intl.formatMessage(sharedMessages.close),
|
|
1691
|
+
onClick: () => onClose()
|
|
1692
|
+
}), jsx(PrimaryButton, {
|
|
1693
|
+
iconLeft: jsx(ImportIcon, {}),
|
|
1694
|
+
label: intl.formatMessage(messages$2.uploadNewFile),
|
|
1695
|
+
onClick: () => actions.uploadNewFile()
|
|
1696
|
+
})]
|
|
1680
1697
|
})]
|
|
1681
|
-
})
|
|
1698
|
+
})
|
|
1682
1699
|
})
|
|
1683
1700
|
});
|
|
1684
1701
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/import-resources-modal",
|
|
3
3
|
"description": "Shared import modal for importing resources",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "7.25.0",
|
|
19
19
|
"@babel/runtime-corejs3": "7.25.0",
|
|
20
|
+
"@commercetools-frontend/fullstory": "2.4.4",
|
|
20
21
|
"@commercetools/importapi-sdk": "5.5.0",
|
|
21
22
|
"@emotion/react": "11.13.0",
|
|
22
23
|
"@emotion/styled": "11.13.0",
|
|
@@ -36,15 +37,15 @@
|
|
|
36
37
|
"react-dropzone": "14.2.3"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@commercetools-frontend/actions-global": "22.30.
|
|
40
|
-
"@commercetools-frontend/application-components": "22.30.
|
|
41
|
-
"@commercetools-frontend/application-shell": "22.30.
|
|
42
|
-
"@commercetools-frontend/application-shell-connectors": "22.30.
|
|
43
|
-
"@commercetools-frontend/constants": "22.30.
|
|
44
|
-
"@commercetools-frontend/i18n": "22.30.
|
|
45
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.30.
|
|
46
|
-
"@commercetools-frontend/sdk": "22.30.
|
|
47
|
-
"@commercetools-frontend/sentry": "22.30.
|
|
40
|
+
"@commercetools-frontend/actions-global": "22.30.3",
|
|
41
|
+
"@commercetools-frontend/application-components": "22.30.3",
|
|
42
|
+
"@commercetools-frontend/application-shell": "22.30.3",
|
|
43
|
+
"@commercetools-frontend/application-shell-connectors": "22.30.3",
|
|
44
|
+
"@commercetools-frontend/constants": "22.30.3",
|
|
45
|
+
"@commercetools-frontend/i18n": "22.30.3",
|
|
46
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.30.3",
|
|
47
|
+
"@commercetools-frontend/sdk": "22.30.3",
|
|
48
|
+
"@commercetools-frontend/sentry": "22.30.3",
|
|
48
49
|
"@commercetools-frontend/ui-kit": "19.9.0",
|
|
49
50
|
"@commercetools-uikit/data-table": "19.9.0",
|
|
50
51
|
"@commercetools-uikit/design-system": "19.9.0",
|
|
@@ -61,15 +62,15 @@
|
|
|
61
62
|
"rimraf": "5.0.10"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
|
-
"@commercetools-frontend/actions-global": "22.30.
|
|
65
|
-
"@commercetools-frontend/application-components": "22.30.
|
|
66
|
-
"@commercetools-frontend/application-shell": "22.30.
|
|
67
|
-
"@commercetools-frontend/application-shell-connectors": "22.30.
|
|
68
|
-
"@commercetools-frontend/constants": "22.30.
|
|
69
|
-
"@commercetools-frontend/i18n": "22.30.
|
|
70
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.30.
|
|
71
|
-
"@commercetools-frontend/sdk": "22.30.
|
|
72
|
-
"@commercetools-frontend/sentry": "22.30.
|
|
65
|
+
"@commercetools-frontend/actions-global": "22.30.3",
|
|
66
|
+
"@commercetools-frontend/application-components": "22.30.3",
|
|
67
|
+
"@commercetools-frontend/application-shell": "22.30.3",
|
|
68
|
+
"@commercetools-frontend/application-shell-connectors": "22.30.3",
|
|
69
|
+
"@commercetools-frontend/constants": "22.30.3",
|
|
70
|
+
"@commercetools-frontend/i18n": "22.30.3",
|
|
71
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.30.3",
|
|
72
|
+
"@commercetools-frontend/sdk": "22.30.3",
|
|
73
|
+
"@commercetools-frontend/sentry": "22.30.3",
|
|
73
74
|
"@commercetools-frontend/ui-kit": "19.9.0",
|
|
74
75
|
"@commercetools-uikit/data-table": "19.9.0",
|
|
75
76
|
"@commercetools-uikit/design-system": "19.9.0",
|