@yuntijs/ui 1.0.0-beta.86 → 1.0.0-beta.87

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.
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ChatItemProps } from '../type';
3
+ export interface ActionsProps {
4
+ actions: ChatItemProps['actions'];
5
+ editing?: boolean;
6
+ placement?: ChatItemProps['placement'];
7
+ type?: ChatItemProps['type'];
8
+ }
9
+ declare const Actions: import("react").NamedExoticComponent<ActionsProps>;
10
+ export default Actions;
@@ -0,0 +1,23 @@
1
+ import { memo } from 'react';
2
+ import { Flexbox } from 'react-layout-kit';
3
+ import { useStyles } from "../style";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ var Actions = /*#__PURE__*/memo(function (_ref) {
6
+ var actions = _ref.actions,
7
+ placement = _ref.placement,
8
+ type = _ref.type,
9
+ editing = _ref.editing;
10
+ var _useStyles = useStyles({
11
+ editing: editing,
12
+ placement: placement,
13
+ type: type
14
+ }),
15
+ styles = _useStyles.styles;
16
+ return /*#__PURE__*/_jsx(Flexbox, {
17
+ align: 'flex-start',
18
+ className: styles.actions,
19
+ role: "menubar",
20
+ children: actions
21
+ });
22
+ });
23
+ export default Actions;
@@ -5,7 +5,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
5
5
  var _excluded = ["avatarAddon", "onAvatarClick", "avatarProps", "actions", "className", "primary", "loading", "message", "placement", "type", "avatar", "error", "showTitle", "time", "editing", "onChange", "onEditingChange", "messageExtra", "renderMessage", "text", "errorMessage", "onDoubleClick", "fontSize", "markdownProps", "markdownClassname", "isLatest"];
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
- import Actions from '@lobehub/ui/es/chat/ChatItem/components/Actions';
9
8
  import Avatar from '@lobehub/ui/es/chat/ChatItem/components/Avatar';
10
9
  import BorderSpacing from '@lobehub/ui/es/chat/ChatItem/components/BorderSpacing';
11
10
  import ErrorContent from '@lobehub/ui/es/chat/ChatItem/components/ErrorContent';
@@ -13,6 +12,7 @@ import Title from '@lobehub/ui/es/chat/ChatItem/components/Title';
13
12
  import { useResponsive } from 'antd-style';
14
13
  import { memo } from 'react';
15
14
  import { Flexbox } from 'react-layout-kit';
15
+ import Actions from "./components/Actions";
16
16
  import MessageContent from "./components/MessageContent";
17
17
  import { useStyles } from "./style";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuntijs/ui",
3
- "version": "1.0.0-beta.86",
3
+ "version": "1.0.0-beta.87",
4
4
  "description": "☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps",
5
5
  "keywords": [
6
6
  "yuntijs",