@commercetools-uikit/async-creatable-select-input 20.5.0 → 20.6.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.
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
  # AsyncCreatableSelectInput
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-creatable-select-input
13
+ pnpm add @commercetools-uikit/async-creatable-select-input
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/async-creatable-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
  ```
@@ -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 "".concat(props.name, ".0");
145
+ return `${props.name}.0`;
146
146
  })()
147
147
  },
148
148
  persist: () => {}
@@ -150,13 +150,12 @@ const AsyncCreatableSelectInput = _ref => {
150
150
  props.onBlur && props.onBlur(event);
151
151
  } : undefined,
152
152
  onChange: (value, info) => {
153
- var _props$onChange;
154
153
  // wrapping breaking changes made in react-select v3
155
154
  let newValue = value;
156
155
  if (props.isMulti && !newValue) {
157
156
  newValue = [];
158
157
  }
159
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
158
+ props.onChange?.({
160
159
  target: {
161
160
  id: props.id,
162
161
  name: props.name,
@@ -245,7 +244,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
245
244
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
246
245
 
247
246
  // NOTE: This string will be replaced on build time with the package version.
248
- var version = "20.5.0";
247
+ var version = "20.6.1";
249
248
 
250
249
  exports["default"] = AsyncCreatableSelectInput$1;
251
250
  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 "".concat(props.name, ".0");
140
+ return `${props.name}.0`;
141
141
  })()
142
142
  },
143
143
  persist: () => {}
@@ -145,13 +145,12 @@ const AsyncCreatableSelectInput = _ref => {
145
145
  props.onBlur && props.onBlur(event);
146
146
  } : undefined,
147
147
  onChange: (value, info) => {
148
- var _props$onChange;
149
148
  // wrapping breaking changes made in react-select v3
150
149
  let newValue = value;
151
150
  if (props.isMulti && !newValue) {
152
151
  newValue = [];
153
152
  }
154
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
153
+ props.onChange?.({
155
154
  target: {
156
155
  id: props.id,
157
156
  name: props.name,
@@ -240,7 +239,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
240
239
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
241
240
 
242
241
  // NOTE: This string will be replaced on build time with the package version.
243
- var version = "20.5.0";
242
+ var version = "20.6.1";
244
243
 
245
244
  exports["default"] = AsyncCreatableSelectInput$1;
246
245
  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 "".concat(props.name, ".0");
125
+ return `${props.name}.0`;
126
126
  })()
127
127
  },
128
128
  persist: () => {}
@@ -130,13 +130,12 @@ const AsyncCreatableSelectInput = _ref => {
130
130
  props.onBlur && props.onBlur(event);
131
131
  } : undefined,
132
132
  onChange: (value, info) => {
133
- var _props$onChange;
134
133
  // wrapping breaking changes made in react-select v3
135
134
  let newValue = value;
136
135
  if (props.isMulti && !newValue) {
137
136
  newValue = [];
138
137
  }
139
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
138
+ props.onChange?.({
140
139
  target: {
141
140
  id: props.id,
142
141
  name: props.name,
@@ -225,6 +224,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
225
224
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
226
225
 
227
226
  // NOTE: This string will be replaced on build time with the package version.
228
- var version = "20.5.0";
227
+ var version = "20.6.1";
229
228
 
230
229
  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.5.0",
4
+ "version": "20.6.1",
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-creatable-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,27 +23,30 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-async-creatable-select-input.cjs.js",
19
25
  "module": "dist/commercetools-uikit-async-creatable-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/is-prop-valid": "1.4.0",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
35
- "lodash": "4.17.23",
36
- "react-select": "5.10.2"
35
+ "lodash": "4.18.1",
36
+ "react-select": "5.10.2",
37
+ "@commercetools-uikit/constraints": "^20.6.1",
38
+ "@commercetools-uikit/icons": "^20.6.1",
39
+ "@commercetools-uikit/loading-spinner": "^20.6.1",
40
+ "@commercetools-uikit/select-utils": "^20.6.1",
41
+ "@commercetools-uikit/spacings": "^20.6.1",
42
+ "@commercetools-uikit/text": "^20.6.1",
43
+ "@commercetools-uikit/utils": "^20.6.1",
44
+ "@commercetools-uikit/design-system": "^20.6.1"
37
45
  },
38
46
  "devDependencies": {
39
- "react": "19.2.0",
40
- "react-dom": "19.2.0",
47
+ "prop-types": "^15.8.1",
48
+ "react": "19.2.6",
49
+ "react-dom": "19.2.6",
41
50
  "react-intl": "^7.1.4"
42
51
  },
43
52
  "peerDependencies": {
@@ -45,4 +54,4 @@
45
54
  "react-dom": "19.x",
46
55
  "react-intl": "7.x"
47
56
  }
48
- }
57
+ }