ysyt-react-agent-lib 1.0.65 → 1.0.67

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.
@@ -1,6 +1,6 @@
1
1
  import * as r from "react";
2
2
  import $, { useContext as re, useRef as Z, useMemo as Lt, useEffect as De } from "react";
3
- import { i as Dt, K as Ne, g as se, F as kt, m as fe, u as N, r as nt, b as Pe, p as je, C as q, c as O, d as Ie, e as At, o as ge, f as Ce, h as _t, k as Vt, l as Wt, W as qt, n as Gt, B as Te, q as ot, s as Xt, _ as R, t as ke, v as Y, w as Me, x as at, y as Ae, z as Ut, A as _e, D as Ve, P as Kt, G as Qt, H as K, J as Zt, L as Yt, N as Re, O as Jt, Q as lt, T as en, U as tn, V as rt, X as nn, Z as on, $ as an, a0 as ue, a1 as ln, a2 as st, a3 as rn, a4 as sn, a5 as cn, a6 as dn, a7 as un, a8 as mn, a9 as fn, aa as gn, ab as Cn, ac as it, ad as pn, ae as vn } from "./index-Kxos83vI.mjs";
3
+ import { i as Dt, K as Ne, g as se, F as kt, m as fe, u as N, r as nt, b as Pe, p as je, C as q, c as O, d as Ie, e as At, o as ge, f as Ce, h as _t, k as Vt, l as Wt, W as qt, n as Gt, B as Te, q as ot, s as Xt, _ as R, t as ke, v as Y, w as Me, x as at, y as Ae, z as Ut, A as _e, D as Ve, P as Kt, G as Qt, H as K, J as Zt, L as Yt, N as Re, O as Jt, Q as lt, T as en, U as tn, V as rt, X as nn, Z as on, $ as an, a0 as ue, a1 as ln, a2 as st, a3 as rn, a4 as sn, a5 as cn, a6 as dn, a7 as un, a8 as mn, a9 as fn, aa as gn, ab as Cn, ac as it, ad as pn, ae as vn } from "./index-DxjcRtAH.mjs";
4
4
  const bn = new Ne("antFadeIn", {
5
5
  "0%": {
6
6
  opacity: 0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-CJ9V6HiK.js");exports.YsytGetCustomerInfo=e.getCustomerInfo;exports.YsytMakeCall=e.makeCall;exports.YsytSetAgentDevice=e.setAgentDevice;exports.YsytSetAgentInitState=e.setAgentInitState;exports.default=e.YsytBarPhone;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-DSpVH9Uo.js");exports.YsytGetCustomerInfo=e.getCustomerInfo;exports.YsytMakeCall=e.makeCall;exports.YsytSetAgentDevice=e.setAgentDevice;exports.YsytSetAgentInitState=e.setAgentInitState;exports.default=e.YsytBarPhone;
@@ -1,4 +1,4 @@
1
- import { ah as e, ag as s, aj as f, ai as n, af as o } from "./index-Kxos83vI.mjs";
1
+ import { ah as e, ag as s, aj as f, ai as n, af as o } from "./index-DxjcRtAH.mjs";
2
2
  export {
3
3
  e as YsytGetCustomerInfo,
4
4
  s as YsytMakeCall,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ysyt-react-agent-lib",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "",
5
5
  "main": "dist/ysyt-react-agent-lib.cjs.js",
6
6
  "module": "dist/ysyt-react-agent-lib.es.js",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "antd": "5.24.0",
31
31
  "styled-components": "^6.1.13",
32
- "ysyt-agent-sdk": "1.0.119"
32
+ "ysyt-agent-sdk": "1.0.121"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^18.2.0",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJ9V6HiK.js"),s=require("react"),l=require("./index-CdOZk4W8.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,62 +0,0 @@
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-Kxos83vI.mjs";
2
- import { memo as E, useState as a, useEffect as T } from "react";
3
- import { M, T as S } from "./index-BG7xvNjk.mjs";
4
- const _ = E(({ open: r, onCallBack: n, queryFetch: d }) => {
5
- const [l, g] = a([]), [t, p] = a(0), [o, u] = a(""), [x, i] = a(!1);
6
- return T(() => {
7
- (async () => {
8
- i(!0);
9
- try {
10
- await d({
11
- success: (s) => {
12
- g(s.data || []);
13
- }
14
- });
15
- } catch (s) {
16
- console.log(s);
17
- }
18
- i(!1);
19
- })();
20
- }, [r]), /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(M, { open: r, title: "转接", footer: !1, onCancel: () => n(), children: /* @__PURE__ */ e.jsxs(m, { children: [
21
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
22
- h.Group,
23
- {
24
- options: [
25
- {
26
- label: "转接坐席",
27
- value: 0
28
- },
29
- {
30
- label: "转接外线",
31
- value: 1
32
- }
33
- ],
34
- value: t,
35
- onChange: (s) => p(s.target.value)
36
- }
37
- ) }),
38
- /* @__PURE__ */ e.jsx(j, { spinning: x, children: /* @__PURE__ */ e.jsxs("div", { style: { borderTop: "1px solid #eee", marginTop: 10, paddingTop: 10 }, children: [
39
- t === 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: l.length === 0 ? /* @__PURE__ */ e.jsx(c, { image: c.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ e.jsx(f, { wrap: !0, children: l.map((s) => /* @__PURE__ */ e.jsx(S, { color: "processing", onClick: () => n(s.agent_no, 0), children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
40
- /* @__PURE__ */ e.jsx(y, { name: "zixun" }),
41
- /* @__PURE__ */ e.jsxs("span", { style: { marginRight: 10 }, children: [
42
- "转接坐席: ",
43
- s.agent_name
44
- ] })
45
- ] }) }, s.agent_no)) }) }),
46
- t === 1 && /* @__PURE__ */ e.jsx(
47
- v,
48
- {
49
- value: o,
50
- onChange: (s) => u(s.target.value),
51
- placeholder: "请输入外线号码, 回车转接",
52
- onPressEnter: () => {
53
- n(o, 1);
54
- }
55
- }
56
- )
57
- ] }) })
58
- ] }) }) });
59
- });
60
- export {
61
- _ as default
62
- };