@commercetools-uikit/async-creatable-select-input 20.2.3 → 20.3.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.
@@ -142,7 +142,7 @@ const AsyncCreatableSelectInput = _ref => {
142
142
  // state as an array instead of a boolean only.
143
143
  // Otherwise the shapes would clash on submission, as
144
144
  // Formik will create an array on submission anyways.
145
- return `${props.name}.0`;
145
+ return "".concat(props.name, ".0");
146
146
  })()
147
147
  },
148
148
  persist: () => {}
@@ -150,12 +150,13 @@ const AsyncCreatableSelectInput = _ref => {
150
150
  props.onBlur && props.onBlur(event);
151
151
  } : undefined,
152
152
  onChange: (value, info) => {
153
+ var _props$onChange;
153
154
  // wrapping breaking changes made in react-select v3
154
155
  let newValue = value;
155
156
  if (props.isMulti && !newValue) {
156
157
  newValue = [];
157
158
  }
158
- props.onChange?.({
159
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
159
160
  target: {
160
161
  id: props.id,
161
162
  name: props.name,
@@ -244,7 +245,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
244
245
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
245
246
 
246
247
  // NOTE: This string will be replaced on build time with the package version.
247
- var version = "20.2.3";
248
+ var version = "20.3.1";
248
249
 
249
250
  exports["default"] = AsyncCreatableSelectInput$1;
250
251
  exports.version = version;
@@ -137,7 +137,7 @@ const AsyncCreatableSelectInput = _ref => {
137
137
  // state as an array instead of a boolean only.
138
138
  // Otherwise the shapes would clash on submission, as
139
139
  // Formik will create an array on submission anyways.
140
- return `${props.name}.0`;
140
+ return "".concat(props.name, ".0");
141
141
  })()
142
142
  },
143
143
  persist: () => {}
@@ -145,12 +145,13 @@ const AsyncCreatableSelectInput = _ref => {
145
145
  props.onBlur && props.onBlur(event);
146
146
  } : undefined,
147
147
  onChange: (value, info) => {
148
+ var _props$onChange;
148
149
  // wrapping breaking changes made in react-select v3
149
150
  let newValue = value;
150
151
  if (props.isMulti && !newValue) {
151
152
  newValue = [];
152
153
  }
153
- props.onChange?.({
154
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
154
155
  target: {
155
156
  id: props.id,
156
157
  name: props.name,
@@ -239,7 +240,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
239
240
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
240
241
 
241
242
  // NOTE: This string will be replaced on build time with the package version.
242
- var version = "20.2.3";
243
+ var version = "20.3.1";
243
244
 
244
245
  exports["default"] = AsyncCreatableSelectInput$1;
245
246
  exports.version = version;
@@ -122,7 +122,7 @@ const AsyncCreatableSelectInput = _ref => {
122
122
  // state as an array instead of a boolean only.
123
123
  // Otherwise the shapes would clash on submission, as
124
124
  // Formik will create an array on submission anyways.
125
- return `${props.name}.0`;
125
+ return "".concat(props.name, ".0");
126
126
  })()
127
127
  },
128
128
  persist: () => {}
@@ -130,12 +130,13 @@ const AsyncCreatableSelectInput = _ref => {
130
130
  props.onBlur && props.onBlur(event);
131
131
  } : undefined,
132
132
  onChange: (value, info) => {
133
+ var _props$onChange;
133
134
  // wrapping breaking changes made in react-select v3
134
135
  let newValue = value;
135
136
  if (props.isMulti && !newValue) {
136
137
  newValue = [];
137
138
  }
138
- props.onChange?.({
139
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
139
140
  target: {
140
141
  id: props.id,
141
142
  name: props.name,
@@ -224,6 +225,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
224
225
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
225
226
 
226
227
  // NOTE: This string will be replaced on build time with the package version.
227
- var version = "20.2.3";
228
+ var version = "20.3.1";
228
229
 
229
230
  export { AsyncCreatableSelectInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-creatable-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from the user, and where options can be created by the user.",
4
- "version": "20.2.3",
4
+ "version": "20.3.1",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,23 +21,23 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "20.2.3",
25
- "@commercetools-uikit/design-system": "20.2.3",
26
- "@commercetools-uikit/icons": "20.2.3",
27
- "@commercetools-uikit/loading-spinner": "20.2.3",
28
- "@commercetools-uikit/select-utils": "20.2.3",
29
- "@commercetools-uikit/spacings": "20.2.3",
30
- "@commercetools-uikit/text": "20.2.3",
31
- "@commercetools-uikit/utils": "20.2.3",
32
- "@emotion/is-prop-valid": "1.3.1",
24
+ "@commercetools-uikit/constraints": "20.3.1",
25
+ "@commercetools-uikit/design-system": "20.3.1",
26
+ "@commercetools-uikit/icons": "20.3.1",
27
+ "@commercetools-uikit/loading-spinner": "20.3.1",
28
+ "@commercetools-uikit/select-utils": "20.3.1",
29
+ "@commercetools-uikit/spacings": "20.3.1",
30
+ "@commercetools-uikit/text": "20.3.1",
31
+ "@commercetools-uikit/utils": "20.3.1",
32
+ "@emotion/is-prop-valid": "1.4.0",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
35
- "lodash": "4.17.21",
35
+ "lodash": "4.17.23",
36
36
  "react-select": "5.10.2"
37
37
  },
38
38
  "devDependencies": {
39
- "react": "19.1.0",
40
- "react-dom": "19.1.0",
39
+ "react": "19.2.0",
40
+ "react-dom": "19.2.0",
41
41
  "react-intl": "^7.1.4"
42
42
  },
43
43
  "peerDependencies": {