@commercetools-frontend-extensions/import-resources-modal 2.1.0 → 2.2.0
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/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +24 -0
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +24 -0
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +24 -0
- package/dist/declarations/src/@hooks/use-import-permission.d.ts +1 -0
- package/package.json +2 -2
|
@@ -579,6 +579,7 @@ const IMPORTABLE_RESOURCES = {
|
|
|
579
579
|
ORDER: 'order',
|
|
580
580
|
PRODUCT_TYPE: 'product-type',
|
|
581
581
|
BUSINESS_UNIT: 'business-unit',
|
|
582
|
+
PRODUCT_TAILORING: 'product-tailoring',
|
|
582
583
|
STANDALONE_PRICE: 'standalone-price'
|
|
583
584
|
};
|
|
584
585
|
|
|
@@ -623,6 +624,11 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
623
624
|
description: 'Label for the product type modal title',
|
|
624
625
|
defaultMessage: 'Import product types by CSV'
|
|
625
626
|
},
|
|
627
|
+
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TAILORING}`]: {
|
|
628
|
+
id: 'ImportResourcesModal.modalTitle.productTailoring',
|
|
629
|
+
description: 'Label for the product tailorings modal title',
|
|
630
|
+
defaultMessage: 'Import tailored products by CSV'
|
|
631
|
+
},
|
|
626
632
|
[`modalTitle.${IMPORTABLE_RESOURCES.STANDALONE_PRICE}`]: {
|
|
627
633
|
id: 'ImportResourcesModal.modalTitle.standalonePrice',
|
|
628
634
|
description: 'Label for the standalone prices modal title',
|
|
@@ -829,6 +835,16 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
829
835
|
description: 'Label for the business-units resource type',
|
|
830
836
|
defaultMessage: 'Business units'
|
|
831
837
|
},
|
|
838
|
+
'product-tailoring': {
|
|
839
|
+
id: 'ImportResourcesModal.product-tailoring',
|
|
840
|
+
description: 'Label for the product-tailoring resource type',
|
|
841
|
+
defaultMessage: 'Tailored product'
|
|
842
|
+
},
|
|
843
|
+
'product-tailorings': {
|
|
844
|
+
id: 'ImportResourcesModal.product-tailorings',
|
|
845
|
+
description: 'Label for the product-tailorings resource type',
|
|
846
|
+
defaultMessage: 'Tailored products'
|
|
847
|
+
},
|
|
832
848
|
unknownResourceType: {
|
|
833
849
|
id: 'ImportResourcesModal.unknown-resource-type',
|
|
834
850
|
description: 'Label for the unknown resource type',
|
|
@@ -1192,6 +1208,7 @@ const useImportPermission = () => {
|
|
|
1192
1208
|
canImportInventories: canManageProducts,
|
|
1193
1209
|
canImportProductTypes: canManageProducts,
|
|
1194
1210
|
canImportCustomObjects: canManageCustomObjects,
|
|
1211
|
+
canImportProductTailorings: canManageProducts,
|
|
1195
1212
|
canImportStandalonePrices: canManageStandalonePrices
|
|
1196
1213
|
};
|
|
1197
1214
|
};
|
|
@@ -2145,6 +2162,11 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
2145
2162
|
description: 'Label for the categories radio button',
|
|
2146
2163
|
defaultMessage: 'Categories'
|
|
2147
2164
|
},
|
|
2165
|
+
productTailorings: {
|
|
2166
|
+
id: 'ImportResourcesModal.radio.productTailorings',
|
|
2167
|
+
description: 'Label for the product tailorings radio button',
|
|
2168
|
+
defaultMessage: 'Tailored products'
|
|
2169
|
+
},
|
|
2148
2170
|
standalonePrices: {
|
|
2149
2171
|
id: 'ImportResourcesModal.radio.standalonePrices',
|
|
2150
2172
|
description: 'Label for the standalone prices radio button',
|
|
@@ -2160,6 +2182,8 @@ const resourceTypeToDisplayName = resourceType => {
|
|
|
2160
2182
|
return messages$1.inventories;
|
|
2161
2183
|
case IMPORTABLE_RESOURCES.CATEGORY:
|
|
2162
2184
|
return messages$1.categories;
|
|
2185
|
+
case IMPORTABLE_RESOURCES.PRODUCT_TAILORING:
|
|
2186
|
+
return messages$1.productTailorings;
|
|
2163
2187
|
case IMPORTABLE_RESOURCES.STANDALONE_PRICE:
|
|
2164
2188
|
return messages$1.standalonePrices;
|
|
2165
2189
|
default:
|
|
@@ -579,6 +579,7 @@ const IMPORTABLE_RESOURCES = {
|
|
|
579
579
|
ORDER: 'order',
|
|
580
580
|
PRODUCT_TYPE: 'product-type',
|
|
581
581
|
BUSINESS_UNIT: 'business-unit',
|
|
582
|
+
PRODUCT_TAILORING: 'product-tailoring',
|
|
582
583
|
STANDALONE_PRICE: 'standalone-price'
|
|
583
584
|
};
|
|
584
585
|
|
|
@@ -623,6 +624,11 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
623
624
|
description: 'Label for the product type modal title',
|
|
624
625
|
defaultMessage: 'Import product types by CSV'
|
|
625
626
|
},
|
|
627
|
+
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TAILORING}`]: {
|
|
628
|
+
id: 'ImportResourcesModal.modalTitle.productTailoring',
|
|
629
|
+
description: 'Label for the product tailorings modal title',
|
|
630
|
+
defaultMessage: 'Import tailored products by CSV'
|
|
631
|
+
},
|
|
626
632
|
[`modalTitle.${IMPORTABLE_RESOURCES.STANDALONE_PRICE}`]: {
|
|
627
633
|
id: 'ImportResourcesModal.modalTitle.standalonePrice',
|
|
628
634
|
description: 'Label for the standalone prices modal title',
|
|
@@ -829,6 +835,16 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
829
835
|
description: 'Label for the business-units resource type',
|
|
830
836
|
defaultMessage: 'Business units'
|
|
831
837
|
},
|
|
838
|
+
'product-tailoring': {
|
|
839
|
+
id: 'ImportResourcesModal.product-tailoring',
|
|
840
|
+
description: 'Label for the product-tailoring resource type',
|
|
841
|
+
defaultMessage: 'Tailored product'
|
|
842
|
+
},
|
|
843
|
+
'product-tailorings': {
|
|
844
|
+
id: 'ImportResourcesModal.product-tailorings',
|
|
845
|
+
description: 'Label for the product-tailorings resource type',
|
|
846
|
+
defaultMessage: 'Tailored products'
|
|
847
|
+
},
|
|
832
848
|
unknownResourceType: {
|
|
833
849
|
id: 'ImportResourcesModal.unknown-resource-type',
|
|
834
850
|
description: 'Label for the unknown resource type',
|
|
@@ -1192,6 +1208,7 @@ const useImportPermission = () => {
|
|
|
1192
1208
|
canImportInventories: canManageProducts,
|
|
1193
1209
|
canImportProductTypes: canManageProducts,
|
|
1194
1210
|
canImportCustomObjects: canManageCustomObjects,
|
|
1211
|
+
canImportProductTailorings: canManageProducts,
|
|
1195
1212
|
canImportStandalonePrices: canManageStandalonePrices
|
|
1196
1213
|
};
|
|
1197
1214
|
};
|
|
@@ -2121,6 +2138,11 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
2121
2138
|
description: 'Label for the categories radio button',
|
|
2122
2139
|
defaultMessage: 'Categories'
|
|
2123
2140
|
},
|
|
2141
|
+
productTailorings: {
|
|
2142
|
+
id: 'ImportResourcesModal.radio.productTailorings',
|
|
2143
|
+
description: 'Label for the product tailorings radio button',
|
|
2144
|
+
defaultMessage: 'Tailored products'
|
|
2145
|
+
},
|
|
2124
2146
|
standalonePrices: {
|
|
2125
2147
|
id: 'ImportResourcesModal.radio.standalonePrices',
|
|
2126
2148
|
description: 'Label for the standalone prices radio button',
|
|
@@ -2136,6 +2158,8 @@ const resourceTypeToDisplayName = resourceType => {
|
|
|
2136
2158
|
return messages$1.inventories;
|
|
2137
2159
|
case IMPORTABLE_RESOURCES.CATEGORY:
|
|
2138
2160
|
return messages$1.categories;
|
|
2161
|
+
case IMPORTABLE_RESOURCES.PRODUCT_TAILORING:
|
|
2162
|
+
return messages$1.productTailorings;
|
|
2139
2163
|
case IMPORTABLE_RESOURCES.STANDALONE_PRICE:
|
|
2140
2164
|
return messages$1.standalonePrices;
|
|
2141
2165
|
default:
|
|
@@ -558,6 +558,7 @@ const IMPORTABLE_RESOURCES = {
|
|
|
558
558
|
ORDER: 'order',
|
|
559
559
|
PRODUCT_TYPE: 'product-type',
|
|
560
560
|
BUSINESS_UNIT: 'business-unit',
|
|
561
|
+
PRODUCT_TAILORING: 'product-tailoring',
|
|
561
562
|
STANDALONE_PRICE: 'standalone-price'
|
|
562
563
|
};
|
|
563
564
|
|
|
@@ -602,6 +603,11 @@ var sharedMessages = defineMessages({
|
|
|
602
603
|
description: 'Label for the product type modal title',
|
|
603
604
|
defaultMessage: 'Import product types by CSV'
|
|
604
605
|
},
|
|
606
|
+
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TAILORING}`]: {
|
|
607
|
+
id: 'ImportResourcesModal.modalTitle.productTailoring',
|
|
608
|
+
description: 'Label for the product tailorings modal title',
|
|
609
|
+
defaultMessage: 'Import tailored products by CSV'
|
|
610
|
+
},
|
|
605
611
|
[`modalTitle.${IMPORTABLE_RESOURCES.STANDALONE_PRICE}`]: {
|
|
606
612
|
id: 'ImportResourcesModal.modalTitle.standalonePrice',
|
|
607
613
|
description: 'Label for the standalone prices modal title',
|
|
@@ -808,6 +814,16 @@ var sharedMessages = defineMessages({
|
|
|
808
814
|
description: 'Label for the business-units resource type',
|
|
809
815
|
defaultMessage: 'Business units'
|
|
810
816
|
},
|
|
817
|
+
'product-tailoring': {
|
|
818
|
+
id: 'ImportResourcesModal.product-tailoring',
|
|
819
|
+
description: 'Label for the product-tailoring resource type',
|
|
820
|
+
defaultMessage: 'Tailored product'
|
|
821
|
+
},
|
|
822
|
+
'product-tailorings': {
|
|
823
|
+
id: 'ImportResourcesModal.product-tailorings',
|
|
824
|
+
description: 'Label for the product-tailorings resource type',
|
|
825
|
+
defaultMessage: 'Tailored products'
|
|
826
|
+
},
|
|
811
827
|
unknownResourceType: {
|
|
812
828
|
id: 'ImportResourcesModal.unknown-resource-type',
|
|
813
829
|
description: 'Label for the unknown resource type',
|
|
@@ -1171,6 +1187,7 @@ const useImportPermission = () => {
|
|
|
1171
1187
|
canImportInventories: canManageProducts,
|
|
1172
1188
|
canImportProductTypes: canManageProducts,
|
|
1173
1189
|
canImportCustomObjects: canManageCustomObjects,
|
|
1190
|
+
canImportProductTailorings: canManageProducts,
|
|
1174
1191
|
canImportStandalonePrices: canManageStandalonePrices
|
|
1175
1192
|
};
|
|
1176
1193
|
};
|
|
@@ -2124,6 +2141,11 @@ var messages$1 = defineMessages({
|
|
|
2124
2141
|
description: 'Label for the categories radio button',
|
|
2125
2142
|
defaultMessage: 'Categories'
|
|
2126
2143
|
},
|
|
2144
|
+
productTailorings: {
|
|
2145
|
+
id: 'ImportResourcesModal.radio.productTailorings',
|
|
2146
|
+
description: 'Label for the product tailorings radio button',
|
|
2147
|
+
defaultMessage: 'Tailored products'
|
|
2148
|
+
},
|
|
2127
2149
|
standalonePrices: {
|
|
2128
2150
|
id: 'ImportResourcesModal.radio.standalonePrices',
|
|
2129
2151
|
description: 'Label for the standalone prices radio button',
|
|
@@ -2139,6 +2161,8 @@ const resourceTypeToDisplayName = resourceType => {
|
|
|
2139
2161
|
return messages$1.inventories;
|
|
2140
2162
|
case IMPORTABLE_RESOURCES.CATEGORY:
|
|
2141
2163
|
return messages$1.categories;
|
|
2164
|
+
case IMPORTABLE_RESOURCES.PRODUCT_TAILORING:
|
|
2165
|
+
return messages$1.productTailorings;
|
|
2142
2166
|
case IMPORTABLE_RESOURCES.STANDALONE_PRICE:
|
|
2143
2167
|
return messages$1.standalonePrices;
|
|
2144
2168
|
default:
|
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": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"pluralize": "8.0.0",
|
|
32
32
|
"prop-types": "15.8.1",
|
|
33
33
|
"ramda": "^0.32.0",
|
|
34
|
-
"@commercetools-frontend-extensions/operations": "4.
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "4.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@commercetools-frontend/actions-global": "27.5.1",
|