@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
|
@@ -41,6 +41,7 @@ var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
|
41
41
|
var _wrapNativeSuper = require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
42
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
43
43
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
44
|
+
var fullstory = require('@commercetools-frontend/fullstory');
|
|
44
45
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
45
46
|
var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
46
47
|
var sentry = require('@commercetools-frontend/sentry');
|
|
@@ -864,13 +865,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
864
865
|
return /*#__PURE__*/react.css("" , "" );
|
|
865
866
|
}
|
|
866
867
|
|
|
867
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
868
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-89f8264c.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
868
869
|
|
|
869
870
|
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-99c1fa0b.cjs.prod.js' /* webpackChunkName: "disabled-drop-area" */); }));
|
|
870
871
|
|
|
871
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
872
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-77836aae.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
872
873
|
|
|
873
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
874
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-47e83d97.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
874
875
|
|
|
875
876
|
function getDropArea(_ref) {
|
|
876
877
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1101,27 +1102,31 @@ const Upload = () => {
|
|
|
1101
1102
|
onClose: () => onClose({
|
|
1102
1103
|
shouldDeleteImportContainer: true
|
|
1103
1104
|
}),
|
|
1104
|
-
children: jsxRuntime.
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
children: jsxRuntime.jsx(uiKit.
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1105
|
+
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1106
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1107
|
+
scale: "l",
|
|
1108
|
+
children: [isMultipleResourceTypes ? jsxRuntime.jsxs(uiKit.Grid, {
|
|
1109
|
+
gridRowGap: uiKit.designTokens.spacingL,
|
|
1110
|
+
gridTemplateColumns: _concatInstanceProperty__default["default"](_context = "calc(".concat(uiKit.designTokens.constraint3, " + ")).call(_context, uiKit.designTokens.spacingL, ") auto"),
|
|
1111
|
+
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1112
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1113
|
+
isBold: true,
|
|
1114
|
+
intlMessage: messages$4.dataType
|
|
1115
|
+
})
|
|
1116
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1117
|
+
children: jsxRuntime.jsx(ResourceTypeSelection, {})
|
|
1118
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1119
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1120
|
+
isBold: true,
|
|
1121
|
+
intlMessage: messages$4.instructions
|
|
1122
|
+
})
|
|
1123
|
+
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1124
|
+
children: jsxRuntime.jsx(Instructions, {})
|
|
1125
|
+
})]
|
|
1126
|
+
}) : jsxRuntime.jsx(Instructions, {}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1127
|
+
children: jsxRuntime.jsx(FileDropArea, {})
|
|
1123
1128
|
})]
|
|
1124
|
-
})
|
|
1129
|
+
})
|
|
1125
1130
|
})
|
|
1126
1131
|
});
|
|
1127
1132
|
};
|
|
@@ -1265,68 +1270,70 @@ function UploadPreviewModal() {
|
|
|
1265
1270
|
onClose: () => onClose({
|
|
1266
1271
|
shouldDeleteImportContainer: true
|
|
1267
1272
|
}),
|
|
1268
|
-
children: jsxRuntime.jsx(
|
|
1269
|
-
children: jsxRuntime.jsx(
|
|
1270
|
-
scale: "xxxl",
|
|
1273
|
+
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1274
|
+
children: jsxRuntime.jsx(applicationComponents.PageContentNarrow, {
|
|
1271
1275
|
children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
1272
|
-
scale: "
|
|
1273
|
-
children: jsxRuntime.
|
|
1274
|
-
scale: "
|
|
1275
|
-
children:
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
children:
|
|
1282
|
-
|
|
1283
|
-
children: [jsxRuntime.
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1276
|
+
scale: "xxxl",
|
|
1277
|
+
children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
1278
|
+
scale: "xl",
|
|
1279
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1280
|
+
scale: "m",
|
|
1281
|
+
children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1282
|
+
intlMessage: messages$3.previewOfYourImport
|
|
1283
|
+
}), jsxRuntime.jsx(uiKit.Card, {
|
|
1284
|
+
insetScale: "xl",
|
|
1285
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1286
|
+
scale: "xs",
|
|
1287
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1288
|
+
alignItems: "center",
|
|
1289
|
+
children: [jsxRuntime.jsx(uiKit.CheckBoldIcon, {
|
|
1290
|
+
color: "success"
|
|
1291
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1292
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.rowsToBeImported), {}, {
|
|
1293
|
+
values: {
|
|
1294
|
+
rowCount: intl.formatNumber(state.uploadFileResponse.rowsCount),
|
|
1295
|
+
b: getBold$3
|
|
1296
|
+
}
|
|
1297
|
+
})
|
|
1298
|
+
})]
|
|
1299
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1300
|
+
alignItems: "center",
|
|
1301
|
+
children: [jsxRuntime.jsx(uiKit.CheckBoldIcon, {
|
|
1302
|
+
color: "success"
|
|
1303
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1304
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.columnsToBeImported), {}, {
|
|
1305
|
+
values: {
|
|
1306
|
+
columnCount: intl.formatNumber(validatedColumns.length),
|
|
1307
|
+
b: getBold$3
|
|
1308
|
+
}
|
|
1309
|
+
})
|
|
1310
|
+
})]
|
|
1311
|
+
}), jsxRuntime.jsx(ColumnList, {
|
|
1312
|
+
columns: validatedColumns
|
|
1304
1313
|
})]
|
|
1305
|
-
})
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1314
|
+
})
|
|
1315
|
+
}), ignoredColumns.length > 0 && jsxRuntime.jsx(uiKit.Card, {
|
|
1316
|
+
insetScale: "xl",
|
|
1317
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1318
|
+
scale: "xs",
|
|
1319
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1320
|
+
alignItems: "center",
|
|
1321
|
+
children: [jsxRuntime.jsx(uiKit.EyeCrossedIcon, {
|
|
1322
|
+
color: "neutral60"
|
|
1323
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1324
|
+
intlMessage: _objectSpread$8(_objectSpread$8({}, messages$3.columnsToBeIgnored), {}, {
|
|
1325
|
+
values: {
|
|
1326
|
+
columnCount: intl.formatNumber(ignoredColumns.length),
|
|
1327
|
+
b: getBold$3
|
|
1328
|
+
}
|
|
1329
|
+
})
|
|
1330
|
+
})]
|
|
1331
|
+
}), jsxRuntime.jsx(ColumnList, {
|
|
1332
|
+
columns: ignoredColumns
|
|
1324
1333
|
})]
|
|
1325
|
-
})
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
})
|
|
1329
|
-
})]
|
|
1334
|
+
})
|
|
1335
|
+
})]
|
|
1336
|
+
})
|
|
1330
1337
|
})
|
|
1331
1338
|
})
|
|
1332
1339
|
})
|
|
@@ -1424,23 +1431,25 @@ const ImportConfirmationModal = () => {
|
|
|
1424
1431
|
}
|
|
1425
1432
|
},
|
|
1426
1433
|
size: 16,
|
|
1427
|
-
children: jsxRuntime.
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
children: [jsxRuntime.
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1434
|
+
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1435
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1436
|
+
scale: "xl",
|
|
1437
|
+
children: [jsxRuntime.jsxs("div", {
|
|
1438
|
+
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1439
|
+
intlMessage: _objectSpread$7(_objectSpread$7({}, messages$3.confirmationBodyText), {}, {
|
|
1440
|
+
values: {
|
|
1441
|
+
projectName: projectName,
|
|
1442
|
+
count: intl.formatNumber((state === null || state === void 0 || (_state$uploadFileResp = state.uploadFileResponse) === null || _state$uploadFileResp === void 0 ? void 0 : _state$uploadFileResp.rowsCount) || 0),
|
|
1443
|
+
bold: getBold$2
|
|
1444
|
+
}
|
|
1445
|
+
})
|
|
1446
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1447
|
+
intlMessage: messages$3.confirmationBodyNote
|
|
1448
|
+
})]
|
|
1438
1449
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1439
|
-
intlMessage: messages$3.
|
|
1450
|
+
intlMessage: messages$3.confirmationBodyQuestion
|
|
1440
1451
|
})]
|
|
1441
|
-
})
|
|
1442
|
-
intlMessage: messages$3.confirmationBodyQuestion
|
|
1443
|
-
})]
|
|
1452
|
+
})
|
|
1444
1453
|
})
|
|
1445
1454
|
});
|
|
1446
1455
|
};
|
|
@@ -1551,30 +1560,34 @@ const UploadClientSideErrorsModal = () => {
|
|
|
1551
1560
|
isOpen: true,
|
|
1552
1561
|
title: intl.formatMessage(sharedMessages["modalTitle.".concat(state.resourceType)]),
|
|
1553
1562
|
onClose: () => onClose(),
|
|
1554
|
-
children: jsxRuntime.
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1563
|
+
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1564
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1565
|
+
scale: "l",
|
|
1566
|
+
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1567
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1568
|
+
intlMessage: _objectSpread$5(_objectSpread$5({}, messages$2.uploadingError), {}, {
|
|
1569
|
+
values: {
|
|
1570
|
+
fileName: (_state$droppedFile = state.droppedFile) === null || _state$droppedFile === void 0 ? void 0 : _state$droppedFile.name,
|
|
1571
|
+
errorsCount: intl.formatNumber(errorsCount),
|
|
1572
|
+
b: getBold$1
|
|
1573
|
+
}
|
|
1574
|
+
})
|
|
1575
|
+
})
|
|
1576
|
+
}), jsxRuntime.jsx(UploadClientSideErrorTable, {
|
|
1577
|
+
rows: mapUploadFileClientSideErrorsToUploadFileErrorRows(state.fileUploadClientSideErrors)
|
|
1578
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1579
|
+
scale: "m",
|
|
1580
|
+
justifyContent: "flex-end",
|
|
1581
|
+
children: [jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
1582
|
+
label: intl.formatMessage(sharedMessages.close),
|
|
1583
|
+
onClick: () => onClose()
|
|
1584
|
+
}), jsxRuntime.jsx(uiKit.PrimaryButton, {
|
|
1585
|
+
iconLeft: jsxRuntime.jsx(uiKit.ImportIcon, {}),
|
|
1586
|
+
label: intl.formatMessage(messages$2.uploadNewFile),
|
|
1587
|
+
onClick: () => actions.uploadNewFile()
|
|
1588
|
+
})]
|
|
1576
1589
|
})]
|
|
1577
|
-
})
|
|
1590
|
+
})
|
|
1578
1591
|
})
|
|
1579
1592
|
});
|
|
1580
1593
|
};
|
|
@@ -1665,44 +1678,48 @@ const UploadServerSideErrorsModal = () => {
|
|
|
1665
1678
|
isOpen: true,
|
|
1666
1679
|
title: intl.formatMessage(sharedMessages["modalTitle.".concat(state.resourceType)]),
|
|
1667
1680
|
onClose: onClose,
|
|
1668
|
-
children: jsxRuntime.
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.supportedValuesDocumentation), {}, {
|
|
1682
|
-
values: {
|
|
1683
|
-
documentationLink: msg => jsxRuntime.jsx(uiKit.Link, {
|
|
1684
|
-
tone: "secondary",
|
|
1685
|
-
isExternal: true,
|
|
1686
|
-
to: documentationLink,
|
|
1687
|
-
children: msg
|
|
1681
|
+
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1682
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1683
|
+
scale: "l",
|
|
1684
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1685
|
+
scale: "xs",
|
|
1686
|
+
children: [jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1687
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1688
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.uploadingError), {}, {
|
|
1689
|
+
values: {
|
|
1690
|
+
fileName: (_state$droppedFile = state.droppedFile) === null || _state$droppedFile === void 0 ? void 0 : _state$droppedFile.name,
|
|
1691
|
+
errorsCount: intl.formatNumber(errorsCount),
|
|
1692
|
+
b: getBold
|
|
1693
|
+
}
|
|
1688
1694
|
})
|
|
1689
|
-
}
|
|
1690
|
-
})
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1695
|
+
})
|
|
1696
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1697
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$2.supportedValuesDocumentation), {}, {
|
|
1698
|
+
values: {
|
|
1699
|
+
documentationLink: msg => jsxRuntime.jsx(uiKit.Link, {
|
|
1700
|
+
tone: "secondary",
|
|
1701
|
+
isExternal: true,
|
|
1702
|
+
to: documentationLink,
|
|
1703
|
+
children: msg
|
|
1704
|
+
})
|
|
1705
|
+
}
|
|
1706
|
+
})
|
|
1707
|
+
})]
|
|
1708
|
+
}), jsxRuntime.jsx(UploadServerSideErrorTable, {
|
|
1709
|
+
rows: mapUploadFileErrorsResponseToUploadFileErrorRows((_state$uploadFileResp2 = state.uploadFileResponse) === null || _state$uploadFileResp2 === void 0 ? void 0 : _state$uploadFileResp2.results)
|
|
1710
|
+
}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
1711
|
+
scale: "m",
|
|
1712
|
+
justifyContent: "flex-end",
|
|
1713
|
+
children: [jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
1714
|
+
label: intl.formatMessage(sharedMessages.close),
|
|
1715
|
+
onClick: () => onClose()
|
|
1716
|
+
}), jsxRuntime.jsx(uiKit.PrimaryButton, {
|
|
1717
|
+
iconLeft: jsxRuntime.jsx(uiKit.ImportIcon, {}),
|
|
1718
|
+
label: intl.formatMessage(messages$2.uploadNewFile),
|
|
1719
|
+
onClick: () => actions.uploadNewFile()
|
|
1720
|
+
})]
|
|
1704
1721
|
})]
|
|
1705
|
-
})
|
|
1722
|
+
})
|
|
1706
1723
|
})
|
|
1707
1724
|
});
|
|
1708
1725
|
};
|