@agentscope-ai/chat 1.1.45-beta.1766038189989 → 1.1.45-beta.1766042199498

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.
@@ -66,17 +66,16 @@ const ImageGenerator: React.FC<IImageGeneratorProps> = (props) => {
66
66
  const { block, skeletonText, width = 320, height = 320, src, loadingText = 'Painting...', doneText = 'Paint Completed' } = props;
67
67
 
68
68
  const skeleton = props.skeleton || <div className={`${prefixCls}-default-skeleton`} style={{ width: '100%', height: '100%' }}>
69
- <img
69
+ <div
70
70
  className={`${prefixCls}-default-skeleton-bg`}
71
- src="https://img.alicdn.com/imgextra/i2/O1CN01jwLfwV1hPiHfJjQXM_!!6000000004270-2-tps-1155-763.png"
72
- alt=""
73
- />
71
+ >
72
+ <div className={`${prefixCls}-default-skeleton-bg-animate`} />
73
+ </div>
74
74
  <div className={`${prefixCls}-default-skeleton-content`}>
75
75
  <img
76
76
  className={`${prefixCls}-default-skeleton-icon`}
77
77
  src="https://img.alicdn.com/imgextra/i2/O1CN01M1X8yM1MWUC7u3Go5_!!6000000001442-54-tps-72-72.apng"
78
78
  />
79
-
80
79
  {
81
80
  skeletonText && <div className={`${prefixCls}-default-skeleton-text`}>{skeletonText}</div>
82
81
  }
@@ -44,14 +44,19 @@ export default createGlobalStyle`
44
44
 
45
45
  &-bg {
46
46
  position: absolute;
47
- top: 50%;
48
- left: 50%;
49
- transform: translate(-50%, -50%) rotate(0deg);
50
- width: 100vmax;
51
- height: 100vmax;
52
- object-fit: cover;
53
- animation: ${(p) => p.theme.prefixCls}spin 6s linear infinite;
54
- pointer-events: none;
47
+ inset: 0;
48
+
49
+
50
+ &-animate {
51
+ position: absolute;
52
+ top: 50%;
53
+ left: 50%;
54
+ width: 250%;
55
+ height: 250%;
56
+ transform: translate(-50%, -50%) rotate(0deg);
57
+ animation: ${(p) => p.theme.prefixCls}spin 6s linear infinite;
58
+ background: radial-gradient(103.37% 63.46% at 108.3% 0%, rgba(122, 239, 214, 0.60) 0%, rgba(122, 239, 214, 0.00) 100%), radial-gradient(176.66% 108.46% at -9.16% 114.87%, #938CD4 0%, #E4E2FD 100%), #E4E2FD;
59
+ }
55
60
  }
56
61
 
57
62
  &-icon {
@@ -28,10 +28,11 @@ var ImageGenerator = function ImageGenerator(props) {
28
28
  width: '100%',
29
29
  height: '100%'
30
30
  },
31
- children: [/*#__PURE__*/_jsx("img", {
31
+ children: [/*#__PURE__*/_jsx("div", {
32
32
  className: "".concat(prefixCls, "-default-skeleton-bg"),
33
- src: "https://img.alicdn.com/imgextra/i2/O1CN01jwLfwV1hPiHfJjQXM_!!6000000004270-2-tps-1155-763.png",
34
- alt: ""
33
+ children: /*#__PURE__*/_jsx("div", {
34
+ className: "".concat(prefixCls, "-default-skeleton-bg-animate")
35
+ })
35
36
  }), /*#__PURE__*/_jsxs("div", {
36
37
  className: "".concat(prefixCls, "-default-skeleton-content"),
37
38
  children: [/*#__PURE__*/_jsx("img", {
@@ -1,7 +1,7 @@
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.", "-image-generator {\n\n .", "-image {\n border-radius: 8px;\n filter: blur(20px);\n animation: ", "clearBlur 1s ease forwards;\n overflow: hidden;\n }\n\n\n &-wrapper {\n overflow: hidden;\n }\n\n\n &-text {\n position: relative;\n display: flex;\n gap: 8px;\n height: 40px;\n align-items: center;\n font-size: 14px;\n line-height: 26px;\n color: ", ";\n\n\n &-success {\n color: ", ";\n font-size: 20px;\n }\n }\n\n &-default-skeleton {\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n\n &-bg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) rotate(0deg);\n width: 100vmax;\n height: 100vmax;\n object-fit: cover;\n animation: ", "spin 6s linear infinite;\n pointer-events: none;\n }\n\n &-icon {\n width: 32px;\n height: 32px;\n } \n\n &-content {\n display: flex;\n flex-direction: column;\n gap: 4px;\n align-items: center;\n justify-content: center;\n z-index: 1;\n \n }\n\n &-text {\n margin-top: 8px;\n font-size: 14px;\n color: ", ";\n }\n }\n}\n\n\n\n@keyframes ", "clearBlur {\n from {\n filter: blur(20px);\n }\n to {\n filter: blur(0);\n }\n}\n\n@keyframes ", "spin {\n from {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n}\n"])), function (p) {
4
+ export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-image-generator {\n\n .", "-image {\n border-radius: 8px;\n filter: blur(20px);\n animation: ", "clearBlur 1s ease forwards;\n overflow: hidden;\n }\n\n\n &-wrapper {\n overflow: hidden;\n }\n\n\n &-text {\n position: relative;\n display: flex;\n gap: 8px;\n height: 40px;\n align-items: center;\n font-size: 14px;\n line-height: 26px;\n color: ", ";\n\n\n &-success {\n color: ", ";\n font-size: 20px;\n }\n }\n\n &-default-skeleton {\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n\n &-bg {\n position: absolute;\n inset: 0;\n \n\n &-animate {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 250%;\n height: 250%;\n transform: translate(-50%, -50%) rotate(0deg);\n animation: ", "spin 6s linear infinite;\n background: radial-gradient(103.37% 63.46% at 108.3% 0%, rgba(122, 239, 214, 0.60) 0%, rgba(122, 239, 214, 0.00) 100%), radial-gradient(176.66% 108.46% at -9.16% 114.87%, #938CD4 0%, #E4E2FD 100%), #E4E2FD;\n }\n }\n\n &-icon {\n width: 32px;\n height: 32px;\n } \n\n &-content {\n display: flex;\n flex-direction: column;\n gap: 4px;\n align-items: center;\n justify-content: center;\n z-index: 1;\n \n }\n\n &-text {\n margin-top: 8px;\n font-size: 14px;\n color: ", ";\n }\n }\n}\n\n\n\n@keyframes ", "clearBlur {\n from {\n filter: blur(20px);\n }\n to {\n filter: blur(0);\n }\n}\n\n@keyframes ", "spin {\n from {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n}\n"])), function (p) {
5
5
  return p.theme.prefixCls;
6
6
  }, function (p) {
7
7
  return p.theme.prefixCls;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.45-beta.1766038189989",
3
+ "version": "1.1.45-beta.1766042199498",
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": [