@commercetools-frontend-extensions/export-resources-modal 3.4.0 → 3.4.2

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.
@@ -115,7 +115,7 @@ const OUTPUT_FORMAT_OPTIONS = [{
115
115
  }];
116
116
 
117
117
  const FIELD_DEFINITIONS_URLS = {
118
- category: 'https://docs-proxy-sarm-product-import-csv.commercetools.vercel.app/merchant-center/import-categories#supported-headers-and-values'
118
+ category: 'https://docs.commercetools.com/merchant-center/import-categories#supported-headers-and-values'
119
119
  };
120
120
 
121
121
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1198,7 +1198,10 @@ const ExportResourcesProvider = props => {
1198
1198
  formik$1.validateForm();
1199
1199
  }, [currentStep]);
1200
1200
  React__default["default"].useEffect(() => {
1201
- if (props.isOpen) formik$1.resetForm();
1201
+ if (props.isOpen) {
1202
+ formik$1.resetForm();
1203
+ setCurrentStep(1);
1204
+ }
1202
1205
  }, [props.isOpen]);
1203
1206
  return jsxRuntime.jsx(ExportResourcesContext.Provider, {
1204
1207
  value: {
@@ -115,7 +115,7 @@ const OUTPUT_FORMAT_OPTIONS = [{
115
115
  }];
116
116
 
117
117
  const FIELD_DEFINITIONS_URLS = {
118
- category: 'https://docs-proxy-sarm-product-import-csv.commercetools.vercel.app/merchant-center/import-categories#supported-headers-and-values'
118
+ category: 'https://docs.commercetools.com/merchant-center/import-categories#supported-headers-and-values'
119
119
  };
120
120
 
121
121
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1177,7 +1177,10 @@ const ExportResourcesProvider = props => {
1177
1177
  formik$1.validateForm();
1178
1178
  }, [currentStep]);
1179
1179
  React__default["default"].useEffect(() => {
1180
- if (props.isOpen) formik$1.resetForm();
1180
+ if (props.isOpen) {
1181
+ formik$1.resetForm();
1182
+ setCurrentStep(1);
1183
+ }
1181
1184
  }, [props.isOpen]);
1182
1185
  return jsxRuntime.jsx(ExportResourcesContext.Provider, {
1183
1186
  value: {
@@ -79,7 +79,7 @@ const OUTPUT_FORMAT_OPTIONS = [{
79
79
  }];
80
80
 
81
81
  const FIELD_DEFINITIONS_URLS = {
82
- category: 'https://docs-proxy-sarm-product-import-csv.commercetools.vercel.app/merchant-center/import-categories#supported-headers-and-values'
82
+ category: 'https://docs.commercetools.com/merchant-center/import-categories#supported-headers-and-values'
83
83
  };
84
84
 
85
85
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1162,7 +1162,10 @@ const ExportResourcesProvider = props => {
1162
1162
  formik.validateForm();
1163
1163
  }, [currentStep]);
1164
1164
  React.useEffect(() => {
1165
- if (props.isOpen) formik.resetForm();
1165
+ if (props.isOpen) {
1166
+ formik.resetForm();
1167
+ setCurrentStep(1);
1168
+ }
1166
1169
  }, [props.isOpen]);
1167
1170
  return jsx(ExportResourcesContext.Provider, {
1168
1171
  value: {
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": "3.4.0",
4
+ "version": "3.4.2",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"