@lobehub/ui 1.96.2 → 1.97.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.
@@ -7,11 +7,13 @@ export type ChatInputAreaMobile = ChatInputBase & InputProps & {
7
7
  inputId?: string;
8
8
  inputStyle?: CSSProperties;
9
9
  minHeight?: number;
10
+ safeArea?: boolean;
10
11
  };
11
12
  declare const ChatInputArea: import("react").ForwardRefExoticComponent<ChatInputBase & InputProps & {
12
13
  inputClassName?: string | undefined;
13
14
  inputId?: string | undefined;
14
15
  inputStyle?: CSSProperties | undefined;
15
16
  minHeight?: number | undefined;
17
+ safeArea?: boolean | undefined;
16
18
  } & import("react").RefAttributes<InputRef>>;
17
19
  export default ChatInputArea;
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- var _excluded = ["inputClassName", "style", "inputStyle", "minHeight", "className", "actions", "expand", "placeholder", "onExpandChange", "onSend", "defaultValue", "loading", "disabled", "onInputChange", "onPressEnter", "onCompositionStart", "onCompositionEnd", "onBlur", "onChange", "inputId", "actionsRight", "onStop", "value"];
4
+ var _excluded = ["inputClassName", "style", "inputStyle", "minHeight", "className", "actions", "safeArea", "expand", "placeholder", "onExpandChange", "onSend", "defaultValue", "loading", "disabled", "onInputChange", "onPressEnter", "onCompositionStart", "onCompositionEnd", "onBlur", "onChange", "inputId", "actionsRight", "onStop", "value"];
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  import { Button } from 'antd';
@@ -11,6 +11,7 @@ import { Flexbox } from 'react-layout-kit';
11
11
  import useControlledState from 'use-merge-value';
12
12
  import Icon from "../Icon";
13
13
  import { Input } from "../Input";
14
+ import MobileSafeArea from "../MobileSafeArea";
14
15
  import Action from "./Action";
15
16
  import { useStyles } from "./style.mobile";
16
17
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -23,6 +24,8 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
24
  minHeight = _ref$minHeight === void 0 ? 200 : _ref$minHeight,
24
25
  className = _ref.className,
25
26
  actions = _ref.actions,
27
+ _ref$safeArea = _ref.safeArea,
28
+ safeArea = _ref$safeArea === void 0 ? true : _ref$safeArea,
26
29
  expand = _ref.expand,
27
30
  _ref$placeholder = _ref.placeholder,
28
31
  placeholder = _ref$placeholder === void 0 ? 'Type something to chat...' : _ref$placeholder,
@@ -126,6 +129,8 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
126
129
  type: 'primary'
127
130
  })
128
131
  })]
132
+ }), safeArea && /*#__PURE__*/_jsx(MobileSafeArea, {
133
+ position: 'bottom'
129
134
  })]
130
135
  });
131
136
  });
@@ -13,5 +13,6 @@ declare const ChatInputArea: import("react").ForwardRefExoticComponent<import(".
13
13
  inputId?: string | undefined;
14
14
  inputStyle?: import("react").CSSProperties | undefined;
15
15
  minHeight?: number | undefined;
16
+ safeArea?: boolean | undefined;
16
17
  } & import("react").RefAttributes<InputRef>>;
17
18
  export default ChatInputArea;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.96.2",
3
+ "version": "1.97.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",