@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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-5d0162f5.cjs.prod.js');
3
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c8f4c755.cjs.prod.js');
4
4
  var jsxRuntime = require('@emotion/react/jsx-runtime');
5
5
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-ac43c2da.cjs.dev.js');
3
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c39e3139.cjs.dev.js');
4
4
  var jsxRuntime = require('@emotion/react/jsx-runtime');
5
5
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -1,4 +1,4 @@
1
- import { F as FileDropped, E as EnabledDropArea } from './index-eb45ca2b.esm.js';
1
+ import { F as FileDropped, E as EnabledDropArea } from './index-93809c35.esm.js';
2
2
  import { jsx } from '@emotion/react/jsx-runtime';
3
3
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
4
4
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-ac43c2da.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c39e3139.cjs.dev.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
8
8
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-5d0162f5.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c8f4c755.cjs.prod.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
8
8
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -1,4 +1,4 @@
1
- export { D as default } from './index-eb45ca2b.esm.js';
1
+ export { D as default } from './index-93809c35.esm.js';
2
2
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
3
3
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
4
4
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
11
11
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  require('react');
13
13
  var uiKit = require('@commercetools-frontend/ui-kit');
14
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-ac43c2da.cjs.dev.js');
14
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c39e3139.cjs.dev.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('react-intl');
17
17
  require('@commercetools-frontend/application-shell-connectors');
@@ -9,7 +9,7 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import 'react';
11
11
  import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
12
- import { m as messages } from './index-eb45ca2b.esm.js';
12
+ import { m as messages } from './index-93809c35.esm.js';
13
13
  import { jsxs, jsx } from '@emotion/react/jsx-runtime';
14
14
  import 'react-intl';
15
15
  import '@commercetools-frontend/application-shell-connectors';
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
11
11
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  require('react');
13
13
  var uiKit = require('@commercetools-frontend/ui-kit');
14
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-5d0162f5.cjs.prod.js');
14
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c8f4c755.cjs.prod.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('react-intl');
17
17
  require('@commercetools-frontend/application-shell-connectors');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var reactIntl = require('react-intl');
4
4
  var uiKit = require('@commercetools-frontend/ui-kit');
5
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-ac43c2da.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c39e3139.cjs.dev.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  require('@commercetools-frontend/application-shell-connectors');
@@ -1,6 +1,6 @@
1
1
  import { useIntl } from 'react-intl';
2
2
  import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
3
- import { u as useDeleteResourcesContext, m as messages } from './index-eb45ca2b.esm.js';
3
+ import { u as useDeleteResourcesContext, m as messages } from './index-93809c35.esm.js';
4
4
  import 'react';
5
5
  import '@commercetools-frontend/actions-global';
6
6
  import '@commercetools-frontend/application-shell-connectors';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var reactIntl = require('react-intl');
4
4
  var uiKit = require('@commercetools-frontend/ui-kit');
5
- var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-5d0162f5.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-c8f4c755.cjs.prod.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  require('@commercetools-frontend/application-shell-connectors');
@@ -229,144 +229,116 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
229
229
 
