@commercetools-uikit/async-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.
@@ -164,7 +164,7 @@ const AsyncSelectInput = _ref => {
164
164
  // state as an array instead of a boolean only.
165
165
  // Otherwise the shapes would clash on submission, as
166
166
  // Formik will create an array on submission anyways.
167
- return `${props.name}.0`;
167
+ return "".concat(props.name, ".0");
168
168
  })()
169
169
  },
170
170
  persist: () => {}
@@ -172,11 +172,12 @@ const AsyncSelectInput = _ref => {
172
172
  props.onBlur && props.onBlur(event);
173
173
  } : undefined,
174
174
  onChange: (value, info) => {
175
+ var _props$onChange;
175
176
  let newValue = value;
176
177
  if (props.isMulti && !newValue) {
177
178
  newValue = [];
178
179
  }
179
- props.onChange?.({
180
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
180
181
  target: {
181
182
  id: props.id,
182
183
  name: props.name,
@@ -257,7 +258,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
257
258
  var AsyncSelectInput$1 = AsyncSelectInput;
258
259
 
259
260
  // NOTE: This string will be replaced on build time with the package version.
260
- var version = "20.2.3";
261
+ var version = "20.3.1";
261
262
 
262
263
  exports["default"] = AsyncSelectInput$1;
263
264
  exports.version = version;
@@ -162,7 +162,7 @@ const AsyncSelectInput = _ref => {
162
162
  // state as an array instead of a boolean only.
163
163
  // Otherwise the shapes would clash on submission, as
164
164
  // Formik will create an array on submission anyways.
165
- return `${props.name}.0`;
165
+ return "".concat(props.name, ".0");
166
166
  })()
167
167
  },
168
168
  persist: () => {}
@@ -170,11 +170,12 @@ const AsyncSelectInput = _ref => {
170
170
  props.onBlur && props.onBlur(event);
171
171
  } : undefined,
172
172
  onChange: (value, info) => {
173
+ var _props$onChange;
173
174
  let newValue = value;
174
175
  if (props.isMulti && !newValue) {
175
176
  newValue = [];
176
177
  }
177
- props.onChange?.({
178
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
178
179
  target: {
179
180
  id: props.id,
180
181
  name: props.name,
@@ -255,7 +256,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
255
256
  var AsyncSelectInput$1 = AsyncSelectInput;
256
257
 
257
258
  // NOTE: This string will be replaced on build time with the package version.
258
- var version = "20.2.3";
259
+ var version = "20.3.1";
259
260
 
260
261
  exports["default"] = AsyncSelectInput$1;
261
262
  exports.version = version;
@@ -145,7 +145,7 @@ const AsyncSelectInput = _ref => {
145
145
  // state as an array instead of a boolean only.
146
146
  // Otherwise the shapes would clash on submission, as
147
147
  // Formik will create an array on submission anyways.
148
- return `${props.name}.0`;
148
+ return "".concat(props.name, ".0");
149
149
  })()
150
150
  },
151
151
  persist: () => {}
@@ -153,11 +153,12 @@ const AsyncSelectInput = _ref => {
153
153
  props.onBlur && props.onBlur(event);
154
154
  } : undefined,
155
155
  onChange: (value, info) => {
156
+ var _props$onChange;
156
157
  let newValue = value;
157
158
  if (props.isMulti && !newValue) {
158
159
  newValue = [];
159
160
  }
160
- props.onChange?.({
161
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
161
162
  target: {
162
163
  id: props.id,
163
164
  name: props.name,
@@ -238,6 +239,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
238
239
  var AsyncSelectInput$1 = AsyncSelectInput;
239
240
 
240
241
  // NOTE: This string will be replaced on build time with the package version.
241
- var version = "20.2.3";
242
+ var version = "20.3.1";
242
243
 
243
244
  export { AsyncSelectInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from 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,22 +21,22 @@
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",
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
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
- "lodash": "4.17.21",
34
+ "lodash": "4.17.23",
35
35
  "react-select": "5.10.2"
36
36
  },
37
37
  "devDependencies": {
38
- "react": "19.1.0",
39
- "react-dom": "19.1.0",
38
+ "react": "19.2.0",
39
+ "react-dom": "19.2.0",
40
40
  "react-intl": "^7.1.4"
41
41
  },
42
42
  "peerDependencies": {