@lobehub/ui 1.55.0 → 1.55.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.
@@ -10,5 +10,5 @@ export interface TokenTagProps extends DivProps {
10
10
  */
11
11
  value: number;
12
12
  }
13
- declare const TokenTag: import("react").NamedExoticComponent<TokenTagProps>;
13
+ declare const TokenTag: import("react").ForwardRefExoticComponent<TokenTagProps & import("react").RefAttributes<HTMLDivElement>>;
14
14
  export default TokenTag;
@@ -3,12 +3,12 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
3
3
  var _excluded = ["className", "maxValue", "value"];
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
- import { memo } from 'react';
6
+ import { forwardRef } from 'react';
7
7
  import FluentEmoji from "../FluentEmoji";
8
8
  import { ICON_SIZE, useStyles } from "./style";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
- var TokenTag = /*#__PURE__*/memo(function (_ref) {
11
+ var TokenTag = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
12
  var className = _ref.className,
13
13
  maxValue = _ref.maxValue,
14
14
  value = _ref.value,
@@ -31,7 +31,8 @@ var TokenTag = /*#__PURE__*/memo(function (_ref) {
31
31
  styles = _useStyles.styles,
32
32
  cx = _useStyles.cx;
33
33
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
34
- className: cx(styles.container, className)
34
+ className: cx(styles.container, className),
35
+ ref: ref
35
36
  }, props), {}, {
36
37
  children: [/*#__PURE__*/_jsx(FluentEmoji, {
37
38
  emoji: emoji,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building chatbot web apps",
5
5
  "keywords": [
6
6
  "lobehub",