@commercetools-frontend-extensions/export-resources-modal 5.13.4 → 5.14.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.
@@ -168,6 +168,11 @@ var messages = reactIntl.defineMessages({
168
168
  description: 'Label for the product tailorings modal title',
169
169
  defaultMessage: 'Export tailored products'
170
170
  },
171
+ 'modalTitle.standalone-price': {
172
+ id: 'ExportResourcesModal.modalTitle.standalonePrice',
173
+ description: 'Label for the standalone prices modal title',
174
+ defaultMessage: 'Export standalone prices'
175
+ },
171
176
  outputFormat: {
172
177
  id: 'ExportResourcesModal.outputFormat',
173
178
  description: 'File format like (csv, xls, ...etc)',
@@ -412,6 +417,21 @@ var messages = reactIntl.defineMessages({
412
417
  description: 'Label for Export For a specific store option for product tailorings',
413
418
  defaultMessage: 'Export tailored products for a specific store'
414
419
  },
420
+ exportScopeAllStandalonePrices: {
421
+ id: 'ExportResourcesModal.exportScopeAllStandalonePrices',
422
+ description: 'Label for Export All standalone prices',
423
+ defaultMessage: 'Export all: {total, plural, one {# standalone price} other {# standalone prices}}'
424
+ },
425
+ exportScopeSelectedStandalonePrices: {
426
+ id: 'ExportResourcesModal.exportScopeSelectedStandalonePrices',
427
+ description: 'Label for Export Selected standalone prices',
428
+ defaultMessage: 'Export selected: {total, plural, one {# standalone price} other {# standalone prices}}'
429
+ },
430
+ exportScopeFilteredStandalonePrices: {
431
+ id: 'ExportResourcesModal.exportScopeFilteredStandalonePrices',
432
+ description: 'Label for Export Filtered standalone prices',
433
+ defaultMessage: 'Export filtered: {total, plural, one {# standalone price} other {# standalone prices}}'
434
+ },
415
435
  exportScopeAllOrders: {
416
436
  id: 'ExportResourcesModal.exportScopeAllOrders',
417
437
  description: 'Label for Export All orders',
@@ -539,8 +559,8 @@ var messages = reactIntl.defineMessages({
539
559
  },
540
560
  selectFieldsFromImportedCSV: {
541
561
  id: 'ExportResourcesModal.selectFieldsFromImportedCSV',
542
- description: 'Label for "Select fields from an imported CSV" button',
543
- defaultMessage: 'Select fields from an imported CSV'
562
+ description: 'Label for "Select any field from an imported CSV" button',
563
+ defaultMessage: 'Select any field from an imported CSV'
544
564
  },
545
565
  defineFieldsToIncludeInExport: {
546
566
  id: 'ExportResourcesModal.defineFieldsToIncludeInExport',
@@ -882,7 +902,8 @@ const EXPORTABLE_RESOURCES = {
882
902
  ORDER: 'order',
883
903
  CUSTOMER: 'customer',
884
904
  BUSINESS_UNIT: 'business-unit',
885
- PRODUCT_TAILORING: 'product-tailoring'
905
+ PRODUCT_TAILORING: 'product-tailoring',
906
+ STANDALONE_PRICE: 'standalone-price'
886
907
  };
887
908
 
888
909
  const OUTPUT_FORMATS = {
@@ -948,6 +969,11 @@ const resourceTypeMessages = {
948
969
  exportScopeSelected: messages.exportScopeSelectedProductTailorings,
949
970
  exportScopeFiltered: messages.exportScopeFilteredProductTailorings,
950
971
  exportScopeSpecificStore: messages.exportScopeSpecificStoreProductTailorings
972
+ },
973
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: {
974
+ exportScopeAll: messages.exportScopeAllStandalonePrices,
975
+ exportScopeSelected: messages.exportScopeSelectedStandalonePrices,
976
+ exportScopeFiltered: messages.exportScopeFilteredStandalonePrices
951
977
  }
952
978
  };
953
979
 
@@ -1171,7 +1197,8 @@ function resourceTypeToFileName(resourceType, locale) {
1171
1197
  [EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
1172
1198
  [EXPORTABLE_RESOURCES.ORDER]: 'Orders',
1173
1199
  [EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units',
1174
- [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings'
1200
+ [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings',
1201
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: 'Standalone_Prices'
1175
1202
  };
1176
1203
  const displayName = resourceTypeMap[resourceType];
1177
1204
  if (!displayName) {
@@ -3093,16 +3120,6 @@ const ExportFieldsSelectionStep = () => {
3093
3120
  children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3094
3121
  scale: isUsingImportedCsvTemplate ? 'l' : 'xs',
3095
3122
  children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3096
- children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3097
- value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3098
- isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3099
- onChange: handleFieldSelectionModeChange,
3100
- children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3101
- }), jsxRuntime.jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsxRuntime.jsx(uiKit.Spacings.Inset, {
3102
- scale: "l",
3103
- children: jsxRuntime.jsx(SelectedFieldsForm, {})
3104
- })]
3105
- }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3106
3123
  children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3107
3124
  isDisabled: shouldDisableImportedCsvTemplateOption,
3108
3125
  value: FIELD_SELECTION_MODES.IMPORTED_CSV_TEMPLATE,
@@ -3113,6 +3130,16 @@ const ExportFieldsSelectionStep = () => {
3113
3130
  scale: "l",
3114
3131
  children: jsxRuntime.jsx(ImportedCsvTemplateFieldsForm, {})
3115
3132
  })]
3133
+ }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3134
+ children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3135
+ value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3136
+ isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3137
+ onChange: handleFieldSelectionModeChange,
3138
+ children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3139
+ }), jsxRuntime.jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsxRuntime.jsx(uiKit.Spacings.Inset, {
3140
+ scale: "l",
3141
+ children: jsxRuntime.jsx(SelectedFieldsForm, {})
3142
+ })]
3116
3143
  })]
