@lobehub/ui 1.104.2 → 1.104.3

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,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type ActionIconGroupProps } from "../ActionIconGroup";
3
- import { ChatMessage } from "../types";
4
3
  export interface ActionsBarProps extends ActionIconGroupProps {
5
4
  text?: {
6
5
  copy?: string;
@@ -9,5 +8,5 @@ export interface ActionsBarProps extends ActionIconGroupProps {
9
8
  regenerate?: string;
10
9
  };
11
10
  }
12
- declare const ActionsBar: import("react").NamedExoticComponent<ActionsBarProps & ChatMessage>;
11
+ declare const ActionsBar: import("react").NamedExoticComponent<ActionsBarProps>;
13
12
  export default ActionsBar;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["role", "text"];
3
+ var _excluded = ["text"];
4
4
  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; }
5
5
  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; }
6
6
  import { memo } from 'react';
@@ -8,8 +8,7 @@ import ActionIconGroup from "../ActionIconGroup";
8
8
  import { useChatListActionsBar } from "../hooks/useChatListActionsBar";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var ActionsBar = /*#__PURE__*/memo(function (_ref) {
11
- var role = _ref.role,
12
- text = _ref.text,
11
+ var text = _ref.text,
13
12
  props = _objectWithoutProperties(_ref, _excluded);
14
13
  var _useChatListActionsBa = useChatListActionsBar(text),
15
14
  regenerate = _useChatListActionsBa.regenerate,
@@ -19,7 +18,7 @@ var ActionsBar = /*#__PURE__*/memo(function (_ref) {
19
18
  del = _useChatListActionsBa.del;
20
19
  return /*#__PURE__*/_jsx(ActionIconGroup, _objectSpread({
21
20
  dropdownMenu: [edit, copy, regenerate, divider, del],
22
- items: [regenerate, role === 'user' ? edit : copy],
21
+ items: [regenerate, edit],
23
22
  type: "ghost"
24
23
  }, props));
25
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.104.2",
3
+ "version": "1.104.3",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",