ysyt-react-agent-lib 1.0.24 → 1.0.26
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/{ConsultModel-DQsT8e4T.mjs → ConsultModel-DEu9ot4m.mjs} +6 -6
- package/dist/{ConsultModel-DHbbgL-p.js → ConsultModel-IFqXklId.js} +1 -1
- package/dist/{TransferModel-CGh6YzOr.mjs → TransferModel-C-PF3xNV.mjs} +2 -2
- package/dist/{TransferModel-BW2Jq-BG.js → TransferModel-DXQ4ze6P.js} +1 -1
- package/dist/es/YsytBarPhone/index.d.ts +18 -0
- package/dist/{index-Q5CbfoeL.mjs → index-BC2wvh95.mjs} +618 -618
- package/dist/{index-C6VPbsVB.mjs → index-DHAXDyCt.mjs} +1 -1
- package/dist/{index-DNYtQgNG.js → index-oLJyOx0A.js} +33 -33
- package/dist/{index-BmQrJjd_.js → index-t48wY4DT.js} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/ysyt-react-agent-lib.cjs.js +1 -1
- package/dist/ysyt-react-agent-lib.es.js +3 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e, M as c, E as r, S as i, Y as d } from "./index-
|
|
2
|
-
import { memo as
|
|
3
|
-
import { M as j, T as p } from "./index-
|
|
4
|
-
const E =
|
|
5
|
-
const [n, l] =
|
|
1
|
+
import { j as e, M as c, E as r, S as i, Y as d } from "./index-BC2wvh95.mjs";
|
|
2
|
+
import { memo as m, useState as g, useEffect as x } from "react";
|
|
3
|
+
import { M as j, T as p } from "./index-DHAXDyCt.mjs";
|
|
4
|
+
const E = m(({ open: a, onCallBack: t, queryFetch: o }) => {
|
|
5
|
+
const [n, l] = g([]);
|
|
6
6
|
return x(() => {
|
|
7
7
|
(async () => {
|
|
8
8
|
try {
|
|
@@ -17,7 +17,7 @@ const E = g(({ open: a, onCallBack: t, queryFetch: o }) => {
|
|
|
17
17
|
})();
|
|
18
18
|
}, [a]), /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(j, { open: a, title: "咨询", footer: !1, onCancel: () => t(), children: /* @__PURE__ */ e.jsx(c, { children: n.length === 0 ? /* @__PURE__ */ e.jsx(r, { image: r.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ e.jsx(i, { wrap: !0, children: n.map((s) => /* @__PURE__ */ e.jsx(p, { color: "processing", onClick: () => t(s.agent_no), children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
19
19
|
/* @__PURE__ */ e.jsx(d, { name: "zixun" }),
|
|
20
|
-
/* @__PURE__ */ e.jsxs("span", { style: {
|
|
20
|
+
/* @__PURE__ */ e.jsxs("span", { style: { marginLeft: 10 }, children: [
|
|
21
21
|
"咨询坐席: ",
|
|
22
22
|
s.agent_name
|
|
23
23
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-oLJyOx0A.js"),s=require("react"),i=require("./index-t48wY4DT.js"),c=s.memo(({open:n,onCallBack:r,queryFetch:x})=>{const[o,a]=s.useState([]);return s.useEffect(()=>{(async()=>{try{await x({success:t=>{a(t.data||[])}})}catch(t){console.log(t)}})()},[n]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(i.Modal,{open:n,title:"咨询",footer:!1,onCancel:()=>r(),children:e.jsxRuntimeExports.jsx(e.ModelBody,{children:o.length===0?e.jsxRuntimeExports.jsx(e.Empty,{image:e.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsxRuntimeExports.jsx(e.Space,{wrap:!0,children:o.map(t=>e.jsxRuntimeExports.jsx(i.Tag,{color:"processing",onClick:()=>r(t.agent_no),children:e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"zixun"}),e.jsxRuntimeExports.jsxs("span",{style:{marginLeft:10},children:["咨询坐席: ",t.agent_name]})]})},t.agent_no))})})})})});exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, M as m, R as h, a as j, E as c, S as f, Y as y, I as v } from "./index-
|
|
1
|
+
import { j as e, M as m, R as h, a as j, E as c, S as f, Y as y, I as v } from "./index-BC2wvh95.mjs";
|
|
2
2
|
import { memo as E, useState as a, useEffect as T } from "react";
|
|
3
|
-
import { M, T as S } from "./index-
|
|
3
|
+
import { M, T as S } from "./index-DHAXDyCt.mjs";
|
|
4
4
|
const _ = E(({ open: r, onCallBack: n, queryFetch: d }) => {
|
|
5
5
|
const [l, g] = a([]), [t, p] = a(0), [o, u] = a(""), [x, i] = a(!1);
|
|
6
6
|
return T(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-oLJyOx0A.js"),s=require("react"),l=require("./index-t48wY4DT.js"),m=s.memo(({open:o,onCallBack:n,queryFetch:u})=>{const[a,p]=s.useState([]),[r,c]=s.useState(0),[i,d]=s.useState(""),[j,x]=s.useState(!1);return s.useEffect(()=>{(async()=>{x(!0);try{await u({success:t=>{p(t.data||[])}})}catch(t){console.log(t)}x(!1)})()},[o]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(l.Modal,{open:o,title:"转接",footer:!1,onCancel:()=>n(),children:e.jsxRuntimeExports.jsxs(e.ModelBody,{children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(e.Radio.Group,{options:[{label:"转接坐席",value:0},{label:"转接外线",value:1}],value:r,onChange:t=>c(t.target.value)})}),e.jsxRuntimeExports.jsx(e.Spin,{spinning:j,children:e.jsxRuntimeExports.jsxs("div",{style:{borderTop:"1px solid #eee",marginTop:10,paddingTop:10},children:[r===0&&e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:a.length===0?e.jsxRuntimeExports.jsx(e.Empty,{image:e.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsxRuntimeExports.jsx(e.Space,{wrap:!0,children:a.map(t=>e.jsxRuntimeExports.jsx(l.Tag,{color:"processing",onClick:()=>n(t.agent_no,0),children:e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"zixun"}),e.jsxRuntimeExports.jsxs("span",{style:{marginRight:10},children:["转接坐席: ",t.agent_name]})]})},t.agent_no))})}),r===1&&e.jsxRuntimeExports.jsx(e.Input,{value:i,onChange:t=>d(t.target.value),placeholder:"请输入外线号码, 回车转接",onPressEnter:()=>{n(i,1)}})]})})]})})})});exports.default=m;
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EventName } from 'ysyt-agent-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* @param url 默认为 https://aicc.yescloudy.com
|
|
5
|
+
* @param appKey
|
|
6
|
+
* @param appSecret
|
|
7
|
+
* @param agentNo 坐席工号
|
|
8
|
+
* @param enableBrowserAlert 浏览器通知是否开启
|
|
9
|
+
* @param logBuiltinEnabled 开发日志是否开启
|
|
10
|
+
* @param style 样式
|
|
11
|
+
* 整体高度
|
|
12
|
+
* height?: string;
|
|
13
|
+
* 空闲颜色
|
|
14
|
+
* idle?: string;
|
|
15
|
+
* 忙碌颜色
|
|
16
|
+
* busy?: string;
|
|
17
|
+
* 选择外显字体颜色
|
|
18
|
+
* selectOutNumberColor?: string
|
|
19
|
+
* @param onCallBack 回调
|
|
20
|
+
*/
|
|
3
21
|
interface Props {
|
|
4
22
|
url?: string;
|
|
5
23
|
appKey: string;
|