3117
3144
  }), jsxRuntime.jsx(ExportLocaleSelectField, {})]
3118
3145
  })
@@ -168,6 +168,11 @@ var messages = reactIntl.defineMessages({
168
168
  description: 'Label for the product tailorings modal title',
169
169
  defaultMessage: 'Export tailored products'
170
170
  },
171
+ 'modalTitle.standalone-price': {
172
+ id: 'ExportResourcesModal.modalTitle.standalonePrice',
173
+ description: 'Label for the standalone prices modal title',
174
+ defaultMessage: 'Export standalone prices'
175
+ },
171
176
  outputFormat: {
172
177
  id: 'ExportResourcesModal.outputFormat',
173
178
  description: 'File format like (csv, xls, ...etc)',
@@ -412,6 +417,21 @@ var messages = reactIntl.defineMessages({
412
417
  description: 'Label for Export For a specific store option for product tailorings',
413
418
  defaultMessage: 'Export tailored products for a specific store'
414
419
  },
420
+ exportScopeAllStandalonePrices: {
421
+ id: 'ExportResourcesModal.exportScopeAllStandalonePrices',
422
+ description: 'Label for Export All standalone prices',
423
+ defaultMessage: 'Export all: {total, plural, one {# standalone price} other {# standalone prices}}'
424
+ },
425
+ exportScopeSelectedStandalonePrices: {
426
+ id: 'ExportResourcesModal.exportScopeSelectedStandalonePrices',
427
+ description: 'Label for Export Selected standalone prices',
428
+ defaultMessage: 'Export selected: {total, plural, one {# standalone price} other {# standalone prices}}'
429
+ },
430
+ exportScopeFilteredStandalonePrices: {
431
+ id: 'ExportResourcesModal.exportScopeFilteredStandalonePrices',
432
+ description: 'Label for Export Filtered standalone prices',
433
+ defaultMessage: 'Export filtered: {total, plural, one {# standalone price} other {# standalone prices}}'
434
+ },
415
435
  exportScopeAllOrders: {
416
436
  id: 'ExportResourcesModal.exportScopeAllOrders',
417
437
  description: 'Label for Export All orders',
@@ -539,8 +559,8 @@ var messages = reactIntl.defineMessages({
539
559
  },
540
560
  selectFieldsFromImportedCSV: {
541
561
  id: 'ExportResourcesModal.selectFieldsFromImportedCSV',
542
- description: 'Label for "Select fields from an imported CSV" button',
543
- defaultMessage: 'Select fields from an imported CSV'
562
+ description: 'Label for "Select any field from an imported CSV" button',
563
+ defaultMessage: 'Select any field from an imported CSV'
544
564
  },
545
565
  defineFieldsToIncludeInExport: {
546
566
  id: 'ExportResourcesModal.defineFieldsToIncludeInExport',
@@ -882,7 +902,8 @@ const EXPORTABLE_RESOURCES = {
882
902
  ORDER: 'order',
883
903
  CUSTOMER: 'customer',
884
904
  BUSINESS_UNIT: 'business-unit',
885
- PRODUCT_TAILORING: 'product-tailoring'
905
+ PRODUCT_TAILORING: 'product-tailoring',
906
+ STANDALONE_PRICE: 'standalone-price'
886
907
  };
887
908
 
888
909
  const OUTPUT_FORMATS = {
@@ -948,6 +969,11 @@ const resourceTypeMessages = {
948
969
  exportScopeSelected: messages.exportScopeSelectedProductTailorings,
949
970
  exportScopeFiltered: messages.exportScopeFilteredProductTailorings,
950
971
  exportScopeSpecificStore: messages.exportScopeSpecificStoreProductTailorings
972
+ },
973
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: {
974
+ exportScopeAll: messages.exportScopeAllStandalonePrices,
975
+ exportScopeSelected: messages.exportScopeSelectedStandalonePrices,
976
+ exportScopeFiltered: messages.exportScopeFilteredStandalonePrices
951
977
  }
952
978
  };
953
979
 
@@ -1171,7 +1197,8 @@ function resourceTypeToFileName(resourceType, locale) {
1171
1197
  [EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
1172
1198
  [EXPORTABLE_RESOURCES.ORDER]: 'Orders',
1173
1199
  [EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units',
1174
- [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings'
1200
+ [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings',
1201
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: 'Standalone_Prices'
1175
1202
  };
1176
1203
  const displayName = resourceTypeMap[resourceType];
1177
1204
  if (!displayName) {
@@ -3060,16 +3087,6 @@ const ExportFieldsSelectionStep = () => {
3060
3087
  children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3061
3088
  scale: isUsingImportedCsvTemplate ? 'l' : 'xs',
3062
3089
  children: [jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3063
- children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3064
- value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3065
- isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3066
- onChange: handleFieldSelectionModeChange,
3067
- children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3068
- }), jsxRuntime.jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsxRuntime.jsx(uiKit.Spacings.Inset, {
3069
- scale: "l",
3070
- children: jsxRuntime.jsx(SelectedFieldsForm, {})
3071
- })]
3072
- }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3073
3090
  children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3074
3091
  isDisabled: shouldDisableImportedCsvTemplateOption,
3075
3092
  value: FIELD_SELECTION_MODES.IMPORTED_CSV_TEMPLATE,
@@ -3080,6 +3097,16 @@ const ExportFieldsSelectionStep = () => {
3080
3097
  scale: "l",
3081
3098
  children: jsxRuntime.jsx(ImportedCsvTemplateFieldsForm, {})
3082
3099
  })]
3100
+ }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
3101
+ children: [jsxRuntime.jsx(uiKit.RadioInput.Option, {
3102
+ value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3103
+ isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3104
+ onChange: handleFieldSelectionModeChange,
3105
+ children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3106
+ }), jsxRuntime.jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsxRuntime.jsx(uiKit.Spacings.Inset, {
3107
+ scale: "l",
3108
+ children: jsxRuntime.jsx(SelectedFieldsForm, {})
3109
+ })]
3083
3110
  })]
3084
3111
  }), jsxRuntime.jsx(ExportLocaleSelectField, {})]
