@agentscope-ai/chat 1.1.46-beta.1767852895377 → 1.1.46-beta.1767868158421

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.
@@ -20,12 +20,12 @@ function Layout(props: IProps, ref: React.Ref<any>) {
20
20
  const { className } = props;
21
21
  const prefixCls = useProviderContext().getPrefixCls('chat-anywhere-layout');
22
22
  const narrowMode = useChatAnywhereOptions(v => v.theme.narrowMode);
23
+ const background = useChatAnywhereOptions(v => v.theme.background);
23
24
  const rightHeader = useChatAnywhereOptions(v => v.theme.rightHeader);
24
25
  const { session } = useChatAnywhereOptions(v => ({ session: v.session }));
25
26
  const { collapsed } = useContext(ChatAnyWhereLayoutContext);
26
27
  const showLeft = !narrowMode && session && session.multiple;
27
28
 
28
-
29
29
  return <>
30
30
  <Style />
31
31
  <div className={cls(`${prefixCls}`, className)}>
@@ -38,11 +38,12 @@ function Layout(props: IProps, ref: React.Ref<any>) {
38
38
  }
39
39
  <div className={cls(`${prefixCls}-right`, {
40
40
  [`${prefixCls}-right-has-header`]: !!rightHeader,
41
- })}>
41
+ })} style={{
42
+ background: background,
43
+ }}>
42
44
  {
43
45
  !!rightHeader && <Header />
44
46
  }
45
-
46
47
  <Chat />
47
48
  </div>
48
49
  </div>
@@ -77,6 +77,12 @@ export interface IAgentScopeRuntimeWebUIThemeOptions {
77
77
  * @descriptionEn Typography configuration
78
78
  */
79
79
  typography?: IAgentScopeRuntimeWebUITypography;
80
+
81
+ /**
82
+ * @description 背景色
83
+ * @descriptionEn Background color
84
+ */
85
+ background?: string;
80
86
  }
81
87
 
