@commercetools-frontend-extensions/import-resources-modal 1.8.3 → 1.9.1
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-dc11c9dd.cjs.prod.js → active-drag-drop-area-73dfaf5d.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-4c295594.esm.js → active-drag-drop-area-8e57dd40.esm.js} +1 -1
- package/dist/{active-drag-drop-area-1b036a1a.cjs.dev.js → active-drag-drop-area-ba4a851f.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +1 -1
- package/dist/{de-ba621f66.cjs.prod.js → de-7ed25bdf.cjs.dev.js} +12 -0
- package/dist/{de-cd1c2b61.cjs.dev.js → de-94201791.cjs.prod.js} +12 -0
- package/dist/{de-4d884a52.esm.js → de-cf302015.esm.js} +12 -0
- package/dist/declarations/src/@hooks/use-import-permission.d.ts +2 -0
- package/dist/declarations/src/@types/resource-type.d.ts +2 -1
- package/dist/{disabled-drop-area-9ea4c457.esm.js → disabled-drop-area-034e0448.esm.js} +1 -1
- package/dist/{disabled-drop-area-377a3c8d.cjs.dev.js → disabled-drop-area-d1e857eb.cjs.dev.js} +1 -1
- package/dist/{disabled-drop-area-40108d06.cjs.prod.js → disabled-drop-area-ddd04658.cjs.prod.js} +1 -1
- package/dist/{en-c4f7d882.cjs.dev.js → en-647cd603.cjs.prod.js} +13 -1
- package/dist/{en-88aad148.esm.js → en-850d8c4a.esm.js} +13 -1
- package/dist/{en-102ccf29.cjs.prod.js → en-b68b87c8.cjs.dev.js} +13 -1
- package/dist/{enabled-drop-area-5629adf7.cjs.prod.js → enabled-drop-area-20a79b9e.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-e60beae7.esm.js → enabled-drop-area-89b5985e.esm.js} +1 -1
- package/dist/{enabled-drop-area-1bb3ba2c.cjs.dev.js → enabled-drop-area-a7cc9ec4.cjs.dev.js} +1 -1
- package/dist/{es-09b5f26a.cjs.dev.js → es-02f8a321.cjs.prod.js} +12 -0
- package/dist/{es-d589515f.esm.js → es-21c30725.esm.js} +12 -0
- package/dist/{es-1877968a.cjs.prod.js → es-68d1ba91.cjs.dev.js} +12 -0
- package/dist/{file-dropped-area-f5cd314a.esm.js → file-dropped-area-58e15030.esm.js} +1 -1
- package/dist/{file-dropped-area-00056628.cjs.prod.js → file-dropped-area-72914d0f.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-f251fc3d.cjs.dev.js → file-dropped-area-bacca40c.cjs.dev.js} +1 -1
- package/dist/{fr-FR-1d2ccb65.cjs.prod.js → fr-FR-078895d6.cjs.prod.js} +12 -0
- package/dist/{fr-FR-d672a357.esm.js → fr-FR-3c6878e4.esm.js} +12 -0
- package/dist/{fr-FR-a5fe152a.cjs.dev.js → fr-FR-a9a6c5c9.cjs.dev.js} +12 -0
- package/dist/{index-bf0ed2a7.cjs.dev.js → index-0a743bd2.cjs.dev.js} +75 -22
- package/dist/{index-42eec0a4.esm.js → index-943152ea.esm.js} +75 -22
- package/dist/{index-e152cdce.cjs.prod.js → index-f01fd89f.cjs.prod.js} +75 -22
- package/dist/{pt-BR-606f307c.cjs.prod.js → pt-BR-a50aa3dd.cjs.prod.js} +12 -0
- package/dist/{pt-BR-0389b318.cjs.dev.js → pt-BR-cd32fb09.cjs.dev.js} +12 -0
- package/dist/{pt-BR-3512c390.esm.js → pt-BR-fa0b65c8.esm.js} +12 -0
- package/package.json +6 -6
|
@@ -85,7 +85,8 @@ const EnabledResourceType = {
|
|
|
85
85
|
'discount-code': true,
|
|
86
86
|
customer: false,
|
|
87
87
|
order: false,
|
|
88
|
-
'product-type': false
|
|
88
|
+
'product-type': false,
|
|
89
|
+
'business-unit': true
|
|
89
90
|
};
|
|
90
91
|
function isResourceType(maybeResourceType) {
|
|
91
92
|
return typeof maybeResourceType === 'string' && maybeResourceType in EnabledResourceType;
|
|
@@ -314,7 +315,8 @@ const IMPORTABLE_RESOURCES = {
|
|
|
314
315
|
DISCOUNT_CODE: 'discount-code',
|
|
315
316
|
CUSTOMER: 'customer',
|
|
316
317
|
ORDER: 'order',
|
|
317
|
-
PRODUCT_TYPE: 'product-type'
|
|
318
|
+
PRODUCT_TYPE: 'product-type',
|
|
319
|
+
BUSINESS_UNIT: 'business-unit'
|
|
318
320
|
};
|
|
319
321
|
|
|
320
322
|
const FILE_SIZE_LIMITS_MB = {
|
|
@@ -324,7 +326,8 @@ const FILE_SIZE_LIMITS_MB = {
|
|
|
324
326
|
[IMPORTABLE_RESOURCES.DISCOUNT_CODE]: 35,
|
|
325
327
|
[IMPORTABLE_RESOURCES.CUSTOMER]: 0,
|
|
326
328
|
[IMPORTABLE_RESOURCES.ORDER]: 0,
|
|
327
|
-
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 35
|
|
329
|
+
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 35,
|
|
330
|
+
[IMPORTABLE_RESOURCES.BUSINESS_UNIT]: 35
|
|
328
331
|
};
|
|
329
332
|
const ROW_LIMITS = {
|
|
330
333
|
[IMPORTABLE_RESOURCES.CATEGORY]: 80_000,
|
|
@@ -333,7 +336,8 @@ const ROW_LIMITS = {
|
|
|
333
336
|
[IMPORTABLE_RESOURCES.DISCOUNT_CODE]: 80_000,
|
|
334
337
|
[IMPORTABLE_RESOURCES.CUSTOMER]: 0,
|
|
335
338
|
[IMPORTABLE_RESOURCES.ORDER]: 0,
|
|
336
|
-
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 80_000
|
|
339
|
+
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 80_000,
|
|
340
|
+
[IMPORTABLE_RESOURCES.BUSINESS_UNIT]: 80_000
|
|
337
341
|
};
|
|
338
342
|
const RESOURCE_TYPE_TEMPLATE_DOWNLOAD_LINKS = {
|
|
339
343
|
[IMPORTABLE_RESOURCES.CATEGORY]: 'https://docs.commercetools.com/merchant-center/downloads/category_import_template.csv',
|
|
@@ -342,7 +346,8 @@ const RESOURCE_TYPE_TEMPLATE_DOWNLOAD_LINKS = {
|
|
|
342
346
|
[IMPORTABLE_RESOURCES.DISCOUNT_CODE]: 'https://docs.commercetools.com/merchant-center/downloads/discount_code_import_template.csv',
|
|
343
347
|
[IMPORTABLE_RESOURCES.CUSTOMER]: 'https://docs.commercetools.com/merchant-center/import-data#download-a-template',
|
|
344
348
|
[IMPORTABLE_RESOURCES.ORDER]: 'https://docs.commercetools.com/merchant-center/import-data#download-a-template',
|
|
345
|
-
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 'https://docs.commercetools.com/merchant-center/downloads/product_type_import_template.csv'
|
|
349
|
+
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 'https://docs.commercetools.com/merchant-center/downloads/product_type_import_template.csv',
|
|
350
|
+
[IMPORTABLE_RESOURCES.BUSINESS_UNIT]: 'https://docs.commercetools.com/merchant-center/downloads/business_unit_import_template.csv'
|
|
346
351
|
};
|
|
347
352
|
const RESOURCE_TYPE_DOCUMENTATION_LINKS = {
|
|
348
353
|
[IMPORTABLE_RESOURCES.CATEGORY]: 'https://docs.commercetools.com/merchant-center/import-categories#supported-headers-and-values',
|
|
@@ -351,7 +356,8 @@ const RESOURCE_TYPE_DOCUMENTATION_LINKS = {
|
|
|
351
356
|
[IMPORTABLE_RESOURCES.DISCOUNT_CODE]: 'https://docs.commercetools.com/merchant-center/import-discount-codes#supported-headers-and-values',
|
|
352
357
|
[IMPORTABLE_RESOURCES.CUSTOMER]: 'https://docs.commercetools.com/merchant-center/import-customers#supported-headers-and-values',
|
|
353
358
|
[IMPORTABLE_RESOURCES.ORDER]: 'https://docs.commercetools.com/merchant-center/import-orders#supported-headers-and-values',
|
|
354
|
-
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 'https://docs.commercetools.com/merchant-center/import-product-types#supported-headers-and-values'
|
|
359
|
+
[IMPORTABLE_RESOURCES.PRODUCT_TYPE]: 'https://docs.commercetools.com/merchant-center/import-product-types#supported-headers-and-values',
|
|
360
|
+
[IMPORTABLE_RESOURCES.BUSINESS_UNIT]: 'https://docs.commercetools.com/merchant-center/import-business-units#supported-headers-and-values'
|
|
355
361
|
};
|
|
356
362
|
|
|
357
363
|
const CT_API_DOCS_URL = 'https://docs.commercetools.com/api/';
|
|
@@ -368,7 +374,19 @@ const PERMISSIONS = {
|
|
|
368
374
|
ViewProductTypes: 'ViewProductTypes',
|
|
369
375
|
// DiscountCodes
|
|
370
376
|
ManageDiscountCodes: 'ManageDiscountCodes',
|
|
371
|
-
ViewDiscountCodes: 'ViewDiscountCodes'
|
|
377
|
+
ViewDiscountCodes: 'ViewDiscountCodes',
|
|
378
|
+
// Customers
|
|
379
|
+
ManageCustomers: 'ManageCustomers',
|
|
380
|
+
ViewCustomers: 'ViewCustomers',
|
|
381
|
+
// Orders
|
|
382
|
+
ManageOrders: 'ManageOrders',
|
|
383
|
+
ViewOrders: 'ViewOrders',
|
|
384
|
+
// KeyValueDocuments
|
|
385
|
+
ManageKeyValueDocuments: 'ManageKeyValueDocuments',
|
|
386
|
+
ViewKeyValueDocuments: 'ViewKeyValueDocuments',
|
|
387
|
+
// BusinessUnits
|
|
388
|
+
ManageBusinessUnits: 'ManageBusinessUnits',
|
|
389
|
+
ViewBusinessUnits: 'ViewBusinessUnits'
|
|
372
390
|
};
|
|
373
391
|
const ACTION_RIGHTS = {
|
|
374
392
|
PublishProducts: {
|
|
@@ -408,6 +426,11 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
408
426
|
description: 'Label for the inventories modal title',
|
|
409
427
|
defaultMessage: 'Import discount codes by CSV'
|
|
410
428
|
},
|
|
429
|
+
[`modalTitle.${IMPORTABLE_RESOURCES.BUSINESS_UNIT}`]: {
|
|
430
|
+
id: 'ImportResourcesModal.modalTitle.businessUnit',
|
|
431
|
+
description: 'Label for the business units modal title',
|
|
432
|
+
defaultMessage: 'Import business units by CSV'
|
|
433
|
+
},
|
|
411
434
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
412
435
|
id: 'ImportResourcesModal.modalTitle.customer',
|
|
413
436
|
description: 'Label for the customers modal title',
|
|
@@ -614,6 +637,16 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
614
637
|
description: 'Label for the discount-codes resource type',
|
|
615
638
|
defaultMessage: 'Discount codes'
|
|
616
639
|
},
|
|
640
|
+
'business-unit': {
|
|
641
|
+
id: 'ImportResourcesModal.business-unit',
|
|
642
|
+
description: 'Label for the business-unit resource type',
|
|
643
|
+
defaultMessage: 'Business unit'
|
|
644
|
+
},
|
|
645
|
+
'business-units': {
|
|
646
|
+
id: 'ImportResourcesModal.business-units',
|
|
647
|
+
description: 'Label for the business-units resource type',
|
|
648
|
+
defaultMessage: 'Business units'
|
|
649
|
+
},
|
|
617
650
|
unknownResourceType: {
|
|
618
651
|
id: 'ImportResourcesModal.unknown-resource-type',
|
|
619
652
|
description: 'Label for the unknown resource type',
|
|
@@ -785,6 +818,7 @@ function resourceTypeToMessage(resourceType) {
|
|
|
785
818
|
'product-variant-patch': sharedMessages['product-variant-patch'],
|
|
786
819
|
'standalone-price': sharedMessages['standalone-price'],
|
|
787
820
|
'custom-object': sharedMessages['custom-object'],
|
|
821
|
+
'business-unit': sharedMessages['business-unit'],
|
|
788
822
|
type: sharedMessages.type
|
|
789
823
|
};
|
|
790
824
|
const message = resourceTypeMap[resourceType];
|
|
@@ -810,7 +844,8 @@ function resourceTypeToPluralMessage(resourceType) {
|
|
|
810
844
|
'product-draft': sharedMessages['product-drafts'],
|
|
811
845
|
'product-variant': sharedMessages['product-variants'],
|
|
812
846
|
'product-variant-patch': sharedMessages['product-variant-patches'],
|
|
813
|
-
'standalone-price': sharedMessages['standalone-prices']
|
|
847
|
+
'standalone-price': sharedMessages['standalone-prices'],
|
|
848
|
+
'business-unit': sharedMessages['business-units']
|
|
814
849
|
};
|
|
815
850
|
const message = resourceTypePluralMap[resourceType];
|
|
816
851
|
if (!message) {
|
|
@@ -1068,13 +1103,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
1068
1103
|
return /*#__PURE__*/react.css("" , "" );
|
|
1069
1104
|
}
|
|
1070
1105
|
|
|
1071
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
1106
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-73dfaf5d.cjs.prod.js'); }));
|
|
1072
1107
|
|
|
1073
|
-
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-
|
|
1108
|
+
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-ddd04658.cjs.prod.js'); }));
|
|
1074
1109
|
|
|
1075
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
1110
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-20a79b9e.cjs.prod.js'); }));
|
|
1076
1111
|
|
|
1077
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
1112
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-72914d0f.cjs.prod.js'); }));
|
|
1078
1113
|
|
|
1079
1114
|
function getDropArea(_ref) {
|
|
1080
1115
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1396,12 +1431,24 @@ const useImportPermission = () => {
|
|
|
1396
1431
|
const canManageProducts = permissions.useIsAuthorized({
|
|
1397
1432
|
demandedPermissions: [PERMISSIONS.ManageProducts]
|
|
1398
1433
|
});
|
|
1399
|
-
const
|
|
1434
|
+
const canManageCustomers = permissions.useIsAuthorized({
|
|
1435
|
+
demandedPermissions: [PERMISSIONS.ManageCustomers]
|
|
1436
|
+
});
|
|
1437
|
+
const canManageOrders = permissions.useIsAuthorized({
|
|
1438
|
+
demandedPermissions: [PERMISSIONS.ManageOrders]
|
|
1439
|
+
});
|
|
1440
|
+
const canManageKeyValueDocuments = permissions.useIsAuthorized({
|
|
1441
|
+
demandedPermissions: [PERMISSIONS.ManageKeyValueDocuments]
|
|
1442
|
+
});
|
|
1443
|
+
const canMAnageCategories = permissions.useIsAuthorized({
|
|
1400
1444
|
demandedPermissions: [PERMISSIONS.ManageCategories]
|
|
1401
1445
|
});
|
|
1402
|
-
const
|
|
1446
|
+
const canManageDiscountCodes = permissions.useIsAuthorized({
|
|
1403
1447
|
demandedPermissions: [PERMISSIONS.ManageDiscountCodes]
|
|
1404
1448
|
});
|
|
1449
|
+
const canManageBusinessUnits = permissions.useIsAuthorized({
|
|
1450
|
+
demandedPermissions: [PERMISSIONS.ManageBusinessUnits]
|
|
1451
|
+
});
|
|
1405
1452
|
const canImportProducts = React.useMemo(() => {
|
|
1406
1453
|
if (!actionRights) return false;
|
|
1407
1454
|
const canAddPrices = actionRights.canAddPrices,
|
|
@@ -1410,12 +1457,17 @@ const useImportPermission = () => {
|
|
|
1410
1457
|
canEditPrices = actionRights.canEditPrices;
|
|
1411
1458
|
return canManageProducts && canAddPrices && canAddProducts && canEditAttributesAll && canEditPrices;
|
|
1412
1459
|
}, [canManageProducts, actionRights]);
|
|
1460
|
+
const canManageCustomObjects = React.useMemo(() => {
|
|
1461
|
+
return canManageProducts || canManageCustomers || canManageOrders || canManageKeyValueDocuments;
|
|
1462
|
+
}, [canManageCustomers, canManageOrders, canManageProducts, canManageKeyValueDocuments]);
|
|
1413
1463
|
return {
|
|
1414
1464
|
canImportProducts,
|
|
1415
|
-
canImportCategories,
|
|
1416
|
-
canImportDiscountCodes,
|
|
1465
|
+
canImportCategories: canMAnageCategories,
|
|
1466
|
+
canImportDiscountCodes: canManageDiscountCodes,
|
|
1467
|
+
canImportBusinessUnits: canManageBusinessUnits,
|
|
1417
1468
|
canImportInventories: canManageProducts,
|
|
1418
|
-
canImportProductTypes: canManageProducts
|
|
1469
|
+
canImportProductTypes: canManageProducts,
|
|
1470
|
+
canImportCustomObjects: canManageCustomObjects
|
|
1419
1471
|
};
|
|
1420
1472
|
};
|
|
1421
1473
|
|
|
@@ -1509,6 +1561,7 @@ const UploadProductSettings = () => {
|
|
|
1509
1561
|
state = _useImportResourcesCo.state,
|
|
1510
1562
|
actions = _useImportResourcesCo.actions;
|
|
1511
1563
|
return jsxRuntime.jsx(uiKit.CheckboxInput, {
|
|
1564
|
+
"data-tracking-target": 'product_import-publish_checkbox',
|
|
1512
1565
|
isChecked: state.settings?.publish,
|
|
1513
1566
|
onChange: e => {
|
|
1514
1567
|
actions.setUploadSettings({
|
|
@@ -2464,17 +2517,17 @@ const getChunkImport = locale => {
|
|
|
2464
2517
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
2465
2518
|
switch (intlLocale) {
|
|
2466
2519
|
case 'de':
|
|
2467
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
2520
|
+
return Promise.resolve().then(function () { return require('./de-94201791.cjs.prod.js'); });
|
|
2468
2521
|
case 'es':
|
|
2469
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
2522
|
+
return Promise.resolve().then(function () { return require('./es-02f8a321.cjs.prod.js'); });
|
|
2470
2523
|
case 'fr-FR':
|
|
2471
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
2524
|
+
return Promise.resolve().then(function () { return require('./fr-FR-078895d6.cjs.prod.js'); });
|
|
2472
2525
|
case 'ja':
|
|
2473
2526
|
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
2474
2527
|
case 'pt-BR':
|
|
2475
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
2528
|
+
return Promise.resolve().then(function () { return require('./pt-BR-a50aa3dd.cjs.prod.js'); });
|
|
2476
2529
|
default:
|
|
2477
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
2530
|
+
return Promise.resolve().then(function () { return require('./en-647cd603.cjs.prod.js'); });
|
|
2478
2531
|
}
|
|
2479
2532
|
};
|
|
2480
2533
|
const loadMessages = async locale => {
|
|
@@ -4,6 +4,14 @@ var ptBR = {
|
|
|
4
4
|
"ImportResourcesModal.browseFile": {
|
|
5
5
|
string: "Procurar arquivo"
|
|
6
6
|
},
|
|
7
|
+
"ImportResourcesModal.business-unit": {
|
|
8
|
+
developer_comment: "Label for the business-unit resource type",
|
|
9
|
+
string: "Unidade de negócios"
|
|
10
|
+
},
|
|
11
|
+
"ImportResourcesModal.business-units": {
|
|
12
|
+
developer_comment: "Label for the business-units resource type",
|
|
13
|
+
string: "Unidades de negócios"
|
|
14
|
+
},
|
|
7
15
|
"ImportResourcesModal.cancel": {
|
|
8
16
|
developer_comment: "Label for the cancel button",
|
|
9
17
|
string: "Cancelar"
|
|
@@ -168,6 +176,10 @@ var ptBR = {
|
|
|
168
176
|
developer_comment: "Error message displayed when the uploaded file is missing required keys",
|
|
169
177
|
string: "Certifique-se de que o arquivo contém as chaves necessárias para os elementos, incluindo {fieldNames}"
|
|
170
178
|
},
|
|
179
|
+
"ImportResourcesModal.modalTitle.businessUnit": {
|
|
180
|
+
developer_comment: "Label for the business units modal title",
|
|
181
|
+
string: "Importar unidades de negócios por CSV"
|
|
182
|
+
},
|
|
171
183
|
"ImportResourcesModal.modalTitle.category": {
|
|
172
184
|
developer_comment: "Label for the categories modal title",
|
|
173
185
|
string: "Importar categorias por CSV"
|
|
@@ -4,6 +4,14 @@ var ptBR = {
|
|
|
4
4
|
"ImportResourcesModal.browseFile": {
|
|
5
5
|
string: "Procurar arquivo"
|
|
6
6
|
},
|
|
7
|
+
"ImportResourcesModal.business-unit": {
|
|
8
|
+
developer_comment: "Label for the business-unit resource type",
|
|
9
|
+
string: "Unidade de negócios"
|
|
10
|
+
},
|
|
11
|
+
"ImportResourcesModal.business-units": {
|
|
12
|
+
developer_comment: "Label for the business-units resource type",
|
|
13
|
+
string: "Unidades de negócios"
|
|
14
|
+
},
|
|
7
15
|
"ImportResourcesModal.cancel": {
|
|
8
16
|
developer_comment: "Label for the cancel button",
|
|
9
17
|
string: "Cancelar"
|
|
@@ -168,6 +176,10 @@ var ptBR = {
|
|
|
168
176
|
developer_comment: "Error message displayed when the uploaded file is missing required keys",
|
|
169
177
|
string: "Certifique-se de que o arquivo contém as chaves necessárias para os elementos, incluindo {fieldNames}"
|
|
170
178
|
},
|
|
179
|
+
"ImportResourcesModal.modalTitle.businessUnit": {
|
|
180
|
+
developer_comment: "Label for the business units modal title",
|
|
181
|
+
string: "Importar unidades de negócios por CSV"
|
|
182
|
+
},
|
|
171
183
|
"ImportResourcesModal.modalTitle.category": {
|
|
172
184
|
developer_comment: "Label for the categories modal title",
|
|
173
185
|
string: "Importar categorias por CSV"
|
|
@@ -2,6 +2,14 @@ var ptBR = {
|
|
|
2
2
|
"ImportResourcesModal.browseFile": {
|
|
3
3
|
string: "Procurar arquivo"
|
|
4
4
|
},
|
|
5
|
+
"ImportResourcesModal.business-unit": {
|
|
6
|
+
developer_comment: "Label for the business-unit resource type",
|
|
7
|
+
string: "Unidade de negócios"
|
|
8
|
+
},
|
|
9
|
+
"ImportResourcesModal.business-units": {
|
|
10
|
+
developer_comment: "Label for the business-units resource type",
|
|
11
|
+
string: "Unidades de negócios"
|
|
12
|
+
},
|
|
5
13
|
"ImportResourcesModal.cancel": {
|
|
6
14
|
developer_comment: "Label for the cancel button",
|
|
7
15
|
string: "Cancelar"
|
|
@@ -166,6 +174,10 @@ var ptBR = {
|
|
|
166
174
|
developer_comment: "Error message displayed when the uploaded file is missing required keys",
|
|
167
175
|
string: "Certifique-se de que o arquivo contém as chaves necessárias para os elementos, incluindo {fieldNames}"
|
|
168
176
|
},
|
|
177
|
+
"ImportResourcesModal.modalTitle.businessUnit": {
|
|
178
|
+
developer_comment: "Label for the business units modal title",
|
|
179
|
+
string: "Importar unidades de negócios por CSV"
|
|
180
|
+
},
|
|
169
181
|
"ImportResourcesModal.modalTitle.category": {
|
|
170
182
|
developer_comment: "Label for the categories modal title",
|
|
171
183
|
string: "Importar categorias por CSV"
|
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.
|
|
4
|
+
"version": "1.9.1",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@commercetools-frontend/permissions": "24.2.1",
|
|
46
46
|
"@commercetools-frontend/sdk": "24.2.1",
|
|
47
47
|
"@commercetools-frontend/sentry": "24.2.1",
|
|
48
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
49
|
-
"@commercetools-uikit/data-table": "20.
|
|
50
|
-
"@commercetools-uikit/design-system": "20.
|
|
51
|
-
"@commercetools-uikit/icons": "20.
|
|
52
|
-
"@commercetools-uikit/select-field": "20.
|
|
48
|
+
"@commercetools-frontend/ui-kit": "20.2.2",
|
|
49
|
+
"@commercetools-uikit/data-table": "20.2.2",
|
|
50
|
+
"@commercetools-uikit/design-system": "20.2.2",
|
|
51
|
+
"@commercetools-uikit/icons": "20.2.2",
|
|
52
|
+
"@commercetools-uikit/select-field": "20.2.2",
|
|
53
53
|
"@preconstruct/cli": "2.8.12",
|
|
54
54
|
"@types/jest": "29.5.14",
|
|
55
55
|
"@types/lodash.truncate": "^4.4.7",
|