@lobehub/ui 1.152.0 → 1.152.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.
@@ -1,5 +1,7 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
4
+ var _excluded = ["children"];
3
5
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
6
  import { useSize } from 'ahooks';
5
7
  import { createStyles } from 'antd-style';
@@ -56,7 +58,8 @@ var MobileChatInputArea = /*#__PURE__*/forwardRef(function (_ref2, ref) {
56
58
  setShowFullscreen(size.height > 72);
57
59
  }, [size]);
58
60
  var InnerContainer = useCallback(function (_ref3) {
59
- var children = _ref3.children;
61
+ var children = _ref3.children,
62
+ r = _objectWithoutProperties(_ref3, _excluded);
60
63
  return expand ? /*#__PURE__*/_jsxs(Flexbox, {
61
64
  className: styles.inner,
62
65
  gap: 8,
@@ -64,14 +67,14 @@ var MobileChatInputArea = /*#__PURE__*/forwardRef(function (_ref2, ref) {
64
67
  gap: 8,
65
68
  horizontal: true,
66
69
  justify: 'flex-end',
67
- children: [textAreaLeftAddons, textAreaRightAddons]
68
- }), children, topAddons, bottomAddons]
70
+ children: [r.textAreaLeftAddons, r.textAreaRightAddons]
71
+ }), children, r.topAddons, r.bottomAddons]
69
72
  }) : /*#__PURE__*/_jsxs(Flexbox, {
70
73
  align: 'flex-end',
71
74
  className: styles.inner,
72
75
  gap: 8,
73
76
  horizontal: true,
74
- children: [textAreaLeftAddons, children, textAreaRightAddons]
77
+ children: [r.textAreaLeftAddons, children, r.textAreaRightAddons]
75
78
  });
76
79
  }, [expand, loading]);
77
80
  var showAddons = !expand && !isFocused;