82
88
  export interface IAgentScopeRuntimeWebUITypography {
@@ -0,0 +1,5 @@
1
+ import { IAudio } from "./types";
2
+
3
+ export default function Audio(props: IAudio) {
4
+ return <div>Audio</div>;
5
+ }
@@ -0,0 +1,19 @@
1
+ import { useProviderContext } from "..";
2
+ import { IImage } from "./types";
3
+ import { Image, ConfigProvider } from 'antd';
4
+ import { Locale } from "antd/es/locale";
5
+
6
+
7
+ export default function (props: IImage) {
8
+ const prefixCls = useProviderContext().getPrefixCls('assets-preview-image');
9
+
10
+ return <div className={prefixCls} style={{
11
+ aspectRatio: `${props.width}/${props.height}`,
12
+ }}>
13
+ <ConfigProvider
14
+ locale={{
15
+ Image: { preview: '' }
16
+ } as Locale}
17
+ ><Image src={props.src} width={"100%"} height={"100%"} /></ConfigProvider>
18
+ </div>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { IVideo } from "./types";
2
+
3
+ export default function Video(props: IVideo) {
4
+ return <div>Video</div>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { AssetsPreview } from '@agentscope-ai/chat';
2
+ import React from 'react';
3
+
4
+ export default function () {
5
+ return <AssetsPreview type="image" data={[
6
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
7
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
8
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
9
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
10
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
11
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
12
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
13
+ { src: 'https://img.alicdn.com/imgextra/i3/O1CN01dKprif1ar0awCMDwK_!!6000000003382-0-tps-2640-1100.jpg', width: 16, height: 9 },
14
+ ]} />
15
+ }
@@ -7,3 +7,6 @@ description: ???
7
7
  ---
8
8
 
9
9
  <DemoTitle title="???" desc="???"></DemoTitle>
10
+
11
+
12
+ <code src="./demo/index.tsx"></code>
@@ -1,11 +1,62 @@
1
1
  import { useProviderContext } from '../Provider';
2
2
  import Style from './style';
3
+ import cls from 'classnames';
4
+ import { IImage, IVideo, IAudio } from './types';
5
+ import Image from './Image';
6
+ import Video from './Video';
7
+ import Audio from './Audio';
8
+ import { useCallback, useEffect, useRef, useState } from 'react';
9
+ import { SparkLeftLine, SparkRightLine } from '@agentscope-ai/icons';
10
+ import { IconButton } from '@agentscope-ai/design';
11
+ import { useDebounce } from 'ahooks';
3
12
 
13
+ export interface IAssetsPreviewProps {
14
+ className?: string;
15
+ classNames?: {
16
+ container?: string;
17
+ };
18
+ height?: number;
19
+ type: 'image' | 'video' | 'audio';
20
+ data: (IImage | IVideo | IAudio)[];
21
+ }
4
22
 
5
- export default function () {
23
+ function AssetsPreview(props: IAssetsPreviewProps) {
6
24
  const prefixCls = useProviderContext().getPrefixCls('assets-preview');
25
+ const Component = {
26
+ image: Image,
27
+ video: Video,
28
+ audio: Audio,
29
+ }[props.type];
30
+ const ref = useRef();
31
+
32
+ useEffect(() => { }, [props.data.length])
33
+ const { height = 144 } = props;
34
+ const [value, setValue] = useState<string>();
35
+ const debouncedValue = useDebounce(value, { wait: 500 });
36
+
37
+
38
+ const onScroll = useCallback((e) => {
39
+ console.log(e.target.scrollLeft, e.target.scrollWidth - e.target.clientWidth);
40
+ }, [])
41
+
42
+
7
43
  return <>
8
44
  <Style />
9
- <div className={prefixCls}>...</div>
45
+ <div className={cls(`${prefixCls}`, props.className)}>
46
+ <div className={cls(`${prefixCls}-container`, props.className)} style={{ height }} onScroll={onScroll}>
47
+ {
48
+ props.data.map((item, index) => {
49
+ return <Component key={index} {...item as any} />;
50
+ })
51
+ }
52
+ </div>
53
+ <div className={cls(`${prefixCls}-left-edge`)} />
54
+ <div className={cls(`${prefixCls}-right-edge`)} />
55
+ <IconButton className={cls(`${prefixCls}-left-arrow`, `${prefixCls}-arrow`)} size="small" shape='circle' icon={<SparkLeftLine />}></IconButton>
56
+ <IconButton className={cls(`${prefixCls}-right-arrow`, `${prefixCls}-arrow`)} size="small" shape='circle' icon={<SparkRightLine />}></IconButton>
57
+ </div>
10
58
  </>
11
- }
59
+ }
60
+
61
+
62
+ export default AssetsPreview;
@@ -1,6 +1,60 @@
1
1
  import { createGlobalStyle } from 'antd-style';
2
2
 
3
3
  export default createGlobalStyle`
4
- .${(p) => p.theme.prefixCls}- {
4
+ .${(p) => p.theme.prefixCls}-assets-preview {
5
+ position: relative;
6
+
7
+ &-left-edge,
8
+ &-right-edge {
9
+ position: absolute;
10
+ top: 0;
11
+ bottom: 0;
12
+ width: 128px;
13
+ pointer-events: none;
14
+ }
15
+
16
+ &-left-edge {
17
+ left: 0;
18
+ }
19
+
20
+ &-right-edge {
21
+ right: 0;
22
+ }
23
+
24
+ &-arrow {
25
+ position: absolute;
26
+ top: 50%;
27
+ transform: translateY(-65%);
28
+ bottom: 0;
29
+ }
30
+
31
+ &-left-arrow {
32
+ left: 10px;
33
+ }
34
+
35
+ &-right-arrow {
36
+ right: 10px;
37
+ }
38
+
39
+ &-container {
40
+ display: flex;
41
+ padding: 8px;
42
+ gap: 8px;
43
+ overflow-x: auto;
44
+ justify-content: safe center;
45
+ background-color: ${(p) => p.theme.colorFillTertiary};
46
+ }
47
+
48
+
49
+ &-image {
50
+ height: 100%;
51
+ flex-basis: auto;
52
+ flex-shrink: 0;
53
+ border-radius: 8px;
54
+ overflow: hidden;
55
+ background-size: cover;
56
+ background-position: center;
57
+ background-repeat: no-repeat;
58
+ }
5
59
  }
6
60
  `;
@@ -0,0 +1,14 @@
1
+ export interface IImage {
2
+ src: string;
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export interface IVideo {
7
+ poster?: string;
8
+ src: string;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ export interface IAudio {
13
+ src: string;
14
+ }
@@ -2,7 +2,6 @@ export { ConfigProvider } from 'antd';
2
2
 
3
3
  export { default as version } from './Version';
4
4
 
5
-
6
5
  export {
7
6
  CustomCardsContext,
8
7
  CustomCardsProvider,
@@ -87,4 +86,8 @@ export {
87
86
 
88
87
  export { default as AIGC } from './AIGC';
89
88
 
90
- export { Sandbox as GenerativeUISandbox } from './GenerativeUI';
89
+ export {
90
+ default as AssetsPreview,
91
+ type IAssetsPreviewProps,
92
+ } from './AssetsPreview';
93
+ export { Sandbox as GenerativeUISandbox } from './GenerativeUI';
@@ -22,6 +22,9 @@ function Layout(props, ref) {
22
22
  var narrowMode = useChatAnywhereOptions(function (v) {
23
23
  return v.theme.narrowMode;
24
24
  });
25
+ var background = useChatAnywhereOptions(function (v) {
26
+ return v.theme.background;
27
+ });
25
28
  var rightHeader = useChatAnywhereOptions(function (v) {
26
29
  return v.theme.rightHeader;
27
30
  });
@@ -42,6 +45,9 @@ function Layout(props, ref) {
42
45
  children: /*#__PURE__*/_jsx(Sessions, {})
43
46
  }), /*#__PURE__*/_jsxs("div", {
44
47
  className: cls("".concat(prefixCls, "-right"), _defineProperty({}, "".concat(prefixCls, "-right-has-header"), !!rightHeader)),
48
+ style: {
49
+ background: background
50
+ },
45
51
  children: [!!rightHeader && /*#__PURE__*/_jsx(Header, {}), /*#__PURE__*/_jsx(Chat, {})]
46
52
  })]
47
53
  }), /*#__PURE__*/_jsx(Ref, {
@@ -79,6 +79,11 @@ export interface IAgentScopeRuntimeWebUIThemeOptions {
79
79
  * @descriptionEn Typography configuration
80
80
  */
81
81
  typography?: IAgentScopeRuntimeWebUITypography;
82
+ /**
83
+ * @description 背景色
84
+ * @descriptionEn Background color
85
+ */
86
+ background?: string;
82
87
  }
83
88
  export interface IAgentScopeRuntimeWebUITypography {
84
89
  /**
@@ -0,0 +1,2 @@
1
+ import { IAudio } from "./types";
2
+ export default function Audio(props: IAudio): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export default function Audio(props) {
3
+ return /*#__PURE__*/_jsx("div", {
4
+ children: "Audio"
5
+ });
6
+ }
@@ -0,0 +1,2 @@
1
+ import { IImage } from "./types";
2
+ export default function (props: IImage): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { useProviderContext } from "..";
2
+ import { Image, ConfigProvider } from 'antd';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ export default function (props) {
5
+ var prefixCls = useProviderContext().getPrefixCls('assets-preview-image');
6
+ return /*#__PURE__*/_jsx("div", {
7
+ className: prefixCls,
8
+ style: {
9
+ aspectRatio: "".concat(props.width, "/").concat(props.height)
10
+ },
11
+ children: /*#__PURE__*/_jsx(ConfigProvider, {
12
+ locale: {
13
+ Image: {
14
+ preview: ''
15
+ }
16
+ },
17
+ children: /*#__PURE__*/_jsx(Image, {
18
+ src: props.src,
19
+ width: "100%",
20
+ height: "100%"
21
+ })
22
+ })
23
+ });
24
+ }
@@ -0,0 +1,2 @@
1
+ import { IVideo } from "./types";
2
+ export default function Video(props: IVideo): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export default function Video(props) {
3
+ return /*#__PURE__*/_jsx("div", {
4
+ children: "Video"
5
+ });
6
+ }
@@ -1 +1,12 @@
1
- export default function (): import("react/jsx-runtime").JSX.Element;
1
+ import { IImage, IVideo, IAudio } from './types';
2
+ export interface IAssetsPreviewProps {
3
+ className?: string;
4
+ classNames?: {
5
+ container?: string;
6
+ };
7
+ height?: number;
8
+ type: 'image' | 'video' | 'audio';
9
+ data: (IImage | IVideo | IAudio)[];
10
+ }
11
+ declare function AssetsPreview(props: IAssetsPreviewProps): import("react/jsx-runtime").JSX.Element;
12
+ export default AssetsPreview;
@@ -1,14 +1,77 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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; }
3
+ 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; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1
13
  import { useProviderContext } from "../Provider";
2
14
  import Style from "./style";
15
+ import cls from 'classnames';
16
+ import Image from "./Image";
17
+ import Video from "./Video";
18
+ import Audio from "./Audio";
19
+ import { useCallback, useEffect, useRef, useState } from 'react';
20
+ import { SparkLeftLine, SparkRightLine } from '@agentscope-ai/icons';
21
+ import { IconButton } from '@agentscope-ai/design';
22
+ import { useDebounce } from 'ahooks';
3
23
  import { jsx as _jsx } from "react/jsx-runtime";
4
- import { Fragment as _Fragment } from "react/jsx-runtime";
5
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
- export default function () {
25
+ import { Fragment as _Fragment } from "react/jsx-runtime";
26
+ function AssetsPreview(props) {
7
27
  var prefixCls = useProviderContext().getPrefixCls('assets-preview');
28
+ var Component = {
29
+ image: Image,
30
+ video: Video,
31
+ audio: Audio
32
+ }[props.type];
33
+ var ref = useRef();
34
+ useEffect(function () {}, [props.data.length]);
35
+ var _props$height = props.height,
36
+ height = _props$height === void 0 ? 144 : _props$height;
37
+ var _useState = useState(),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ value = _useState2[0],
40
+ setValue = _useState2[1];
41
+ var debouncedValue = useDebounce(value, {
42
+ wait: 500
43
+ });
44
+ var onScroll = useCallback(function (e) {
45
+ console.log(e.target.scrollLeft, e.target.scrollWidth - e.target.clientWidth);
46
+ }, []);
8
47
  return /*#__PURE__*/_jsxs(_Fragment, {
9
- children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx("div", {
10
- className: prefixCls,
11
- children: "..."
48
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
49
+ className: cls("".concat(prefixCls), props.className),
50
+ children: [/*#__PURE__*/_jsx("div", {
51
+ className: cls("".concat(prefixCls, "-container"), props.className),
52
+ style: {
53
+ height: height
54
+ },
55
+ onScroll: onScroll,
56
+ children: props.data.map(function (item, index) {
57
+ return /*#__PURE__*/_jsx(Component, _objectSpread({}, item), index);
58
+ })
59
+ }), /*#__PURE__*/_jsx("div", {
60
+ className: cls("".concat(prefixCls, "-left-edge"))
61
+ }), /*#__PURE__*/_jsx("div", {
62
+ className: cls("".concat(prefixCls, "-right-edge"))
63
+ }), /*#__PURE__*/_jsx(IconButton, {
64
+ className: cls("".concat(prefixCls, "-left-arrow"), "".concat(prefixCls, "-arrow")),
65
+ size: "small",
66
+ shape: "circle",
67
+ icon: /*#__PURE__*/_jsx(SparkLeftLine, {})
68
+ }), /*#__PURE__*/_jsx(IconButton, {
69
+ className: cls("".concat(prefixCls, "-right-arrow"), "".concat(prefixCls, "-arrow")),
70
+ size: "small",
71
+ shape: "circle",
72
+ icon: /*#__PURE__*/_jsx(SparkRightLine, {})
73
+ })]
12
74
  })]
13
75
  });
14
- }
76
+ }
77
+ export default AssetsPreview;
@@ -1,6 +1,8 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { createGlobalStyle } from 'antd-style';
4
- export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "- {\n}\n"])), function (p) {
4
+ export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-assets-preview {\n position: relative;\n\n &-left-edge,\n &-right-edge {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 128px;\n pointer-events: none;\n }\n\n &-left-edge {\n left: 0;\n }\n\n &-right-edge {\n right: 0;\n }\n\n &-arrow {\n position: absolute;\n top: 50%;\n transform: translateY(-65%);\n bottom: 0;\n }\n\n &-left-arrow {\n left: 10px;\n }\n\n &-right-arrow {\n right: 10px;\n }\n\n &-container {\n display: flex;\n padding: 8px;\n gap: 8px;\n overflow-x: auto;\n justify-content: safe center;\n background-color: ", ";\n }\n\n\n &-image {\n height: 100%;\n flex-basis: auto;\n flex-shrink: 0;\n border-radius: 8px;\n overflow: hidden;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n }\n}\n"])), function (p) {
5
5
  return p.theme.prefixCls;
6
+ }, function (p) {
7
+ return p.theme.colorFillTertiary;
6
8
  });
