@lobehub/ui 1.164.13 → 1.164.15

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.
@@ -11,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
12
  import { InputNumber, Slider } from 'antd';
13
13
  import { isNull } from 'lodash-es';
14
- import { memo, useCallback } from 'react';
14
+ import { memo } from 'react';
15
15
  import { Flexbox } from 'react-layout-kit';
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -30,10 +30,10 @@ var SliderWithInput = /*#__PURE__*/memo(function (_ref) {
30
30
  className = _ref.className,
31
31
  disabled = _ref.disabled,
32
32
  rest = _objectWithoutProperties(_ref, _excluded);
33
- var handleOnchange = useCallback(function (value) {
33
+ var handleOnchange = function handleOnchange(value) {
34
34
  if (Number.isNaN(value) || isNull(value)) return;
35
35
  onChange === null || onChange === void 0 || onChange(value);
36
- }, []);
36
+ };
37
37
  return /*#__PURE__*/_jsxs(Flexbox, {
38
38
  align: 'center',
39
39
  className: className,
@@ -95,6 +95,7 @@ var ChatItem = /*#__PURE__*/memo(function (_ref) {
95
95
  direction: type === 'block' ? placement === 'left' ? 'horizontal' : 'horizontal-reverse' : 'vertical',
96
96
  gap: 8,
97
97
  children: [/*#__PURE__*/_jsx(Flexbox, {
98
+ width: '100%',
98
99
  children: error && (message === placeholderMessage || !message) ? /*#__PURE__*/_jsx(ErrorContent, {
99
100
  error: error,
100
101
  message: errorMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.164.13",
3
+ "version": "1.164.15",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -71,7 +71,7 @@
71
71
  "immer": "^10.1.1",
72
72
  "leva": "^0.9.35",
73
73
  "lodash-es": "^4.17.21",
74
- "lucide-react": "^0.469.0",
74
+ "lucide-react": "^0.475.0",
75
75
  "mermaid": "^11.4.1",
76
76
  "numeral": "^2.0.6",
77
77
  "polished": "^4.3.1",