@commercetools-uikit/async-select-input 20.5.0 → 20.6.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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -->
2
- <!-- This file is created by the `yarn generate-readme` script. -->
2
+ <!-- This file is created by the `pnpm generate-readme` script. -->
3
3
 
4
4
  # AsyncSelectInput
5
5
 
@@ -10,7 +10,7 @@ An input component getting a selection from an asynchronously loaded list from t
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/async-select-input
13
+ pnpm add @commercetools-uikit/async-select-input
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/async-select-input
20
20
  Additionally install the peer dependencies (if not present)
21
21
 
22
22
  ```
23
- yarn add react react-dom react-intl
23
+ pnpm add react react-dom react-intl
24
24
  ```
25
25
 
26
26
  ```
@@ -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 "".concat(props.name, ".0");
167
+ return `${props.name}.0`;
168
168
  })()
169
169
  },
170
170
  persist: () => {}
@@ -172,12 +172,11 @@ const AsyncSelectInput = _ref => {
172
172
  props.onBlur && props.onBlur(event);
173
173
  } : undefined,
174
174
  onChange: (value, info) => {
175
- var _props$onChange;
176
175
  let newValue = value;
177
176
  if (props.isMulti && !newValue) {
178
177
  newValue = [];
179
178
  }
180
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
179
+ props.onChange?.({
181
180
  target: {
182
181
  id: props.id,
183
182
  name: props.name,
@@ -258,7 +257,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
258
257
  var AsyncSelectInput$1 = AsyncSelectInput;
259
258
 
260
259
  // NOTE: This string will be replaced on build time with the package version.
261
- var version = "20.5.0";
260
+ var version = "20.6.0";
262
261
 
263
262
  exports["default"] = AsyncSelectInput$1;
264
263
  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 "".concat(props.name, ".0");
165
+ return `${props.name}.0`;
166
166
  })()
167
167
  },
168
168
  persist: () => {}
@@ -170,12 +170,11 @@ const AsyncSelectInput = _ref => {
170
170
  props.onBlur && props.onBlur(event);
171
171
  } : undefined,
172
172
  onChange: (value, info) => {
173
- var _props$onChange;
174
173
  let newValue = value;
175
174
  if (props.isMulti && !newValue) {
176
175
  newValue = [];
177
176
  }
178
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
177
+ props.onChange?.({
179
178
  target: {
180
179
  id: props.id,
181
180
  name: props.name,
@@ -256,7 +255,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
256
255
  var AsyncSelectInput$1 = AsyncSelectInput;
257
256
 
258
257
  // NOTE: This string will be replaced on build time with the package version.
259
- var version = "20.5.0";
258
+ var version = "20.6.0";
260
259
 
261
260
  exports["default"] = AsyncSelectInput$1;
262
261
  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 "".concat(props.name, ".0");
148
+ return `${props.name}.0`;
149
149
  })()
150
150
  },
151
151
  persist: () => {}
@@ -153,12 +153,11 @@ const AsyncSelectInput = _ref => {
153
153
  props.onBlur && props.onBlur(event);
154
154
  } : undefined,
155
155
  onChange: (value, info) => {
156
- var _props$onChange;
157
156
  let newValue = value;
158
157
  if (props.isMulti && !newValue) {
159
158
  newValue = [];
160
159
  }
161
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
160
+ props.onChange?.({
162
161
  target: {
163
162
  id: props.id,
164
163
  name: props.name,
@@ -239,6 +238,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
239
238
  var AsyncSelectInput$1 = AsyncSelectInput;
240
239
 
241
240
  // NOTE: This string will be replaced on build time with the package version.
242
- var version = "20.5.0";
241
+ var version = "20.6.0";
243
242
 
244
243
  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.5.0",
4
+ "version": "20.6.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,7 +9,13 @@
9
9
  "directory": "packages/components/inputs/async-select-input"
10
10
  },
11
11
  "homepage": "https://uikit.commercetools.com",
12
- "keywords": ["javascript", "typescript", "design-system", "react", "uikit"],
12
+ "keywords": [
13
+ "javascript",
14
+ "typescript",
15
+ "design-system",
16
+ "react",
17
+ "uikit"
18
+ ],
13
19
  "license": "MIT",
14
20
  "publishConfig": {
15
21
  "access": "public"
@@ -17,24 +23,27 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-async-select-input.cjs.js",
19
25
  "module": "dist/commercetools-uikit-async-select-input.esm.js",
20
- "files": ["dist"],
26
+ "files": [
27
+ "dist"
28
+ ],
21
29
  "dependencies": {
22
30
  "@babel/runtime": "^7.20.13",
23
31
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "20.5.0",
25
- "@commercetools-uikit/design-system": "20.5.0",
26
- "@commercetools-uikit/icons": "20.5.0",
27
- "@commercetools-uikit/loading-spinner": "20.5.0",
28
- "@commercetools-uikit/select-utils": "20.5.0",
29
- "@commercetools-uikit/spacings": "20.5.0",
30
- "@commercetools-uikit/text": "20.5.0",
31
- "@commercetools-uikit/utils": "20.5.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
- "lodash": "4.17.23",
35
- "react-select": "5.10.2"
34
+ "lodash": "4.18.1",
35
+ "react-select": "5.10.2",
36
+ "@commercetools-uikit/constraints": "^20.6.0",
37
+ "@commercetools-uikit/design-system": "^20.6.0",
38
+ "@commercetools-uikit/icons": "^20.6.0",
39
+ "@commercetools-uikit/loading-spinner": "^20.6.0",
40
+ "@commercetools-uikit/select-utils": "^20.6.0",
41
+ "@commercetools-uikit/spacings": "^20.6.0",
42
+ "@commercetools-uikit/text": "^20.6.0",
43
+ "@commercetools-uikit/utils": "^20.6.0"
36
44
  },
37
45
  "devDependencies": {
46
+ "prop-types": "^15.8.1",
38
47
  "react": "19.2.0",
39
48
  "react-dom": "19.2.0",
40
49
  "react-intl": "^7.1.4"
@@ -44,4 +53,4 @@
44
53
  "react-dom": "19.x",
45
54
  "react-intl": "7.x"
46
55
  }
47
- }
56
+ }