@cleartrip/talos-chat-feedback 1.5.0 → 1.5.1-beta-260708-2.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.
@@ -21329,8 +21329,8 @@
21329
21329
  isCenter = _a.isCenter,
21330
21330
  _c = _a.isTop,
21331
21331
  isTop = _c === void 0 ? true : _c,
21332
- rest = __rest$2(_a, ["wrapperCss", "isBack", "children", "variant", "isCenter", "isTop"]);
21333
- var onClose = rest.onClose;
21332
+ onClose = _a.onClose,
21333
+ rest = __rest$2(_a, ["wrapperCss", "isBack", "children", "variant", "isCenter", "isTop", "onClose"]);
21334
21334
  var theme = useTheme();
21335
21335
  var closeButtonStyles = getCloseButtonStyle$1({
21336
21336
  theme: theme,
@@ -30729,6 +30729,8 @@
30729
30729
  suffix = props.suffix,
30730
30730
  onChange = props.onChange,
30731
30731
  onKeyDown = props.onKeyDown,
30732
+ onFocus = props.onFocus,
30733
+ onBlur = props.onBlur,
30732
30734
  styleConfig = props.styleConfig,
30733
30735
  _e = props.disabled,
30734
30736
  disabled = _e === void 0 ? false : _e;
@@ -30786,6 +30788,14 @@
30786
30788
  onChange === null || onChange === void 0 ? void 0 : onChange(text.trim());
30787
30789
  checkMultiLine();
30788
30790
  }, [disabled, onChange, checkMultiLine]);
30791
+ var handleFocus = React__default$1.useCallback(function (e) {
30792
+ if (disabled) return;
30793
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
30794
+ }, [disabled, onFocus]);
30795
+ var handleBlur = React__default$1.useCallback(function (e) {
30796
+ if (disabled) return;
30797
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
30798
+ }, [disabled, onBlur]);
30789
30799
  var focusEditor = React__default$1.useCallback(function () {
30790
30800
  var _a;
30791
30801
  if (disabled) return;
@@ -30842,6 +30852,8 @@
30842
30852
  "data-placeholder": placeholder,
30843
30853
  onKeyDown: handleKeyDown,
30844
30854
  onInput: handleInput,
30855
+ onFocus: handleFocus,
30856
+ onBlur: handleBlur,
30845
30857
  className: editor === null || editor === void 0 ? void 0 : editor.className,
30846
30858
  css: editor === null || editor === void 0 ? void 0 : editor.css,
30847
30859
  disabled: disabled
@@ -31023,6 +31035,14 @@
31023
31035
  }));
31024
31036
  });
31025
31037
 
31038
+ var InitialCorner;
31039
+ (function (InitialCorner) {
31040
+ InitialCorner["TOP_LEFT"] = "top-left";
31041
+ InitialCorner["TOP_RIGHT"] = "top-right";
31042
+ InitialCorner["BOTTOM_LEFT"] = "bottom-left";
31043
+ InitialCorner["BOTTOM_RIGHT"] = "bottom-right";
31044
+ })(InitialCorner || (InitialCorner = {}));
31045
+
31026
31046
  var getChatFeedbackStyle = function (theme) {
31027
31047
  return {
31028
31048
  root: {