@commercetools-uikit/async-select-input 19.10.0 → 19.12.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.
|
@@ -142,7 +142,7 @@ const AsyncSelectInput = props => {
|
|
|
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
|
|
145
|
+
return `${props.name}.0`;
|
|
146
146
|
})()
|
|
147
147
|
},
|
|
148
148
|
persist: () => {}
|
|
@@ -150,12 +150,11 @@ const AsyncSelectInput = props => {
|
|
|
150
150
|
props.onBlur && props.onBlur(event);
|
|
151
151
|
} : undefined,
|
|
152
152
|
onChange: (value, info) => {
|
|
153
|
-
var _props$onChange;
|
|
154
153
|
let newValue = value;
|
|
155
154
|
if (props.isMulti && !newValue) {
|
|
156
155
|
newValue = [];
|
|
157
156
|
}
|
|
158
|
-
|
|
157
|
+
props.onChange?.({
|
|
159
158
|
target: {
|
|
160
159
|
id: props.id,
|
|
161
160
|
name: props.name,
|
|
@@ -249,7 +248,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
249
248
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
250
249
|
|
|
251
250
|
// NOTE: This string will be replaced on build time with the package version.
|
|
252
|
-
var version = "19.
|
|
251
|
+
var version = "19.11.0";
|
|
253
252
|
|
|
254
253
|
exports["default"] = AsyncSelectInput$1;
|
|
255
254
|
exports.version = version;
|
|
@@ -139,7 +139,7 @@ const AsyncSelectInput = props => {
|
|
|
139
139
|
// state as an array instead of a boolean only.
|
|
140
140
|
// Otherwise the shapes would clash on submission, as
|
|
141
141
|
// Formik will create an array on submission anyways.
|
|
142
|
-
return
|
|
142
|
+
return `${props.name}.0`;
|
|
143
143
|
})()
|
|
144
144
|
},
|
|
145
145
|
persist: () => {}
|
|
@@ -147,12 +147,11 @@ const AsyncSelectInput = props => {
|
|
|
147
147
|
props.onBlur && props.onBlur(event);
|
|
148
148
|
} : undefined,
|
|
149
149
|
onChange: (value, info) => {
|
|
150
|
-
var _props$onChange;
|
|
151
150
|
let newValue = value;
|
|
152
151
|
if (props.isMulti && !newValue) {
|
|
153
152
|
newValue = [];
|
|
154
153
|
}
|
|
155
|
-
|
|
154
|
+
props.onChange?.({
|
|
156
155
|
target: {
|
|
157
156
|
id: props.id,
|
|
158
157
|
name: props.name,
|
|
@@ -232,7 +231,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
232
231
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
233
232
|
|
|
234
233
|
// NOTE: This string will be replaced on build time with the package version.
|
|
235
|
-
var version = "19.
|
|
234
|
+
var version = "19.11.0";
|
|
236
235
|
|
|
237
236
|
exports["default"] = AsyncSelectInput$1;
|
|
238
237
|
exports.version = version;
|
|
@@ -122,7 +122,7 @@ const AsyncSelectInput = props => {
|
|
|
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
|
|
125
|
+
return `${props.name}.0`;
|
|
126
126
|
})()
|
|
127
127
|
},
|
|
128
128
|
persist: () => {}
|
|
@@ -130,12 +130,11 @@ const AsyncSelectInput = props => {
|
|
|
130
130
|
props.onBlur && props.onBlur(event);
|
|
131
131
|
} : undefined,
|
|
132
132
|
onChange: (value, info) => {
|
|
133
|
-
var _props$onChange;
|
|
134
133
|
let newValue = value;
|
|
135
134
|
if (props.isMulti && !newValue) {
|
|
136
135
|
newValue = [];
|
|
137
136
|
}
|
|
138
|
-
|
|
137
|
+
props.onChange?.({
|
|
139
138
|
target: {
|
|
140
139
|
id: props.id,
|
|
141
140
|
name: props.name,
|
|
@@ -229,6 +228,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
|
|
|
229
228
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
230
229
|
|
|
231
230
|
// NOTE: This string will be replaced on build time with the package version.
|
|
232
|
-
var version = "19.
|
|
231
|
+
var version = "19.11.0";
|
|
233
232
|
|
|
234
233
|
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": "19.
|
|
4
|
+
"version": "19.12.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/icons": "19.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "19.
|
|
28
|
-
"@commercetools-uikit/select-utils": "19.
|
|
29
|
-
"@commercetools-uikit/spacings": "19.
|
|
30
|
-
"@commercetools-uikit/text": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.12.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.12.0",
|
|
26
|
+
"@commercetools-uikit/icons": "19.12.0",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "19.12.0",
|
|
28
|
+
"@commercetools-uikit/select-utils": "19.12.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "19.12.0",
|
|
30
|
+
"@commercetools-uikit/text": "19.12.0",
|
|
31
|
+
"@commercetools-uikit/utils": "19.12.0",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"lodash": "4.17.21",
|