@easyv/biz-components 1.0.12 → 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.
- package/dist/_virtual/index.es4.js +2 -2
- package/dist/_virtual/index.es5.js +2 -2
- package/dist/components/ai-message-render/types.d.ts +1 -1
- package/dist/components/voice-animation/test/voice-animation.cy.d.ts +1 -0
- package/dist/components/voice-animation/voice-animation.es.js +21 -12
- package/dist/components/voice-animation/voice-animation.es.js.map +1 -1
- package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +1 -1
- package/dist/stats.html +1 -1
- package/dist/style.pkg.css +1 -1
- package/dist/tailwindcss.pkg.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -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(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
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;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "../../../../../_virtual/_commonjsHelpers.es.js";
|
|
2
|
-
import { __module as coWebWorker } from "../../../../../_virtual/index.
|
|
2
|
+
import { __module as coWebWorker } from "../../../../../_virtual/index.es4.js";
|
|
3
3
|
class CrossOriginWorker extends Worker {
|
|
4
4
|
constructor(scriptUrl) {
|
|
5
5
|
const b = new Blob([`importScripts('${new URL(scriptUrl).toString()}')`], { type: "application/javascript" });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../../_virtual/index.
|
|
1
|
+
import { __module as reactIs } from "../../../../../_virtual/index.es5.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.es.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.es.js";
|
|
4
4
|
var hasRequiredReactIs;
|