@commercetools-frontend/experimental-components 6.1.2 → 6.1.3
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.
|
@@ -8981,10 +8981,11 @@ const StoresBasicSelectInput = props => {
|
|
|
8981
8981
|
const handleChange = event => {
|
|
8982
8982
|
var _event$target$value$v, _event$target$value;
|
|
8983
8983
|
const value = (_event$target$value$v = (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value) !== null && _event$target$value$v !== void 0 ? _event$target$value$v : event.target.value;
|
|
8984
|
-
const
|
|
8984
|
+
const listOptions = props !== null && props !== void 0 && props.renderLabel ? mappedStoresListOptions[1].options : mappedStoresListOptions;
|
|
8985
|
+
const currentStore = _findInstanceProperty__default["default"](listOptions).call(listOptions, store => store.value === value);
|
|
8985
8986
|
|
|
8986
8987
|
// We need complete store info including productSelections
|
|
8987
|
-
if (!props.shouldFetchProductSelections) {
|
|
8988
|
+
if (!props.shouldFetchProductSelections && !(props !== null && props !== void 0 && props.renderLabel)) {
|
|
8988
8989
|
props.onChange(event);
|
|
8989
8990
|
} else {
|
|
8990
8991
|
props.onChange({
|
|
@@ -8968,10 +8968,11 @@ const StoresBasicSelectInput = props => {
|
|
|
8968
8968
|
const handleChange = event => {
|
|
8969
8969
|
var _event$target$value$v, _event$target$value;
|
|
8970
8970
|
const value = (_event$target$value$v = (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value) !== null && _event$target$value$v !== void 0 ? _event$target$value$v : event.target.value;
|
|
8971
|
-
const
|
|
8971
|
+
const listOptions = props !== null && props !== void 0 && props.renderLabel ? mappedStoresListOptions[1].options : mappedStoresListOptions;
|
|
8972
|
+
const currentStore = _findInstanceProperty__default["default"](listOptions).call(listOptions, store => store.value === value);
|
|
8972
8973
|
|
|
8973
8974
|
// We need complete store info including productSelections
|
|
8974
|
-
if (!props.shouldFetchProductSelections) {
|
|
8975
|
+
if (!props.shouldFetchProductSelections && !(props !== null && props !== void 0 && props.renderLabel)) {
|
|
8975
8976
|
props.onChange(event);
|
|
8976
8977
|
} else {
|
|
8977
8978
|
props.onChange({
|
|
@@ -8898,10 +8898,11 @@ const StoresBasicSelectInput = props => {
|
|
|
8898
8898
|
const handleChange = event => {
|
|
8899
8899
|
var _event$target$value$v, _event$target$value;
|
|
8900
8900
|
const value = (_event$target$value$v = (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value) !== null && _event$target$value$v !== void 0 ? _event$target$value$v : event.target.value;
|
|
8901
|
-
const
|
|
8901
|
+
const listOptions = props !== null && props !== void 0 && props.renderLabel ? mappedStoresListOptions[1].options : mappedStoresListOptions;
|
|
8902
|
+
const currentStore = _findInstanceProperty(listOptions).call(listOptions, store => store.value === value);
|
|
8902
8903
|
|
|
8903
8904
|
// We need complete store info including productSelections
|
|
8904
|
-
if (!props.shouldFetchProductSelections) {
|
|
8905
|
+
if (!props.shouldFetchProductSelections && !(props !== null && props !== void 0 && props.renderLabel)) {
|
|
8905
8906
|
props.onChange(event);
|
|
8906
8907
|
} else {
|
|
8907
8908
|
props.onChange({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"@babel/core": "^7.22.11",
|
|
19
19
|
"@babel/runtime": "^7.21.0",
|
|
20
20
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
21
|
-
"@commercetools-frontend/actions-global": "npm:@commercetools-frontend/actions-global@^22.
|
|
22
|
-
"@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.
|
|
23
|
-
"@commercetools-frontend/application-shell": "npm:@commercetools-frontend/application-shell@^22.
|
|
24
|
-
"@commercetools-frontend/application-shell-connectors": "npm:@commercetools-frontend/application-shell-connectors@^22.
|
|
25
|
-
"@commercetools-frontend/constants": "npm:@commercetools-frontend/constants@^22.
|
|
26
|
-
"@commercetools-frontend/l10n": "npm:@commercetools-frontend/l10n@^22.
|
|
27
|
-
"@commercetools-frontend/sdk": "npm:@commercetools-frontend/sdk@^22.
|
|
28
|
-
"@commercetools-frontend/sentry": "npm:@commercetools-frontend/sentry@^22.
|
|
29
|
-
"@commercetools-frontend/ui-kit": "npm:@commercetools-frontend/ui-kit@^19.
|
|
30
|
-
"@commercetools-uikit/design-system": "npm:@commercetools-uikit/design-system@^19.
|
|
31
|
-
"@commercetools-uikit/select-utils": "npm:@commercetools-uikit/select-utils@^19.
|
|
32
|
-
"@commercetools-uikit/utils": "npm:@commercetools-uikit/utils@^19.
|
|
21
|
+
"@commercetools-frontend/actions-global": "npm:@commercetools-frontend/actions-global@^22.29.0",
|
|
22
|
+
"@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.29.0",
|
|
23
|
+
"@commercetools-frontend/application-shell": "npm:@commercetools-frontend/application-shell@^22.29.0",
|
|
24
|
+
"@commercetools-frontend/application-shell-connectors": "npm:@commercetools-frontend/application-shell-connectors@^22.29.0",
|
|
25
|
+
"@commercetools-frontend/constants": "npm:@commercetools-frontend/constants@^22.29.0",
|
|
26
|
+
"@commercetools-frontend/l10n": "npm:@commercetools-frontend/l10n@^22.29.0",
|
|
27
|
+
"@commercetools-frontend/sdk": "npm:@commercetools-frontend/sdk@^22.29.0",
|
|
28
|
+
"@commercetools-frontend/sentry": "npm:@commercetools-frontend/sentry@^22.29.0",
|
|
29
|
+
"@commercetools-frontend/ui-kit": "npm:@commercetools-frontend/ui-kit@^19.7.0",
|
|
30
|
+
"@commercetools-uikit/design-system": "npm:@commercetools-uikit/design-system@^19.7.0",
|
|
31
|
+
"@commercetools-uikit/select-utils": "npm:@commercetools-uikit/select-utils@^19.7.0",
|
|
32
|
+
"@commercetools-uikit/utils": "npm:@commercetools-uikit/utils@^19.7.0",
|
|
33
33
|
"@emotion/react": "^11.11.1",
|
|
34
34
|
"classnames": "2.5.1",
|
|
35
35
|
"cleave.js": "1.5.10",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@apollo/client": "3.7.10",
|
|
56
|
-
"@commercetools-test-data/channel": "9.0.
|
|
57
|
-
"@commercetools-test-data/commons": "9.0.
|
|
58
|
-
"@commercetools-test-data/core": "9.0.
|
|
56
|
+
"@commercetools-test-data/channel": "9.0.7",
|
|
57
|
+
"@commercetools-test-data/commons": "9.0.7",
|
|
58
|
+
"@commercetools-test-data/core": "9.0.7",
|
|
59
59
|
"@testing-library/react": "12.1.5",
|
|
60
60
|
"@testing-library/react-hooks": "8.0.1",
|
|
61
61
|
"formik": "2.4.6",
|
|
62
|
-
"graphql": "16.
|
|
62
|
+
"graphql": "16.9.0",
|
|
63
63
|
"graphql-tag": "2.12.6",
|
|
64
64
|
"msw": "1.3.3",
|
|
65
65
|
"react": "17.0.2",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"redux": "4.2.1",
|
|
73
73
|
"typescript": "5.2.2",
|
|
74
74
|
"xhr-mock": "2.5.1",
|
|
75
|
-
"@commercetools-local/test-data": "1.2.
|
|
76
|
-
"@commercetools-local/test-utils": "1.2.
|
|
75
|
+
"@commercetools-local/test-data": "1.2.11",
|
|
76
|
+
"@commercetools-local/test-utils": "1.2.12"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@apollo/client": "3.x",
|