@@ -106,6 +109,10 @@ var MobileChatInputArea = /*#__PURE__*/forwardRef(function (_ref2, ref) {
106
109
  top: 6
107
110
  } : {}
108
111
  }), /*#__PURE__*/_jsx(InnerContainer, {
112
+ bottomAddons: bottomAddons,
113
+ textAreaLeftAddons: textAreaLeftAddons,
114
+ textAreaRightAddons: textAreaRightAddons,
115
+ topAddons: topAddons,
109
116
  children: /*#__PURE__*/_jsx(ChatInputAreaInner, {
110
117
  autoSize: expand ? false : {
111
118
  maxRows: 6,
@@ -1,66 +1,21 @@
1
- import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
- /**
3
- * 卡片列表项的属性
4
- */
5
- export interface ListItemProps {
6
- /**
7
- * 渲染操作区域的 React 节点
8
- */
1
+ import { ReactNode } from 'react';
2
+ import { FlexboxProps } from 'react-layout-kit';
3
+ export interface ListItemProps extends Omit<FlexboxProps, 'title'> {
9
4
  actions?: ReactNode;
10
- /**
11
- * 是否处于激活状态
12
- */
13
- active: boolean;
5
+ active?: boolean;
14
6
  addon?: ReactNode;
15
- /**
16
- * 头像的 React 节点
17
- */
18
7
  avatar?: ReactNode;
19
- /**
20
- * 自定义样式类名
21
- */
22
- className?: string;
23
- /**
24
- * 自定义样式类名对象
25
- * @property time - 时间的样式类名
26
- */
27
8
  classNames?: {
28
9
  time?: string;
29
10
  };
30
- /**
31
- * 日期时间戳
32
- */
33
11
  date?: number;
34
- /**
35
- * 描述信息
36
- */
37
12
  description?: ReactNode;
38
- /**
39
- * 是否处于加载状态
40
- */
41
13
  loading?: boolean;
42
- /**
43
- * 点击事件回调函数
44
- */
45
14
  onClick?: () => void;
46
- /**
47
- * 鼠标悬停状态变化事件回调函数
48
- * @param hover - 是否悬停
49
- */
50
15
  onHoverChange?: (hover: boolean) => void;
51
16
  pin?: boolean;
52
- /**
53
- * 是否显示操作区域
54
- */
55
17
  showAction?: boolean;
56
- /**
57
- * 自定义样式对象
58
- */
59
- style?: CSSProperties;
60
- /**
61
- * 标题
62
- */
63
18
  title: ReactNode;
64
19
  }
65
- declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & HTMLAttributes<any> & import("react").RefAttributes<HTMLDivElement>>;
20
+ declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<HTMLDivElement>>;
66
21
  export default ListItem;
@@ -9,10 +9,6 @@ import { Flexbox } from 'react-layout-kit';
9
9
  import Icon from "../../Icon";
10
10
  import { useStyles } from "./style";
11
11
  import { getChatItemTime } from "./time";
12
-
13
- /**
14
- * 卡片列表项的属性
15
- */
16
12
  import { jsx as _jsx } from "react/jsx-runtime";
17
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
14
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ export var useStyles = createStyles(function (_ref) {
7
7
  return {
8
8
  actions: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 50%;\n inset-inline-end: 16px;\n transform: translateY(-50%);\n "]))),
9
9
  active: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n "])), token.colorText, token.colorFillSecondary, token.colorFill),
10
- container: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n color: ", ";\n background: transparent;\n transition: background-color 200ms ", ";\n\n &:active {\n background-color: ", ";\n }\n\n &:hover {\n background-color: ", ";\n }\n "])), token.colorTextTertiary, token.motionEaseOut, token.colorFillSecondary, token.colorFillTertiary),
10
+ container: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n position: relative;\n\n color: ", ";\n\n background: transparent;\n\n transition: background-color 200ms ", ";\n\n &:active {\n background-color: ", ";\n }\n\n &:hover {\n background-color: ", ";\n }\n "])), token.colorTextTertiary, token.motionEaseOut, token.colorFillSecondary, token.colorFillTertiary),
11
11
  content: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n flex: 1;\n align-self: center;\n "]))),
12
12
  desc: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 12px;\n line-height: 1;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])), token.colorTextDescription),
13
13
  pin: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 6px;\n inset-inline-end: 6px;\n "]))),
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const List: {
3
- Item: import("react").ForwardRefExoticComponent<import("./ListItem").ListItemProps & import("react").HTMLAttributes<any> & import("react").RefAttributes<HTMLDivElement>>;
3
+ Item: import("react").ForwardRefExoticComponent<import("./ListItem").ListItemProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  };
5
5
  export type { ListItemProps } from './ListItem';
6
6
  export default List;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.152.0",
3
+ "version": "1.152.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -75,47 +75,47 @@
75
75
  ]
76
76
  },
77
77
  "dependencies": {
78
- "@babel/runtime": "^7.25.4",
78
+ "@babel/runtime": "^7.26.0",
79
79
  "@dnd-kit/core": "^6.1.0",
80
80
  "@dnd-kit/modifiers": "^7.0.0",
81
81
  "@dnd-kit/sortable": "^8.0.0",
82
82
  "@dnd-kit/utilities": "^3.2.2",
83
83
  "@emoji-mart/data": "^1.2.1",
84
84
  "@emoji-mart/react": "^1.1.1",
85
- "@floating-ui/react": "^0.26.23",
85
+ "@floating-ui/react": "^0.26.28",
86
86
  "@giscus/react": "^3.0.0",
87
87
  "@lobehub/emojilib": "latest",
88
- "@react-spring/web": "^9.7.4",
89
- "@shikijs/transformers": "^1.14.1",
88
+ "@react-spring/web": "^9.7.5",
89
+ "@shikijs/transformers": "^1.23.1",
90
90
  "@splinetool/runtime": "^0.9.526",
91
91
  "chroma-js": "^2.6.0",
92
92
  "dayjs": "^1.11.13",
93
93
  "emoji-mart": "^5.6.0",
94
- "emoji-regex": "^10.3.0",
94
+ "emoji-regex": "^10.4.0",
95
95
  "fast-deep-equal": "^3.1.3",
96
96
  "immer": "^10.1.1",
97
97
  "leva": "^0.9.35",
98
98
  "lodash-es": "^4.17.21",
99
- "mermaid": "^10.9.1",
99
+ "mermaid": "^10.9.3",
100
100
  "numeral": "^2.0.6",
101
101
  "polished": "^4.3.1",
102
- "prism-react-renderer": "^2.3.1",
103
- "query-string": "^9.1.0",
102
+ "prism-react-renderer": "^2.4.0",
103
+ "query-string": "^9.1.1",
104
104
  "rc-footer": "^0.6.8",
105
- "re-resizable": "^6.9.17",
105
+ "re-resizable": "^6.10.1",
106
106
  "react-avatar-editor": "^13.0.2",
107
- "react-error-boundary": "^4.0.13",
107
+ "react-error-boundary": "^4.1.2",
108
108
  "react-layout-kit": "^1.9.0",
109
109
  "react-markdown": "^8.0.7",
110
110
  "react-merge-refs": "^2.1.1",
111
- "react-rnd": "^10.4.12",
111
+ "react-rnd": "^10.4.13",
112
112
  "react-simple-code-editor": "^0.13.1",
113
113
  "rehype-katex": "^6.0.3",
114
114
  "rehype-raw": "^7.0.0",
115
115
  "remark-breaks": "^4.0.0",
116
116
  "remark-gfm": "^3.0.1",
117
117
  "remark-math": "^5.1.1",
118
- "shiki": "^1.14.1",
118
+ "shiki": "^1.23.1",
119
119
  "swr": "^2.2.5",
120
120
  "ts-md5": "^1.3.1",
121
121
  "url-join": "^5.0.0",
@@ -123,8 +123,8 @@
123
123
  "uuid": "^10.0.0"
124
124
  },
125
125
  "devDependencies": {
126
- "@ant-design/icons": "^5.4.0",
127
- "@commitlint/cli": "^19.4.0",
126
+ "@ant-design/icons": "^5.5.1",
127
+ "@commitlint/cli": "^19.6.0",
128
128
  "@lobehub/lint": "^1.24.4",
129
129
  "@testing-library/react": "^14.3.1",
130
130
  "@types/chroma-js": "^2.4.4",
@@ -134,23 +134,23 @@
134
134
  "@types/pangu": "^4.0.2",
135
135
  "@types/query-string": "^6.3.0",
136
136
  "@types/react": "18.2.40",
137
- "@types/react-avatar-editor": "^13.0.2",
138
- "@types/react-dom": "^18.3.0",
137
+ "@types/react-avatar-editor": "^13.0.3",
138
+ "@types/react-dom": "^18.3.1",
139
139
  "@types/unist": "^3.0.3",
140
140
  "@types/uuid": "^10.0.0",
141
141
  "@vitest/coverage-v8": "~1.2.2",
142
142
  "babel-plugin-antd-style": "^1.0.4",
143
- "commitlint": "^19.4.0",
143
+ "commitlint": "^19.6.0",
144
144
  "concurrently": "^8.2.2",
145
145
  "cross-env": "^7.0.3",
146
146
  "dpdm": "^3.14.0",
147
147
  "dumi": "2.2.17",
148
148
  "dumi-theme-lobehub": "^1.8.1",
149
- "eslint": "^8.57.0",
149
+ "eslint": "^8.57.1",
150
150
  "father": "4.3.1",
151
151
  "husky": "9.0.11",
152
152
  "jsdom": "^24.1.3",
153
- "lint-staged": "^15.2.9",
153
+ "lint-staged": "^15.2.10",
154
154
  "prettier": "^3.3.3",
155
155
  "react": "^18.3.1",
156
156
  "react-dom": "^18.3.1",
@@ -158,8 +158,7 @@
158
158
  "remark-cli": "^11.0.0",
159
159
  "semantic-release": "^21.1.2",
160
160
  "stylelint": "^15.11.0",
161
- "typescript": "^5.5.4",
162
- "umi": "4.3.16",
161
+ "typescript": "^5.6.3",
163
162
  "unist-util-is": "^6.0.0",
164
163
  "unist-util-visit": "^5.0.0",
165
164
  "vitest": "~1.2.2"