@commercetools-uikit/localized-multiline-text-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.
@@ -183,13 +183,13 @@ const TranslationInput = _ref2 => {
183
183
  // might clear it using the knob, and then we can't parse the language from
184
184
  // the input name anymore.
185
185
  event.target.language = props.language;
186
- onChange?.(event);
186
+ onChange === null || onChange === void 0 || onChange(event);
187
187
  }, [onChange, props.language]);
188
188
  const onFocus = props.onFocus,
189
189
  onToggle = props.onToggle;
190
190
  const handleFocus = react$1.useCallback(() => {
191
191
  // Expand the input on focus
192
- if (props.isCollapsed) onToggle?.();
192
+ if (props.isCollapsed) onToggle === null || onToggle === void 0 || onToggle();
193
193
  if (onFocus) onFocus();
194
194
  }, [props.isCollapsed, onFocus, onToggle]);
195
195
  const shouldToggleButtonTakeSpace =
@@ -436,7 +436,7 @@ LocalizedMultilineTextInput.isTouched = localizedUtils.isTouched;
436
436
  var LocalizedMultilineTextInput$1 = LocalizedMultilineTextInput;
437
437
 
438
438
  // NOTE: This string will be replaced on build time with the package version.
439
- var version = "20.2.3";
439
+ var version = "20.3.1";
440
440
 
441
441
  exports["default"] = LocalizedMultilineTextInput$1;
442
442
  exports.version = version;
@@ -140,13 +140,13 @@ const TranslationInput = _ref2 => {
140
140
  // might clear it using the knob, and then we can't parse the language from
141
141
  // the input name anymore.
142
142
  event.target.language = props.language;
143
- onChange?.(event);
143
+ onChange === null || onChange === void 0 || onChange(event);
144
144
  }, [onChange, props.language]);
145
145
  const onFocus = props.onFocus,
146
146
  onToggle = props.onToggle;
147
147
  const handleFocus = react$1.useCallback(() => {
148
148
  // Expand the input on focus
149
- if (props.isCollapsed) onToggle?.();
149
+ if (props.isCollapsed) onToggle === null || onToggle === void 0 || onToggle();
150
150
  if (onFocus) onFocus();
151
151
  }, [props.isCollapsed, onFocus, onToggle]);
152
152
  const shouldToggleButtonTakeSpace =
@@ -387,7 +387,7 @@ LocalizedMultilineTextInput.isTouched = localizedUtils.isTouched;
387
387
  var LocalizedMultilineTextInput$1 = LocalizedMultilineTextInput;
388
388
 
389
389
  // NOTE: This string will be replaced on build time with the package version.
390
- var version = "20.2.3";
390
+ var version = "20.3.1";
391
391
 
392
392
  exports["default"] = LocalizedMultilineTextInput$1;
393
393
  exports.version = version;
@@ -162,13 +162,13 @@ const TranslationInput = _ref2 => {
162
162
  // might clear it using the knob, and then we can't parse the language from
163
163
  // the input name anymore.
164
164
  event.target.language = props.language;
165
- onChange?.(event);
165
+ onChange === null || onChange === void 0 || onChange(event);
166
166
  }, [onChange, props.language]);
167
167
  const onFocus = props.onFocus,
168
168
  onToggle = props.onToggle;
169
169
  const handleFocus = useCallback(() => {
170
170
  // Expand the input on focus
171
- if (props.isCollapsed) onToggle?.();
171
+ if (props.isCollapsed) onToggle === null || onToggle === void 0 || onToggle();
172
172
  if (onFocus) onFocus();
173
173
  }, [props.isCollapsed, onFocus, onToggle]);
174
174
  const shouldToggleButtonTakeSpace =
@@ -415,6 +415,6 @@ LocalizedMultilineTextInput.isTouched = isTouched;
415
415
  var LocalizedMultilineTextInput$1 = LocalizedMultilineTextInput;
416
416
 
417
417
  // NOTE: This string will be replaced on build time with the package version.
418
- var version = "20.2.3";
418
+ var version = "20.3.1";
419
419
 
420
420
  export { LocalizedMultilineTextInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/localized-multiline-text-input",
3
3
  "description": "A controlled text input component for localized multi-line strings with validation states.",
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,25 +21,25 @@
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/flat-button": "20.2.3",
27
- "@commercetools-uikit/hooks": "20.2.3",
28
- "@commercetools-uikit/icons": "20.2.3",
29
- "@commercetools-uikit/input-utils": "20.2.3",
30
- "@commercetools-uikit/localized-utils": "20.2.3",
31
- "@commercetools-uikit/messages": "20.2.3",
32
- "@commercetools-uikit/spacings-stack": "20.2.3",
33
- "@commercetools-uikit/text": "20.2.3",
34
- "@commercetools-uikit/utils": "20.2.3",
24
+ "@commercetools-uikit/constraints": "20.3.1",
25
+ "@commercetools-uikit/design-system": "20.3.1",
26
+ "@commercetools-uikit/flat-button": "20.3.1",
27
+ "@commercetools-uikit/hooks": "20.3.1",
28
+ "@commercetools-uikit/icons": "20.3.1",
29
+ "@commercetools-uikit/input-utils": "20.3.1",
30
+ "@commercetools-uikit/localized-utils": "20.3.1",
31
+ "@commercetools-uikit/messages": "20.3.1",
32
+ "@commercetools-uikit/spacings-stack": "20.3.1",
33
+ "@commercetools-uikit/text": "20.3.1",
34
+ "@commercetools-uikit/utils": "20.3.1",
35
35
  "@emotion/react": "^11.10.5",
36
36
  "@emotion/styled": "^11.10.5",
37
37
  "react-select": "5.10.2",
38
38
  "react-textarea-autosize": "8.4.0"
39
39
  },
40
40
  "devDependencies": {
41
- "react": "19.1.0",
42
- "react-dom": "19.1.0",
41
+ "react": "19.2.0",
42
+ "react-dom": "19.2.0",
43
43
  "react-intl": "^7.1.4"
44
44
  },
45
45
  "peerDependencies": {