3085
3112
  })
@@ -125,6 +125,11 @@ var messages = defineMessages({
125
125
  description: 'Label for the product tailorings modal title',
126
126
  defaultMessage: 'Export tailored products'
127
127
  },
128
+ 'modalTitle.standalone-price': {
129
+ id: 'ExportResourcesModal.modalTitle.standalonePrice',
130
+ description: 'Label for the standalone prices modal title',
131
+ defaultMessage: 'Export standalone prices'
132
+ },
128
133
  outputFormat: {
129
134
  id: 'ExportResourcesModal.outputFormat',
130
135
  description: 'File format like (csv, xls, ...etc)',
@@ -369,6 +374,21 @@ var messages = defineMessages({
369
374
  description: 'Label for Export For a specific store option for product tailorings',
370
375
  defaultMessage: 'Export tailored products for a specific store'
371
376
  },
377
+ exportScopeAllStandalonePrices: {
378
+ id: 'ExportResourcesModal.exportScopeAllStandalonePrices',
379
+ description: 'Label for Export All standalone prices',
380
+ defaultMessage: 'Export all: {total, plural, one {# standalone price} other {# standalone prices}}'
381
+ },
382
+ exportScopeSelectedStandalonePrices: {
383
+ id: 'ExportResourcesModal.exportScopeSelectedStandalonePrices',
384
+ description: 'Label for Export Selected standalone prices',
385
+ defaultMessage: 'Export selected: {total, plural, one {# standalone price} other {# standalone prices}}'
386
+ },
387
+ exportScopeFilteredStandalonePrices: {
388
+ id: 'ExportResourcesModal.exportScopeFilteredStandalonePrices',
389
+ description: 'Label for Export Filtered standalone prices',
390
+ defaultMessage: 'Export filtered: {total, plural, one {# standalone price} other {# standalone prices}}'
391
+ },
372
392
  exportScopeAllOrders: {
373
393
  id: 'ExportResourcesModal.exportScopeAllOrders',
374
394
  description: 'Label for Export All orders',
@@ -496,8 +516,8 @@ var messages = defineMessages({
496
516
  },
497
517
  selectFieldsFromImportedCSV: {
498
518
  id: 'ExportResourcesModal.selectFieldsFromImportedCSV',
499
- description: 'Label for "Select fields from an imported CSV" button',
500
- defaultMessage: 'Select fields from an imported CSV'
519
+ description: 'Label for "Select any field from an imported CSV" button',
520
+ defaultMessage: 'Select any field from an imported CSV'
501
521
  },
502
522
  defineFieldsToIncludeInExport: {
503
523
  id: 'ExportResourcesModal.defineFieldsToIncludeInExport',
@@ -839,7 +859,8 @@ const EXPORTABLE_RESOURCES = {
839
859
  ORDER: 'order',
840
860
  CUSTOMER: 'customer',
841
861
  BUSINESS_UNIT: 'business-unit',
842
- PRODUCT_TAILORING: 'product-tailoring'
862
+ PRODUCT_TAILORING: 'product-tailoring',
863
+ STANDALONE_PRICE: 'standalone-price'
843
864
  };
844
865
 
845
866
  const OUTPUT_FORMATS = {
@@ -905,6 +926,11 @@ const resourceTypeMessages = {
905
926
  exportScopeSelected: messages.exportScopeSelectedProductTailorings,
906
927
  exportScopeFiltered: messages.exportScopeFilteredProductTailorings,
907
928
  exportScopeSpecificStore: messages.exportScopeSpecificStoreProductTailorings
929
+ },
930
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: {
931
+ exportScopeAll: messages.exportScopeAllStandalonePrices,
932
+ exportScopeSelected: messages.exportScopeSelectedStandalonePrices,
933
+ exportScopeFiltered: messages.exportScopeFilteredStandalonePrices
908
934
  }
909
935
  };
910
936
 
@@ -1128,7 +1154,8 @@ function resourceTypeToFileName(resourceType, locale) {
1128
1154
  [EXPORTABLE_RESOURCES.CUSTOMER]: 'Customers',
1129
1155
  [EXPORTABLE_RESOURCES.ORDER]: 'Orders',
1130
1156
  [EXPORTABLE_RESOURCES.BUSINESS_UNIT]: 'Business_Units',
1131
- [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings'
1157
+ [EXPORTABLE_RESOURCES.PRODUCT_TAILORING]: 'Product_Tailorings',
1158
+ [EXPORTABLE_RESOURCES.STANDALONE_PRICE]: 'Standalone_Prices'
1132
1159
  };
1133
1160
  const displayName = resourceTypeMap[resourceType];
1134
1161
  if (!displayName) {
@@ -3050,16 +3077,6 @@ const ExportFieldsSelectionStep = () => {
3050
3077
  children: [jsxs(Spacings.Stack, {
3051
3078
  scale: isUsingImportedCsvTemplate ? 'l' : 'xs',
3052
3079
  children: [jsxs(Spacings.Stack, {
3053
- children: [jsx(RadioInput.Option, {
3054
- value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3055
- isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3056
- onChange: handleFieldSelectionModeChange,
3057
- children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3058
- }), jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsx(Spacings.Inset, {
3059
- scale: "l",
3060
- children: jsx(SelectedFieldsForm, {})
3061
- })]
3062
- }), jsxs(Spacings.Stack, {
3063
3080
  children: [jsx(RadioInput.Option, {
3064
3081
  isDisabled: shouldDisableImportedCsvTemplateOption,
3065
3082
  value: FIELD_SELECTION_MODES.IMPORTED_CSV_TEMPLATE,
@@ -3070,6 +3087,16 @@ const ExportFieldsSelectionStep = () => {
3070
3087
  scale: "l",
3071
3088
  children: jsx(ImportedCsvTemplateFieldsForm, {})
3072
3089
  })]
3090
+ }), jsxs(Spacings.Stack, {
3091
+ children: [jsx(RadioInput.Option, {
3092
+ value: FIELD_SELECTION_MODES.SELECTED_FIELDS,
3093
+ isChecked: fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS,
3094
+ onChange: handleFieldSelectionModeChange,
3095
+ children: intl.formatMessage(messages.selectFieldsFromLimitedList)
3096
+ }), jsx(Divider, {}), fieldSelectionMode === FIELD_SELECTION_MODES.SELECTED_FIELDS && jsx(Spacings.Inset, {
3097
+ scale: "l",
3098
+ children: jsx(SelectedFieldsForm, {})
3099
+ })]
3073
3100
  })]
3074
3101
  }), jsx(ExportLocaleSelectField, {})]
3075
3102
  })
@@ -8,4 +8,5 @@ export declare const EXPORTABLE_RESOURCES: {
8
8
  readonly CUSTOMER: "customer";
9
9
  readonly BUSINESS_UNIT: "business-unit";
10
10
  readonly PRODUCT_TAILORING: "product-tailoring";
11
+ readonly STANDALONE_PRICE: "standalone-price";
11
12
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-frontend-extensions/export-resources-modal",
3
3
  "description": "Shared export modal for exporting resources",
4
- "version": "5.13.4",
4
+ "version": "5.14.1",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -26,7 +26,7 @@
26
26
  "moment": "2.30.1",
27
27
  "omit-empty-es": "^1.1.3",
28
28
  "prop-types": "15.8.1",
29
- "@commercetools-frontend-extensions/operations": "4.0.1"
29
+ "@commercetools-frontend-extensions/operations": "4.1.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@commercetools-frontend/actions-global": "27.5.1",