230
230
  var sharedMessages = defineMessages({
231
231
  deleteModalTitle: {
232
- id: 'DeleteResourcesModal.deleteModalTitle',
233
- description: 'The title of the modal',
234
- defaultMessage: 'Bulk delete via CSV'
232
+ id: "DeleteResourcesModal.deleteModalTitle",
233
+ defaultMessage: "Bulk delete via CSV"
235
234
  },
236
235
  startBulkDelete: {
237
- id: 'DeleteResourcesModal.startBulkDelete',
238
- description: 'Start bulk delete button',
239
- defaultMessage: 'Start bulk delete'
236
+ id: "DeleteResourcesModal.startBulkDelete",
237
+ defaultMessage: "Start bulk delete"
240
238
  },
241
239
  cancel: {
242
- id: 'DeleteResourcesModal.cancel',
243
- description: 'The label for the cancel button',
244
- defaultMessage: 'Cancel'
240
+ id: "DeleteResourcesModal.cancel",
241
+ defaultMessage: "Cancel"
245
242
  },
246
243
  product: {
247
- id: 'DeleteResourcesModal.product',
248
- description: 'Label for the product resource type',
249
- defaultMessage: 'product'
244
+ id: "DeleteResourcesModal.product",
245
+ defaultMessage: "product"
250
246
  },
251
247
  products: {
252
- id: 'DeleteResourcesModal.products',
253
- description: 'Plural form of product',
254
- defaultMessage: 'products'
248
+ id: "DeleteResourcesModal.products",
249
+ defaultMessage: "products"
255
250
  },
256
251
  inventory: {
257
- id: 'DeleteResourcesModal.inventory',
258
- description: 'Label for the inventory entry resource type',
259
- defaultMessage: 'inventory entry'
252
+ id: "DeleteResourcesModal.inventory",
253
+ defaultMessage: "inventory entry"
260
254
  },
261
255
  inventories: {
262
- id: 'DeleteResourcesModal.inventories',
263
- description: 'Plural form of inventory entry',
264
- defaultMessage: 'inventory entries'
256
+ id: "DeleteResourcesModal.inventories",
257
+ defaultMessage: "inventory entries"
265
258
  },
266
259
  category: {
267
- id: 'DeleteResourcesModal.category',
268
- description: 'Label for the category resource type',
269
- defaultMessage: 'category'
260
+ id: "DeleteResourcesModal.category",
261
+ defaultMessage: "category"
270
262
  },
271
263
  categories: {
272
- id: 'DeleteResourcesModal.categories',
273
- description: 'Plural form of category',
274
- defaultMessage: 'categories'
264
+ id: "DeleteResourcesModal.categories",
265
+ defaultMessage: "categories"
275
266
  },
276
267
  customer: {
277
- id: 'DeleteResourcesModal.customer',
278
- description: 'Label for the customer resource type',
279
- defaultMessage: 'customer'
268
+ id: "DeleteResourcesModal.customer",
269
+ defaultMessage: "customer"
280
270
  },
281
271
  customers: {
282
- id: 'DeleteResourcesModal.customers',
283
- description: 'Plural form of customer',
284
- defaultMessage: 'customers'
272
+ id: "DeleteResourcesModal.customers",
273
+ defaultMessage: "customers"
285
274
  },
286
275
  order: {
287
- id: 'DeleteResourcesModal.order',
288
- description: 'Label for the order resource type',
289
- defaultMessage: 'order'
276
+ id: "DeleteResourcesModal.order",
277
+ defaultMessage: "order"
290
278
  },
291
279
  orders: {
292
- id: 'DeleteResourcesModal.orders',
293
- description: 'Plural form of order',
294
- defaultMessage: 'orders'
280
+ id: "DeleteResourcesModal.orders",
281
+ defaultMessage: "orders"
295
282
  },
296
283
  price: {
297
- id: 'DeleteResourcesModal.price',
298
- description: 'Label for the price resource type',
299
- defaultMessage: 'price'
284
+ id: "DeleteResourcesModal.price",
285
+ defaultMessage: "price"
300
286
  },
301
287
  prices: {
302
- id: 'DeleteResourcesModal.prices',
303
- description: 'Plural form of price',
304
- defaultMessage: 'prices'
288
+ id: "DeleteResourcesModal.prices",
289
+ defaultMessage: "prices"
305
290
  },
306
291
  'product-draft': {
307
- id: 'DeleteResourcesModal.product-draft',
308
- description: 'Label for the product-draft resource type',
309
- defaultMessage: 'product draft'
292
+ id: "DeleteResourcesModal.product-draft",
293
+ defaultMessage: "product draft"
310
294
  },
311
295
  'product-drafts': {
312
- id: 'DeleteResourcesModal.product-drafts',
313
- description: 'Plural form of product draft',
314
- defaultMessage: 'product drafts'
296
+ id: "DeleteResourcesModal.product-drafts",
297
+ defaultMessage: "product drafts"
315
298
  },
316
299
  'product-type': {
317
- id: 'DeleteResourcesModal.product-type',
318
- description: 'Label for the product-type resource type',
319
- defaultMessage: 'product type'
300
+ id: "DeleteResourcesModal.product-type",
301
+ defaultMessage: "product type"
320
302
  },
321
303
  'product-types': {
322
- id: 'DeleteResourcesModal.product-types',
323
- description: 'Plural form of product type',
324
- defaultMessage: 'product types'
304
+ id: "DeleteResourcesModal.product-types",
305
+ defaultMessage: "product types"
325
306
  },
326
307
  'product-variant': {
327
- id: 'DeleteResourcesModal.product-variant',
328
- description: 'Label for the product-variant resource type',
329
- defaultMessage: 'product variant'
308
+ id: "DeleteResourcesModal.product-variant",
309
+ defaultMessage: "product variant"
330
310
  },
331
311
  'product-variants': {
332
- id: 'DeleteResourcesModal.product-variants',
333
- description: 'Plural form of product variant',
334
- defaultMessage: 'product variants'
312
+ id: "DeleteResourcesModal.product-variants",
313
+ defaultMessage: "product variants"
335
314
  },
336
315
  'product-variant-patch': {
337
- id: 'DeleteResourcesModal.product-variant-patch',
338
- description: 'Label for the product-variant-patch resource type',
339
- defaultMessage: 'product variant patch'
316
+ id: "DeleteResourcesModal.product-variant-patch",
317
+ defaultMessage: "product variant patch"
340
318
  },
341
319
  'product-variant-patches': {
342
- id: 'DeleteResourcesModal.product-variant-patches',
343
- description: 'Plural form of product variant patch',
344
- defaultMessage: 'product variant patches'
320
+ id: "DeleteResourcesModal.product-variant-patches",
321
+ defaultMessage: "product variant patches"
345
322
  },
346
323
  'standalone-price': {
347
- id: 'DeleteResourcesModal.standalone-price',
348
- description: 'Label for the standalone-price resource type',
349
- defaultMessage: 'standalone price'
324
+ id: "DeleteResourcesModal.standalone-price",
325
+ defaultMessage: "standalone price"
350
326
  },
351
327
  'standalone-prices': {
352
- id: 'DeleteResourcesModal.standalone-prices',
353
- description: 'Plural form of standalone price',
354
- defaultMessage: 'standalone prices'
328
+ id: "DeleteResourcesModal.standalone-prices",
329
+ defaultMessage: "standalone prices"
355
330
  },
356
331
  'discount-code': {
357
- id: 'DeleteResourcesModal.discount-code',
358
- description: 'Label for the discount-code resource type',
359
- defaultMessage: 'discount code'
332
+ id: "DeleteResourcesModal.discount-code",
333
+ defaultMessage: "discount code"
360
334
  },
361
335
  'discount-codes': {
362
- id: 'DeleteResourcesModal.discount-codes',
363
- description: 'Plural form of discount code',
364
- defaultMessage: 'discount codes'
336
+ id: "DeleteResourcesModal.discount-codes",
337
+ defaultMessage: "discount codes"
365
338
  },
366
339
  unknownResourceType: {
367
- id: 'DeleteResourcesModal.unknown-resource-type',
368
- description: 'Label for the unknown resource type',
369
- defaultMessage: 'unknown resource type'
340
+ id: "DeleteResourcesModal.unknown-resource-type",
341
+ defaultMessage: "unknown resource type"
370
342
  }
371
343
  });
