@commercetools-frontend-extensions/delete-resources-modal 1.0.1 → 1.0.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-2b2d30c2.cjs.prod.js → active-drag-drop-area-398b14f8.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-f1fabbe1.cjs.dev.js → active-drag-drop-area-6a6bb037.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-ce2fab3c.esm.js → active-drag-drop-area-9c30f4d8.esm.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-c0054f46.cjs.dev.js → enabled-drop-area-78e1a160.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-b84a3295.esm.js → enabled-drop-area-d0428659.esm.js} +1 -1
- package/dist/{enabled-drop-area-d2949787.cjs.prod.js → enabled-drop-area-f7decf27.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-4f2d4886.cjs.dev.js → file-dropped-area-2b20f89c.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-725e578c.esm.js → file-dropped-area-4a9a52a3.esm.js} +1 -1
- package/dist/{file-dropped-area-540a41da.cjs.prod.js → file-dropped-area-4bc691d7.cjs.prod.js} +1 -1
- package/dist/{index-eb45ca2b.esm.js → index-93809c35.esm.js} +129 -190
- package/dist/{index-ac43c2da.cjs.dev.js → index-c39e3139.cjs.dev.js} +129 -190
- package/dist/{index-5d0162f5.cjs.prod.js → index-c8f4c755.cjs.prod.js} +129 -190
- package/package.json +11 -11
|
@@ -255,144 +255,116 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
255
255
|
|
|
256
256
|
var sharedMessages = reactIntl.defineMessages({
|
|
257
257
|
deleteModalTitle: {
|
|
258
|
-
id:
|
|
259
|
-
|
|
260
|
-
defaultMessage: 'Bulk delete via CSV'
|
|
258
|
+
id: "DeleteResourcesModal.deleteModalTitle",
|
|
259
|
+
defaultMessage: "Bulk delete via CSV"
|
|
261
260
|
},
|
|
262
261
|
startBulkDelete: {
|
|
263
|
-
id:
|
|
264
|
-
|
|
265
|
-
defaultMessage: 'Start bulk delete'
|
|
262
|
+
id: "DeleteResourcesModal.startBulkDelete",
|
|
263
|
+
defaultMessage: "Start bulk delete"
|
|
266
264
|
},
|
|
267
265
|
cancel: {
|
|
268
|
-
id:
|
|
269
|
-
|
|
270
|
-
defaultMessage: 'Cancel'
|
|
266
|
+
id: "DeleteResourcesModal.cancel",
|
|
267
|
+
defaultMessage: "Cancel"
|
|
271
268
|
},
|
|
272
269
|
product: {
|
|
273
|
-
id:
|
|
274
|
-
|
|
275
|
-
defaultMessage: 'product'
|
|
270
|
+
id: "DeleteResourcesModal.product",
|
|
271
|
+
defaultMessage: "product"
|
|
276
272
|
},
|
|
277
273
|
products: {
|
|
278
|
-
id:
|
|
279
|
-
|
|
280
|
-
defaultMessage: 'products'
|
|
274
|
+
id: "DeleteResourcesModal.products",
|
|
275
|
+
defaultMessage: "products"
|
|
281
276
|
},
|
|
282
277
|
inventory: {
|
|
283
|
-
id:
|
|
284
|
-
|
|
285
|
-
defaultMessage: 'inventory entry'
|
|
278
|
+
id: "DeleteResourcesModal.inventory",
|
|
279
|
+
defaultMessage: "inventory entry"
|
|
286
280
|
},
|
|
287
281
|
inventories: {
|
|
288
|
-
id:
|
|
289
|
-
|
|
290
|
-
defaultMessage: 'inventory entries'
|
|
282
|
+
id: "DeleteResourcesModal.inventories",
|
|
283
|
+
defaultMessage: "inventory entries"
|
|
291
284
|
},
|
|
292
285
|
category: {
|
|
293
|
-
id:
|
|
294
|
-
|
|
295
|
-
defaultMessage: 'category'
|
|
286
|
+
id: "DeleteResourcesModal.category",
|
|
287
|
+
defaultMessage: "category"
|
|
296
288
|
},
|
|
297
289
|
categories: {
|
|
298
|
-
id:
|
|
299
|
-
|
|
300
|
-
defaultMessage: 'categories'
|
|
290
|
+
id: "DeleteResourcesModal.categories",
|
|
291
|
+
defaultMessage: "categories"
|
|
301
292
|
},
|
|
302
293
|
customer: {
|
|
303
|
-
id:
|
|
304
|
-
|
|
305
|
-
defaultMessage: 'customer'
|
|
294
|
+
id: "DeleteResourcesModal.customer",
|
|
295
|
+
defaultMessage: "customer"
|
|
306
296
|
},
|
|
307
297
|
customers: {
|
|
308
|
-
id:
|
|
309
|
-
|
|
310
|
-
defaultMessage: 'customers'
|
|
298
|
+
id: "DeleteResourcesModal.customers",
|
|
299
|
+
defaultMessage: "customers"
|
|
311
300
|
},
|
|
312
301
|
order: {
|
|
313
|
-
id:
|
|
314
|
-
|
|
315
|
-
defaultMessage: 'order'
|
|
302
|
+
id: "DeleteResourcesModal.order",
|
|
303
|
+
defaultMessage: "order"
|
|
316
304
|
},
|
|
317
305
|
orders: {
|
|
318
|
-
id:
|
|
319
|
-
|
|
320
|
-
defaultMessage: 'orders'
|
|
306
|
+
id: "DeleteResourcesModal.orders",
|
|
307
|
+
defaultMessage: "orders"
|
|
321
308
|
},
|
|
322
309
|
price: {
|
|
323
|
-
id:
|
|
324
|
-
|
|
325
|
-
defaultMessage: 'price'
|
|
310
|
+
id: "DeleteResourcesModal.price",
|
|
311
|
+
defaultMessage: "price"
|
|
326
312
|
},
|
|
327
313
|
prices: {
|
|
328
|
-
id:
|
|
329
|
-
|
|
330
|
-
defaultMessage: 'prices'
|
|
314
|
+
id: "DeleteResourcesModal.prices",
|
|
315
|
+
defaultMessage: "prices"
|
|
331
316
|
},
|
|
332
317
|
'product-draft': {
|
|
333
|
-
id:
|
|
334
|
-
|
|
335
|
-
defaultMessage: 'product draft'
|
|
318
|
+
id: "DeleteResourcesModal.product-draft",
|
|
319
|
+
defaultMessage: "product draft"
|
|
336
320
|
},
|
|
337
321
|
'product-drafts': {
|
|
338
|
-
id:
|
|
339
|
-
|
|
340
|
-
defaultMessage: 'product drafts'
|
|
322
|
+
id: "DeleteResourcesModal.product-drafts",
|
|
323
|
+
defaultMessage: "product drafts"
|
|
341
324
|
},
|
|
342
325
|
'product-type': {
|
|
343
|
-
id:
|
|
344
|
-
|
|
345
|
-
defaultMessage: 'product type'
|
|
326
|
+
id: "DeleteResourcesModal.product-type",
|
|
327
|
+
defaultMessage: "product type"
|
|
346
328
|
},
|
|
347
329
|
'product-types': {
|
|
348
|
-
id:
|
|
349
|
-
|
|
350
|
-
defaultMessage: 'product types'
|
|
330
|
+
id: "DeleteResourcesModal.product-types",
|
|
331
|
+
defaultMessage: "product types"
|
|
351
332
|
},
|
|
352
333
|
'product-variant': {
|
|
353
|
-
id:
|
|
354
|
-
|
|
355
|
-
defaultMessage: 'product variant'
|
|
334
|
+
id: "DeleteResourcesModal.product-variant",
|
|
335
|
+
defaultMessage: "product variant"
|
|
356
336
|
},
|
|
357
337
|
'product-variants': {
|
|
358
|
-
id:
|
|
359
|
-
|
|
360
|
-
defaultMessage: 'product variants'
|
|
338
|
+
id: "DeleteResourcesModal.product-variants",
|
|
339
|
+
defaultMessage: "product variants"
|
|
361
340
|
},
|
|
362
341
|
'product-variant-patch': {
|
|
363
|
-
id:
|
|
364
|
-
|
|
365
|
-
defaultMessage: 'product variant patch'
|
|
342
|
+
id: "DeleteResourcesModal.product-variant-patch",
|
|
343
|
+
defaultMessage: "product variant patch"
|
|
366
344
|
},
|
|
367
345
|
'product-variant-patches': {
|
|
368
|
-
id:
|
|
369
|
-
|
|
370
|
-
defaultMessage: 'product variant patches'
|
|
346
|
+
id: "DeleteResourcesModal.product-variant-patches",
|
|
347
|
+
defaultMessage: "product variant patches"
|
|
371
348
|
},
|
|
372
349
|
'standalone-price': {
|
|
373
|
-
id:
|
|
374
|
-
|
|
375
|
-
defaultMessage: 'standalone price'
|
|
350
|
+
id: "DeleteResourcesModal.standalone-price",
|
|
351
|
+
defaultMessage: "standalone price"
|
|
376
352
|
},
|
|
377
353
|
'standalone-prices': {
|
|
378
|
-
id:
|
|
379
|
-
|
|
380
|
-
defaultMessage: 'standalone prices'
|
|
354
|
+
id: "DeleteResourcesModal.standalone-prices",
|
|
355
|
+
defaultMessage: "standalone prices"
|
|
381
356
|
},
|
|
382
357
|
'discount-code': {
|
|
383
|
-
id:
|
|
384
|
-
|
|
385
|
-
defaultMessage: 'discount code'
|
|
358
|
+
id: "DeleteResourcesModal.discount-code",
|
|
359
|
+
defaultMessage: "discount code"
|
|
386
360
|
},
|
|
387
361
|
'discount-codes': {
|
|
388
|
-
id:
|
|
389
|
-
|
|
390
|
-
defaultMessage: 'discount codes'
|
|
362
|
+
id: "DeleteResourcesModal.discount-codes",
|
|
363
|
+
defaultMessage: "discount codes"
|
|
391
364
|
},
|
|
392
365
|
unknownResourceType: {
|
|
393
|
-
id:
|
|
394
|
-
|
|
395
|
-
defaultMessage: 'unknown resource type'
|
|
366
|
+
id: "DeleteResourcesModal.unknown-resource-type",
|
|
367
|
+
defaultMessage: "unknown resource type"
|
|
396
368
|
}
|
|
397
369
|
});
|
|
398
370
|
|
|
@@ -678,11 +650,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
678
650
|
return /*#__PURE__*/react.css("" , "" );
|
|
679
651
|
}
|
|
680
652
|
|
|
681
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
653
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-398b14f8.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
682
654
|
|
|
683
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
655
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-f7decf27.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
684
656
|
|
|
685
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
657
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-4bc691d7.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
686
658
|
|
|
687
659
|
function getDropArea(_ref) {
|
|
688
660
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -715,58 +687,48 @@ function getDropAreaState(flags) {
|
|
|
715
687
|
|
|
716
688
|
var messages$4 = reactIntl.defineMessages({
|
|
717
689
|
dragAndDropCSV: {
|
|
718
|
-
id:
|
|
719
|
-
|
|
720
|
-
defaultMessage: 'Drag and drop CSV'
|
|
690
|
+
id: "DeleteResourcesModal.dragAndDropCSV",
|
|
691
|
+
defaultMessage: "Drag and drop CSV"
|
|
721
692
|
},
|
|
722
693
|
or: {
|
|
723
|
-
id:
|
|
724
|
-
|
|
725
|
-
defaultMessage: 'or'
|
|
694
|
+
id: "DeleteResourcesModal.or",
|
|
695
|
+
defaultMessage: "or"
|
|
726
696
|
},
|
|
727
697
|
browseButton: {
|
|
728
|
-
id:
|
|
729
|
-
defaultMessage:
|
|
698
|
+
id: "DeleteResourcesModal.browseFile",
|
|
699
|
+
defaultMessage: "Browse file"
|
|
730
700
|
},
|
|
731
701
|
uploadAndPreview: {
|
|
732
|
-
id:
|
|
733
|
-
|
|
734
|
-
defaultMessage: 'Upload and preview'
|
|
702
|
+
id: "DeleteResourcesModal.uploadAndPreview",
|
|
703
|
+
defaultMessage: "Upload and preview"
|
|
735
704
|
},
|
|
736
705
|
chooseFile: {
|
|
737
|
-
id:
|
|
738
|
-
|
|
739
|
-
defaultMessage: 'Choose file'
|
|
706
|
+
id: "DeleteResourcesModal.chooseFile",
|
|
707
|
+
defaultMessage: "Choose file"
|
|
740
708
|
},
|
|
741
709
|
fileUploadFailed: {
|
|
742
|
-
id:
|
|
743
|
-
|
|
744
|
-
defaultMessage: 'File upload failed'
|
|
710
|
+
id: "DeleteResourcesModal.fileUploadFailed",
|
|
711
|
+
defaultMessage: "File upload failed"
|
|
745
712
|
},
|
|
746
713
|
fileFormatNotSupported: {
|
|
747
|
-
id:
|
|
748
|
-
|
|
749
|
-
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
714
|
+
id: "DeleteResourcesModal.fileFormatNotSupported",
|
|
715
|
+
defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
|
|
750
716
|
},
|
|
751
717
|
tooManyFilesError: {
|
|
752
|
-
id:
|
|
753
|
-
|
|
754
|
-
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
718
|
+
id: "DeleteResourcesModal.tooManyFilesError",
|
|
719
|
+
defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
|
|
755
720
|
},
|
|
756
721
|
genericError: {
|
|
757
|
-
id:
|
|
758
|
-
|
|
759
|
-
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
722
|
+
id: "DeleteResourcesModal.genericError",
|
|
723
|
+
defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
|
|
760
724
|
},
|
|
761
725
|
dataType: {
|
|
762
|
-
id:
|
|
763
|
-
|
|
764
|
-
defaultMessage: 'Data type'
|
|
726
|
+
id: "DeleteResourcesModal.dataType",
|
|
727
|
+
defaultMessage: "Data type"
|
|
765
728
|
},
|
|
766
729
|
instructions: {
|
|
767
|
-
id:
|
|
768
|
-
|
|
769
|
-
defaultMessage: 'Instructions'
|
|
730
|
+
id: "DeleteResourcesModal.instructions",
|
|
731
|
+
defaultMessage: "Instructions"
|
|
770
732
|
}
|
|
771
733
|
});
|
|
772
734
|
|
|
@@ -780,56 +742,47 @@ const useDeleteResourcesContext = () => {
|
|
|
780
742
|
|
|
781
743
|
var messages$3 = reactIntl.defineMessages({
|
|
782
744
|
fileSizeExceededTitle: {
|
|
783
|
-
id:
|
|
784
|
-
defaultMessage:
|
|
745
|
+
id: "DeleteResourcesModal.sizeExceededTitle",
|
|
746
|
+
defaultMessage: "File size exceeded"
|
|
785
747
|
},
|
|
786
748
|
fileSizeExceededDescription: {
|
|
787
|
-
id:
|
|
788
|
-
|
|
789
|
-
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
749
|
+
id: "DeleteResourcesModal.sizeExceededDescription",
|
|
750
|
+
defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
|
|
790
751
|
},
|
|
791
752
|
rowLimitExceededTitle: {
|
|
792
|
-
id:
|
|
793
|
-
defaultMessage:
|
|
753
|
+
id: "DeleteResourcesModal.rowLimitExceededTitle",
|
|
754
|
+
defaultMessage: "Row limit exceeded"
|
|
794
755
|
},
|
|
795
756
|
rowLimitExceededDescription: {
|
|
796
|
-
id:
|
|
797
|
-
|
|
798
|
-
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
757
|
+
id: "DeleteResourcesModal.rowLimitExceededDescription",
|
|
758
|
+
defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
|
|
799
759
|
},
|
|
800
760
|
dropAreaNotEnoughRowsTitle: {
|
|
801
|
-
id:
|
|
802
|
-
|
|
803
|
-
defaultMessage: 'Invalid CSV file'
|
|
761
|
+
id: "DeleteResourcesModal.dropAreaNotEnoughRowsTitle",
|
|
762
|
+
defaultMessage: "Invalid CSV file"
|
|
804
763
|
},
|
|
805
764
|
dropAreaNotEnoughRowsDescription: {
|
|
806
|
-
id:
|
|
807
|
-
|
|
808
|
-
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
765
|
+
id: "DeleteResourcesModal.dropAreaNotEnoughRowsDescription",
|
|
766
|
+
defaultMessage: "Make sure the file contains a header and at least one row of data"
|
|
809
767
|
},
|
|
810
768
|
unexpectedError: {
|
|
811
|
-
id:
|
|
812
|
-
|
|
813
|
-
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
769
|
+
id: "DeleteResourcesModal.unexpectedError",
|
|
770
|
+
defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
|
|
814
771
|
},
|
|
815
772
|
missingRequiredField: {
|
|
816
|
-
id:
|
|
817
|
-
|
|
818
|
-
defaultMessage: 'Missing required field'
|
|
773
|
+
id: "DeleteResourcesModal.missingRequiredField",
|
|
774
|
+
defaultMessage: "Missing required field"
|
|
819
775
|
},
|
|
820
776
|
missingKeyError: {
|
|
821
|
-
id:
|
|
822
|
-
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
777
|
+
id: "DeleteResourcesModal.missingKeyError",
|
|
823
778
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
824
779
|
},
|
|
825
780
|
csvFormatErrorTitle: {
|
|
826
|
-
id:
|
|
827
|
-
|
|
828
|
-
defaultMessage: 'Invalid CSV file'
|
|
781
|
+
id: "DeleteResourcesModal.csvFormatErrorTitle",
|
|
782
|
+
defaultMessage: "Invalid CSV file"
|
|
829
783
|
},
|
|
830
784
|
csvFormatErrorDescription: {
|
|
831
|
-
id:
|
|
832
|
-
description: 'Error message displayed when the CSV file is not formatted correctly',
|
|
785
|
+
id: "FileUpload.csvFormatErrorDescription",
|
|
833
786
|
defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
|
|
834
787
|
}
|
|
835
788
|
});
|
|
@@ -1136,19 +1089,16 @@ const FileDropArea = () => {
|
|
|
1136
1089
|
|
|
1137
1090
|
var messages$2 = reactIntl.defineMessages({
|
|
1138
1091
|
fileUploadInstruction: {
|
|
1139
|
-
id:
|
|
1140
|
-
description: 'Instructions for uploading a CSV file with resource keys to delete',
|
|
1092
|
+
id: "DeleteResourcesModal.fileUploadInstruction",
|
|
1141
1093
|
defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
|
|
1142
1094
|
},
|
|
1143
1095
|
fileUploadInstructionForMaxFileSize: {
|
|
1144
|
-
id:
|
|
1145
|
-
|
|
1146
|
-
defaultMessage: 'Maximum file size is {maxFileSize} MB with a limit of {maxRowCount} rows. Download <csvTemplateLink>the CSV template</csvTemplateLink> or refer to <documentationLink>the documentation</documentationLink>.'
|
|
1096
|
+
id: "DeleteResourcesModal.fileUploadInstructionForMaxFileSize",
|
|
1097
|
+
defaultMessage: "Maximum file size is {maxFileSize} MB with a limit of {maxRowCount} rows. Download <csvTemplateLink>the CSV template</csvTemplateLink> or refer to <documentationLink>the documentation</documentationLink>."
|
|
1147
1098
|
},
|
|
1148
1099
|
unpublishNote: {
|
|
1149
|
-
id:
|
|
1150
|
-
|
|
1151
|
-
defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
|
|
1100
|
+
id: "DeleteResourcesModal.unpublishNote",
|
|
1101
|
+
defaultMessage: "Please note that published products <b>must be unpublished</b> before they can be deleted."
|
|
1152
1102
|
}
|
|
1153
1103
|
});
|
|
1154
1104
|
|
|
@@ -1309,23 +1259,20 @@ const Uploading = () => {
|
|
|
1309
1259
|
|
|
1310
1260
|
var messages$1 = reactIntl.defineMessages({
|
|
1311
1261
|
uploadNewFile: {
|
|
1312
|
-
id:
|
|
1313
|
-
defaultMessage:
|
|
1262
|
+
id: "DeleteResourcesModal.uploadNewFile",
|
|
1263
|
+
defaultMessage: "Upload new file"
|
|
1314
1264
|
},
|
|
1315
1265
|
uploadErrorDescription: {
|
|
1316
|
-
id:
|
|
1317
|
-
|
|
1318
|
-
defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
|
|
1266
|
+
id: "DeleteResourcesModal.uploadError",
|
|
1267
|
+
defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
|
|
1319
1268
|
},
|
|
1320
1269
|
errorType: {
|
|
1321
|
-
id:
|
|
1322
|
-
|
|
1323
|
-
defaultMessage: 'Error type'
|
|
1270
|
+
id: "DeleteResourcesModal.errorType",
|
|
1271
|
+
defaultMessage: "Error type"
|
|
1324
1272
|
},
|
|
1325
1273
|
details: {
|
|
1326
|
-
id:
|
|
1327
|
-
|
|
1328
|
-
defaultMessage: 'Details'
|
|
1274
|
+
id: "DeleteResourcesModal.details",
|
|
1275
|
+
defaultMessage: "Details"
|
|
1329
1276
|
}
|
|
1330
1277
|
});
|
|
1331
1278
|
|
|
@@ -1435,44 +1382,36 @@ function getBold$2(msg) {
|
|
|
1435
1382
|
|
|
1436
1383
|
var messages = reactIntl.defineMessages({
|
|
1437
1384
|
continue: {
|
|
1438
|
-
id:
|
|
1439
|
-
|
|
1440
|
-
defaultMessage: 'Continue'
|
|
1385
|
+
id: "DeleteResourcesModal.continue",
|
|
1386
|
+
defaultMessage: "Continue"
|
|
1441
1387
|
},
|
|
1442
1388
|
heresAPreview: {
|
|
1443
|
-
id:
|
|
1444
|
-
description: 'Here is a preview',
|
|
1389
|
+
id: "DeleteResourcesModal.heresAPreview",
|
|
1445
1390
|
defaultMessage: "Here's a preview:"
|
|
1446
1391
|
},
|
|
1447
1392
|
resourcesToBeDeleted: {
|
|
1448
|
-
id:
|
|
1449
|
-
|
|
1450
|
-
defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
|
|
1393
|
+
id: "DeleteResourcesModal.resourcesToBeDeleted",
|
|
1394
|
+
defaultMessage: "{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}"
|
|
1451
1395
|
},
|
|
1452
1396
|
confirmationQuestion: {
|
|
1453
|
-
id:
|
|
1454
|
-
|
|
1455
|
-
defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
|
|
1397
|
+
id: "DeleteResourcesModal.confirmationQuestion",
|
|
1398
|
+
defaultMessage: "Are you sure you want to delete the {resourceTypePlural}?"
|
|
1456
1399
|
},
|
|
1457
1400
|
confirmationText: {
|
|
1458
|
-
id:
|
|
1459
|
-
|
|
1460
|
-
defaultMessage: '{count, plural, one {You are about to delete <b>{count}</b> {resourceType} in the project: <b>{projectName}</b>.} other {You are about to deleted <b>{count}</b> {resourceTypePlural} in the project: <b>{projectName}</b>.}}'
|
|
1401
|
+
id: "DeleteResourcesModal.confirmationText",
|
|
1402
|
+
defaultMessage: "{count, plural, one {You are about to delete <b>{count}</b> {resourceType} in the project: <b>{projectName}</b>.} other {You are about to deleted <b>{count}</b> {resourceTypePlural} in the project: <b>{projectName}</b>.}}"
|
|
1461
1403
|
},
|
|
1462
1404
|
cannotBeUndoneNote: {
|
|
1463
|
-
id:
|
|
1464
|
-
|
|
1465
|
-
defaultMessage: 'This action cannot be undone.'
|
|
1405
|
+
id: "DeleteResourcesModal.cannotBeUndoneNote",
|
|
1406
|
+
defaultMessage: "This action cannot be undone."
|
|
1466
1407
|
},
|
|
1467
1408
|
importStarted: {
|
|
1468
|
-
id:
|
|
1469
|
-
|
|
1470
|
-
defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
|
|
1409
|
+
id: "DeleteResourcesModal.importStarted",
|
|
1410
|
+
defaultMessage: "<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
|
|
1471
1411
|
},
|
|
1472
1412
|
preparingImport: {
|
|
1473
|
-
id:
|
|
1474
|
-
|
|
1475
|
-
defaultMessage: '<b>Prepare bulk delete.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be deleted after the import is finalized.'
|
|
1413
|
+
id: "DeleteResourcesModal.preparingImport",
|
|
1414
|
+
defaultMessage: "<b>Prepare bulk delete.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be deleted after the import is finalized."
|
|
1476
1415
|
}
|
|
1477
1416
|
});
|
|
1478
1417
|
|
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.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@babel/runtime": "7.26.0",
|
|
19
19
|
"@babel/runtime-corejs3": "7.26.0",
|
|
20
20
|
"@commercetools-frontend/fullstory": "2.5.1",
|
|
21
|
-
"@commercetools-frontend/permissions": "22.
|
|
21
|
+
"@commercetools-frontend/permissions": "22.38.1",
|
|
22
22
|
"@commercetools/importapi-sdk": "5.18.0",
|
|
23
23
|
"@emotion/react": "11.14.0",
|
|
24
24
|
"@emotion/styled": "11.14.0",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"react-dropzone": "14.3.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commercetools-frontend/actions-global": "22.
|
|
42
|
-
"@commercetools-frontend/application-components": "22.
|
|
43
|
-
"@commercetools-frontend/application-shell": "22.
|
|
44
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
45
|
-
"@commercetools-frontend/constants": "22.
|
|
46
|
-
"@commercetools-frontend/i18n": "22.
|
|
47
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
48
|
-
"@commercetools-frontend/sdk": "22.
|
|
49
|
-
"@commercetools-frontend/sentry": "22.
|
|
41
|
+
"@commercetools-frontend/actions-global": "22.38.1",
|
|
42
|
+
"@commercetools-frontend/application-components": "22.38.1",
|
|
43
|
+
"@commercetools-frontend/application-shell": "22.38.1",
|
|
44
|
+
"@commercetools-frontend/application-shell-connectors": "22.38.1",
|
|
45
|
+
"@commercetools-frontend/constants": "22.38.1",
|
|
46
|
+
"@commercetools-frontend/i18n": "22.38.1",
|
|
47
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.38.1",
|
|
48
|
+
"@commercetools-frontend/sdk": "22.38.1",
|
|
49
|
+
"@commercetools-frontend/sentry": "22.38.1",
|
|
50
50
|
"@commercetools-frontend/ui-kit": "19.20.1",
|
|
51
51
|
"@commercetools-uikit/data-table": "19.20.1",
|
|
52
52
|
"@commercetools-uikit/design-system": "19.20.1",
|