ysyt-react-agent-lib 1.0.80 → 1.0.82

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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-AMGTkDhM.js");exports.YsytAgentLogout=e.agentLogout;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-Bk_LHHhl.js");exports.YsytAgentLogout=e.agentLogout;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 { ak as e, ah as s, ag as o, aj as g, ai as n, af as y } from "./index-Dayo_XlE.mjs";
1
+ import { ak as e, ah as s, ag as o, aj as g, ai as n, af as y } from "./index-EfFgGokt.mjs";
2
2
  export {
3
3
  e as YsytAgentLogout,
4
4
  s as YsytGetCustomerInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ysyt-react-agent-lib",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
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.134"
32
+ "ysyt-agent-sdk": "1.0.137"
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-AMGTkDhM.js"),s=require("react"),i=require("./index-CIVwqDr5.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,28 +0,0 @@
1
- import { j as e, M as c, E as r, S as i, Y as d } from "./index-Dayo_XlE.mjs";
2
- import { memo as m, useState as g, useEffect as x } from "react";
3
- import { M as j, T as p } from "./index-DrMK8ms6.mjs";
4
- const E = m(({ open: a, onCallBack: t, queryFetch: o }) => {
5
- const [n, l] = g([]);
6
- return x(() => {
7
- (async () => {
8
- try {
9
- await o({
10
- success: (s) => {
11
- l(s.data || []);
12
- }
13
- });
14
- } catch (s) {
15
- console.log(s);
16
- }
17
- })();
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
- /* @__PURE__ */ e.jsx(d, { name: "zixun" }),
20
- /* @__PURE__ */ e.jsxs("span", { style: { marginLeft: 10 }, children: [
21
- "咨询坐席: ",
22
- s.agent_name
23
- ] })
24
- ] }) }, s.agent_no)) }) }) }) });
25
- });
26
- export {
27
- E as default
28
- };