@@ -0,0 +1,14 @@
1
+ export interface IImage {
2
+ src: string;
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export interface IVideo {
7
+ poster?: string;
8
+ src: string;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ export interface IAudio {
13
+ src: string;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts CHANGED
@@ -26,4 +26,5 @@ export { default as sleep } from './Util/sleep';
26
26
  export { default as Welcome, type IWelcomeProps } from './Welcome';
27
27
  export { default as Markdown, type MarkdownProps as IMarkdownProps, type MarkdownProps, } from './Markdown';
28
28
  export { default as AIGC } from './AIGC';
29
+ export { default as AssetsPreview, type IAssetsPreviewProps, } from './AssetsPreview';
29
30
  export { Sandbox as GenerativeUISandbox } from './GenerativeUI';
package/lib/index.js CHANGED
@@ -25,4 +25,5 @@ export { default as sleep } from "./Util/sleep";
25
25
  export { default as Welcome } from "./Welcome";
26
26
  export { default as Markdown } from "./Markdown";
27
27
  export { default as AIGC } from "./AIGC";
28
+ export { default as AssetsPreview } from "./AssetsPreview";
28
29
  export { Sandbox as GenerativeUISandbox } from "./GenerativeUI";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.46-beta.1767852895377",
3
+ "version": "1.1.46-beta.1767868158421",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [