@easyv/biz-components 1.0.11 → 1.0.13

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.
@@ -34,6 +34,7 @@ export interface AiChatMessageItem {
34
34
  /** 用作消息排序 */
35
35
  createTimeStamp?: number;
36
36
  endTime?: string;
37
+ showVoiceBtn?: boolean;
37
38
  }
38
39
  export interface AiAgentSocketMessagePayload {
39
40
  type: AiAgentMessageType;
@@ -8,18 +8,27 @@ const getAnimationDelay = (index) => {
8
8
  };
9
9
  const VoiceAnimation = (props) => {
10
10
  const { className = "", barNumber = 22, barClassName = "" } = props;
11
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames("voice-animation biz-flex biz-justify-between", className), children: new Array(barNumber).fill(0).map((_, index) => {
12
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
13
- "div",
14
- {
15
- className: `wave-bar biz-h-full biz-rounded-full biz-w-[0.4rem] ${barClassName}`,
16
- style: {
17
- animationDelay: getAnimationDelay(index)
18
- }
19
- },
20
- index
21
- );
22
- }) });
11
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
12
+ "div",
13
+ {
14
+ className: classNames(
15
+ "voice-animation biz-flex biz-justify-between biz-items-center biz-w-full biz-h-full",
16
+ className
17
+ ),
18
+ children: new Array(barNumber).fill(0).map((_, index) => {
19
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
20
+ "div",
21
+ {
22
+ className: `wave-bar biz-h-full biz-rounded-full biz-w-[0.4rem] biz-bg-[#000] ${barClassName}`,
23
+ style: {
24
+ animationDelay: getAnimationDelay(index)
25
+ }
26
+ },
27
+ index
28
+ );
29
+ })
30
+ }
31
+ );
23
32
  };
24
33
  export {
25
34
  VoiceAnimation
@@ -1 +1 @@
1
- {"version":3,"file":"voice-animation.es.js","sources":["../../../src/components/voice-animation/voice-animation.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport './index.css';\n\nexport interface VoiceAnimationProps {\n className?: string;\n barNumber?: number;\n barClassName?: string;\n}\nconst animationDelayList = [0.4, 1.2, 0.8, 1.4, 0.8, 0.4, 1.4, 0.4, 1.4, 0.8, 0.4, 1.6];\nconst durationLength = animationDelayList.length;\nconst getAnimationDelay = (index: number) => {\n return `-${animationDelayList[index % durationLength]}s`;\n};\n\nexport const VoiceAnimation = (props: VoiceAnimationProps) => {\n const { className = '', barNumber = 22, barClassName = '' } = props;\n\n return (\n <div className={classNames('voice-animation biz-flex biz-justify-between', className)}>\n {new Array(barNumber).fill(0).map((_, index) => {\n return (\n <div\n key={index}\n className={`wave-bar biz-h-full biz-rounded-full biz-w-[0.4rem] ${barClassName}`}\n style={{\n animationDelay: getAnimationDelay(index),\n }}\n ></div>\n );\n })}\n </div>\n );\n};\n"],"names":["jsx"],"mappings":";;;AAQA,MAAM,qBAAqB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AACtF,MAAM,iBAAiB,mBAAmB;AAC1C,MAAM,oBAAoB,CAAC,UAAkB;AAC3C,SAAO,IAAI,mBAAmB,QAAQ,cAAc,CAAC;AACvD;AAEa,MAAA,iBAAiB,CAAC,UAA+B;AAC5D,QAAM,EAAE,YAAY,IAAI,YAAY,IAAI,eAAe,OAAO;AAE9D,+CACG,OAAI,EAAA,WAAW,WAAW,gDAAgD,SAAS,GACjF,UAAA,IAAI,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAE5C,WAAAA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAW,uDAAuD,YAAY;AAAA,QAC9E,OAAO;AAAA,UACL,gBAAgB,kBAAkB,KAAK;AAAA,QAAA;AAAA,MACzC;AAAA,MAJK;AAAA,IAKN;AAAA,EAEJ,CAAA,GACH;AAEJ;"}
1
+ {"version":3,"file":"voice-animation.es.js","sources":["../../../src/components/voice-animation/voice-animation.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport './index.css';\n\nexport interface VoiceAnimationProps {\n className?: string;\n barNumber?: number;\n barClassName?: string;\n}\nconst animationDelayList = [0.4, 1.2, 0.8, 1.4, 0.8, 0.4, 1.4, 0.4, 1.4, 0.8, 0.4, 1.6];\nconst durationLength = animationDelayList.length;\nconst getAnimationDelay = (index: number) => {\n return `-${animationDelayList[index % durationLength]}s`;\n};\n\nexport const VoiceAnimation = (props: VoiceAnimationProps) => {\n const { className = '', barNumber = 22, barClassName = '' } = props;\n\n return (\n <div\n className={classNames(\n 'voice-animation biz-flex biz-justify-between biz-items-center biz-w-full biz-h-full',\n className,\n )}\n >\n {new Array(barNumber).fill(0).map((_, index) => {\n return (\n <div\n key={index}\n className={`wave-bar biz-h-full biz-rounded-full biz-w-[0.4rem] biz-bg-[#000] ${barClassName}`}\n style={{\n animationDelay: getAnimationDelay(index),\n }}\n ></div>\n );\n })}\n </div>\n );\n};\n"],"names":["jsx"],"mappings":";;;AAQA,MAAM,qBAAqB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AACtF,MAAM,iBAAiB,mBAAmB;AAC1C,MAAM,oBAAoB,CAAC,UAAkB;AAC3C,SAAO,IAAI,mBAAmB,QAAQ,cAAc,CAAC;AACvD;AAEa,MAAA,iBAAiB,CAAC,UAA+B;AAC5D,QAAM,EAAE,YAAY,IAAI,YAAY,IAAI,eAAe,OAAO;AAG5D,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEC,UAAA,IAAI,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAE5C,eAAAA,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAW,qEAAqE,YAAY;AAAA,YAC5F,OAAO;AAAA,cACL,gBAAgB,kBAAkB,KAAK;AAAA,YAAA;AAAA,UACzC;AAAA,UAJK;AAAA,QAKN;AAAA,MAEJ,CAAA;AAAA,IAAA;AAAA,EACH;AAEJ;"}