ysyt-react-agent-lib 1.1.49 → 1.2.0
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-uKbk_EVn.mjs → ConsultModel-D77F0Zi3.mjs} +2 -2
- package/dist/{ConsultModel-Dk5o1Hby.js → ConsultModel-m2oVBnnz.js} +1 -1
- package/dist/{TransferModel-BCOEZmAa.js → TransferModel-B4Lp_Inx.js} +1 -1
- package/dist/{TransferModel-BOfm5rCf.mjs → TransferModel-z5HIT2_e.mjs} +2 -2
- package/dist/es/YsytBarPhone/index.d.ts +0 -5
- package/dist/index-C4jWAovq.js +688 -0
- package/dist/{index-CttvgKH4.js → index-CLzpP6Or.js} +1 -1
- package/dist/{index-Di_hgGLh.mjs → index-XbmWIlyW.mjs} +1 -1
- package/dist/index-cYrNLJTx.mjs +34467 -0
- package/dist/ysyt-react-agent-lib.cjs.js +1 -1
- package/dist/ysyt-react-agent-lib.es.js +1 -1
- package/package.json +2 -2
- package/dist/index-BiSWuclo.js +0 -1568
- package/dist/index-R1XNIXB0.mjs +0 -35914
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, M as l, E as r, S as i, Y as d } from "./index-
|
|
1
|
+
import { j as e, M as l, E as r, S as i, Y as d } from "./index-cYrNLJTx.mjs";
|
|
2
2
|
import { memo as m, useState as g, useEffect as x } from "react";
|
|
3
|
-
import { M as p, T as j } from "./index-
|
|
3
|
+
import { M as p, T as j } from "./index-XbmWIlyW.mjs";
|
|
4
4
|
const E = m(({ open: t, onCallBack: a, queryFetch: o }) => {
|
|
5
5
|
const [n, c] = g([]);
|
|
6
6
|
return x(() => {
|
|
@@ -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-C4jWAovq.js"),s=require("react"),i=require("./index-CLzpP6Or.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,description:"暂无咨询坐席"}):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 +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-C4jWAovq.js"),t=require("react"),l=require("./index-CLzpP6Or.js"),m=t.memo(({open:o,onCallBack:n,queryFetch:u})=>{const[x,p]=t.useState([]),[r,c]=t.useState(0),[i,d]=t.useState(""),[j,a]=t.useState(!1);return t.useEffect(()=>{(async()=>{a(!0);try{await u({success:s=>{p(s.data||[])}})}catch(s){console.log(s)}a(!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:s=>c(s.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:x.length===0?e.jsxRuntimeExports.jsx(e.Empty,{image:e.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无转接坐席"}):e.jsxRuntimeExports.jsx(e.Space,{wrap:!0,children:x.map(s=>e.jsxRuntimeExports.jsx(l.Tag,{color:"processing",onClick:()=>n(s.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:["转接坐席: ",s.agent_name]})]})},s.agent_no))})}),r===1&&e.jsxRuntimeExports.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",gap:"0 5px"},children:[e.jsxRuntimeExports.jsx(e.Input,{style:{flex:1},value:i,onChange:s=>d(s.target.value),placeholder:"请输入外线号码, 回车转接",onPressEnter:()=>{n(i,1)}}),e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"boda",color:"#1D92E9",size:25,onClick:()=>{n(i,1)}})]})]})})]})})})});exports.default=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, M as h, R as j, a as f, E as d, S as y, Y as c, I as v } from "./index-
|
|
1
|
+
import { j as e, M as h, R as j, a as f, E as d, S as y, Y as c, I as v } from "./index-cYrNLJTx.mjs";
|
|
2
2
|
import { memo as E, useState as n, useEffect as T } from "react";
|
|
3
|
-
import { M as I, T as M } from "./index-
|
|
3
|
+
import { M as I, T as M } from "./index-XbmWIlyW.mjs";
|
|
4
4
|
const _ = E(({ open: l, onCallBack: a, queryFetch: p }) => {
|
|
5
5
|
const [o, g] = n([]), [t, x] = n(0), [r, m] = n(""), [u, i] = n(!1);
|
|
6
6
|
return T(() => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AgentStatus } from 'ysyt-agent-sdk';
|
|
3
2
|
import { OnCallBackType } from '../../types';
|
|
4
3
|
/**
|
|
5
4
|
* @param url 默认为 https://aicc.yescloudy.com
|
|
@@ -10,8 +9,6 @@ import { OnCallBackType } from '../../types';
|
|
|
10
9
|
* @param browserAlertTime 浏览器通知消失时间 秒
|
|
11
10
|
* @param logBuiltinEnabled 开发日志是否开启
|
|
12
11
|
* @param ringingCardShow 振铃卡片是否开启 默认开启
|
|
13
|
-
* @param initialState 初始化状态 可选 不传入用呼叫设置
|
|
14
|
-
* @param initDevice 初始化设备 可选 不传入用呼叫设置
|
|
15
12
|
* @param isCheckLogin 是否检测是否登录
|
|
16
13
|
* @param style 样式
|
|
17
14
|
* 整体高度
|
|
@@ -33,8 +30,6 @@ interface Props {
|
|
|
33
30
|
browserAlertTime?: number;
|
|
34
31
|
logBuiltinEnabled?: boolean;
|
|
35
32
|
ringingCardShow?: boolean;
|
|
36
|
-
initialState?: AgentStatus.IDLE | AgentStatus.BUSY;
|
|
37
|
-
initDevice?: 1 | 3;
|
|
38
33
|
onLoginCancel?: () => void;
|
|
39
34
|
isCheckLogin?: boolean;
|
|
40
35
|
style?: {
|