372
344
 
@@ -655,11 +627,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
655
627
  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== */");
656
628
  }
657
629
 
658
- var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-ce2fab3c.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
630
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-9c30f4d8.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
659
631
 
660
- var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-b84a3295.esm.js' /* webpackChunkName: "enabled-drop-area" */));
632
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-d0428659.esm.js' /* webpackChunkName: "enabled-drop-area" */));
661
633
 
662
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-725e578c.esm.js' /* webpackChunkName: "filed-dropped-area" */));
634
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-4a9a52a3.esm.js' /* webpackChunkName: "filed-dropped-area" */));
663
635
 
664
636
  function getDropArea(_ref) {
665
637
  let dropAreaState = _ref.dropAreaState,
@@ -692,58 +664,48 @@ function getDropAreaState(flags) {
692
664
 
693
665
  var messages$4 = defineMessages({
694
666
  dragAndDropCSV: {
695
- id: 'DeleteResourcesModal.dragAndDropCSV',
696
- description: 'The message telling the user to drag and drop CSV file in the file drop area',
697
- defaultMessage: 'Drag and drop CSV'
667
+ id: "DeleteResourcesModal.dragAndDropCSV",
668
+ defaultMessage: "Drag and drop CSV"
698
669
  },
699
670
  or: {
700
- id: 'DeleteResourcesModal.or',
701
- description: 'The word "or" in the drag and drop message',
702
- defaultMessage: 'or'
671
+ id: "DeleteResourcesModal.or",
672
+ defaultMessage: "or"
703
673
  },
704
674
  browseButton: {
705
- id: 'DeleteResourcesModal.browseFile',
706
- defaultMessage: 'Browse file'
675
+ id: "DeleteResourcesModal.browseFile",
676
+ defaultMessage: "Browse file"
707
677
  },
708
678
  uploadAndPreview: {
709
- id: 'DeleteResourcesModal.uploadAndPreview',
710
- description: 'Label for the button that uploads the file and shows the preview',
711
- defaultMessage: 'Upload and preview'
679
+ id: "DeleteResourcesModal.uploadAndPreview",
680
+ defaultMessage: "Upload and preview"
712
681
  },
713
682
  chooseFile: {
714
- id: 'DeleteResourcesModal.chooseFile',
715
- description: 'Label for a button on the file upload page, shown on ready to upload state',
716
- defaultMessage: 'Choose file'
683
+ id: "DeleteResourcesModal.chooseFile",
684
+ defaultMessage: "Choose file"
717
685
  },
718
686
  fileUploadFailed: {
719
- id: 'DeleteResourcesModal.fileUploadFailed',
720
- description: 'A title on the file upload page, shown on file upload error state',
721
- defaultMessage: 'File upload failed'
687
+ id: "DeleteResourcesModal.fileUploadFailed",
688
+ defaultMessage: "File upload failed"
722
689
  },
723
690
  fileFormatNotSupported: {
724
- id: 'DeleteResourcesModal.fileFormatNotSupported',
725
- description: 'Error message displayed when a user drags and drops a non-CSV file',
726
- defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
691
+ id: "DeleteResourcesModal.fileFormatNotSupported",
692
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
727
693
  },
728
694
  tooManyFilesError: {
729
- id: 'DeleteResourcesModal.tooManyFilesError',
730
- description: 'Error message displayed when a user drags and drops multiple files at once',
731
- defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
695
+ id: "DeleteResourcesModal.tooManyFilesError",
696
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
732
697
  },
733
698
  genericError: {
734
- id: 'DeleteResourcesModal.genericError',
735
- description: 'Default error message for unexpected file upload issues (for unhandled cases)',
736
- defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
699
+ id: "DeleteResourcesModal.genericError",
700
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
737
701
  },
738
702
  dataType: {
739
- id: 'DeleteResourcesModal.dataType',
740
- description: 'Label for the data type selection dropdown',
741
- defaultMessage: 'Data type'
703
+ id: "DeleteResourcesModal.dataType",
704
+ defaultMessage: "Data type"
742
705
  },
743
706
  instructions: {
744
- id: 'DeleteResourcesModal.instructions',
745
- description: 'Label for the instructions section',
746
- defaultMessage: 'Instructions'
707
+ id: "DeleteResourcesModal.instructions",
708
+ defaultMessage: "Instructions"
747
709
  }
748
710
  });
749
711
 
@@ -757,56 +719,47 @@ const useDeleteResourcesContext = () => {
757
719
 
758
720
  var messages$3 = defineMessages({
759
721
  fileSizeExceededTitle: {
760
- id: 'DeleteResourcesModal.sizeExceededTitle',
761
- defaultMessage: 'File size exceeded'
722
+ id: "DeleteResourcesModal.sizeExceededTitle",
723
+ defaultMessage: "File size exceeded"
762
724
  },
763
725
  fileSizeExceededDescription: {
764
- id: 'DeleteResourcesModal.sizeExceededDescription',
765
- description: 'Error description when the file size exceeds the allowable limit',
766
- defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
726
+ id: "DeleteResourcesModal.sizeExceededDescription",
727
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
767
728
  },
768
729
  rowLimitExceededTitle: {
769
- id: 'DeleteResourcesModal.rowLimitExceededTitle',
770
- defaultMessage: 'Row limit exceeded'
730
+ id: "DeleteResourcesModal.rowLimitExceededTitle",
731
+ defaultMessage: "Row limit exceeded"
771
732
  },
772
733
  rowLimitExceededDescription: {
773
- id: 'DeleteResourcesModal.rowLimitExceededDescription',
774
- description: 'Error description when the file contains more rows than the allowable maximum',
775
- defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
734
+ id: "DeleteResourcesModal.rowLimitExceededDescription",
735
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
776
736
  },
777
737
  dropAreaNotEnoughRowsTitle: {
778
- id: 'DeleteResourcesModal.dropAreaNotEnoughRowsTitle',
779
- description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
780
- defaultMessage: 'Invalid CSV file'
738
+ id: "DeleteResourcesModal.dropAreaNotEnoughRowsTitle",
739
+ defaultMessage: "Invalid CSV file"
781
740
  },
782
741
  dropAreaNotEnoughRowsDescription: {
783
- id: 'DeleteResourcesModal.dropAreaNotEnoughRowsDescription',
784
- description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
785
- defaultMessage: 'Make sure the file contains a header and at least one row of data'
742
+ id: "DeleteResourcesModal.dropAreaNotEnoughRowsDescription",
743
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
786
744
  },
787
745
  unexpectedError: {
788
- id: 'DeleteResourcesModal.unexpectedError',
789
- description: 'Generic notification message when file upload fails',
790
- defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
746
+ id: "DeleteResourcesModal.unexpectedError",
747
+ defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
791
748
  },
792
749
  missingRequiredField: {
793
- id: 'DeleteResourcesModal.missingRequiredField',
794
- description: 'Error message displayed when a required field is missing',
795
- defaultMessage: 'Missing required field'
750
+ id: "DeleteResourcesModal.missingRequiredField",
751
+ defaultMessage: "Missing required field"
796
752
  },
797
753
  missingKeyError: {
798
- id: 'DeleteResourcesModal.missingKeyError',
799
- description: 'Error message displayed when the uploaded file is missing the key field',
754
+ id: "DeleteResourcesModal.missingKeyError",
800
755
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
801
756
  },
802
757
  csvFormatErrorTitle: {
803
- id: 'DeleteResourcesModal.csvFormatErrorTitle',
804
- description: 'Error title shown when the uploaded CSV file is not formatted correctly',
805
- defaultMessage: 'Invalid CSV file'
758
+ id: "DeleteResourcesModal.csvFormatErrorTitle",
759
+ defaultMessage: "Invalid CSV file"
806
760
  },
807
761
  csvFormatErrorDescription: {
808
- id: 'FileUpload.csvFormatErrorDescription',
809
- description: 'Error message displayed when the CSV file is not formatted correctly',
762
+ id: "FileUpload.csvFormatErrorDescription",
810
763
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
811
764
  }
812
765
  });
@@ -1113,19 +1066,16 @@ const FileDropArea = () => {
1113
1066
 
1114
1067
  var messages$2 = defineMessages({
1115
1068
  fileUploadInstruction: {
1116
- id: 'DeleteResourcesModal.fileUploadInstruction',
1117
- description: 'Instructions for uploading a CSV file with resource keys to delete',
1069
+ id: "DeleteResourcesModal.fileUploadInstruction",
1118
1070
  defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
1119
1071
  },
1120
1072
  fileUploadInstructionForMaxFileSize: {
1121
- id: 'DeleteResourcesModal.fileUploadInstructionForMaxFileSize',
1122
- description: 'Instructions for uploading a CSV file with a max file size',
1123
- 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>.'
1073
+ id: "DeleteResourcesModal.fileUploadInstructionForMaxFileSize",
1074
+ 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>."
1124
1075
  },
1125
1076
  unpublishNote: {
1126
- id: 'DeleteResourcesModal.unpublishNote',
1127
- description: 'Note to unpublish products before deleting them',
1128
- defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
1077
+ id: "DeleteResourcesModal.unpublishNote",
1078
+ defaultMessage: "Please note that published products <b>must be unpublished</b> before they can be deleted."
1129
1079
  }
1130
1080
  });
1131
1081
 
@@ -1286,23 +1236,20 @@ const Uploading = () => {
1286
1236
 
1287
1237
  var messages$1 = defineMessages({
1288
1238
  uploadNewFile: {
1289
- id: 'DeleteResourcesModal.uploadNewFile',
1290
- defaultMessage: 'Upload new file'
1239
+ id: "DeleteResourcesModal.uploadNewFile",
1240
+ defaultMessage: "Upload new file"
1291
1241
  },
1292
1242
  uploadErrorDescription: {
1293
- id: 'DeleteResourcesModal.uploadError',
1294
- description: 'Title when errors detected while uploading file',
1295
- defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
1243
+ id: "DeleteResourcesModal.uploadError",
1244
+ defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
1296
1245
  },
1297
1246
  errorType: {
1298
- id: 'DeleteResourcesModal.errorType',
1299
- description: 'Error type" column',
1300
- defaultMessage: 'Error type'
1247
+ id: "DeleteResourcesModal.errorType",
1248
+ defaultMessage: "Error type"
1301
1249
  },
1302
1250
  details: {
1303
- id: 'DeleteResourcesModal.details',
1304
- description: '"Details" column',
1305
- defaultMessage: 'Details'
1251
+ id: "DeleteResourcesModal.details",
1252
+ defaultMessage: "Details"
1306
1253
  }
1307
1254
  });
1308
1255
 
@@ -1412,44 +1359,36 @@ function getBold$2(msg) {
1412
1359
 
1413
1360
  var messages = defineMessages({
1414
1361
  continue: {
1415
- id: 'DeleteResourcesModal.continue',
1416
- description: 'Continue button',
1417
- defaultMessage: 'Continue'
1362
+ id: "DeleteResourcesModal.continue",
1363
+ defaultMessage: "Continue"
1418
1364
  },
1419
1365
  heresAPreview: {
1420
- id: 'DeleteResourcesModal.heresAPreview',
1421
- description: 'Here is a preview',
1366
+ id: "DeleteResourcesModal.heresAPreview",
1422
1367
  defaultMessage: "Here's a preview:"
1423
1368
  },
1424
1369
  resourcesToBeDeleted: {
1425
- id: 'DeleteResourcesModal.resourcesToBeDeleted',
1426
- description: 'Resources to be deleted',
1427
- defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
1370
+ id: "DeleteResourcesModal.resourcesToBeDeleted",
1371
+ defaultMessage: "{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}"
1428
1372
  },
1429
1373
  confirmationQuestion: {
1430
- id: 'DeleteResourcesModal.confirmationQuestion',
1431
- description: 'Confirmation question',
1432
- defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
1374
+ id: "DeleteResourcesModal.confirmationQuestion",
1375
+ defaultMessage: "Are you sure you want to delete the {resourceTypePlural}?"
1433
1376
  },
1434
1377
  confirmationText: {
1435
- id: 'DeleteResourcesModal.confirmationText',
1436
- description: 'Confirmation text',
1437
- 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>.}}'
1378
+ id: "DeleteResourcesModal.confirmationText",
1379
+ 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>.}}"
1438
1380
  },
1439
1381
  cannotBeUndoneNote: {
1440
- id: 'DeleteResourcesModal.cannotBeUndoneNote',
1441
- description: 'Cannot be undone note in the confirmation dialog',
1442
- defaultMessage: 'This action cannot be undone.'
1382
+ id: "DeleteResourcesModal.cannotBeUndoneNote",
1383
+ defaultMessage: "This action cannot be undone."
1443
1384
  },
1444
1385
  importStarted: {
1445
- id: 'DeleteResourcesModal.importStarted',
1446
- description: 'Import started',
1447
- defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
1386
+ id: "DeleteResourcesModal.importStarted",
1387
+ defaultMessage: "<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
1448
1388
  },
1449
1389
  preparingImport: {
1450
- id: 'DeleteResourcesModal.preparingImport',
1451
- description: 'Preparing import',
1452
- 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.'
1390
+ id: "DeleteResourcesModal.preparingImport",
1391
+ 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."
1453
1392
  }
1454
1393
  });
1455
1394