ysyt-agent-sdk 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,3 +0,0 @@
1
- 1. 坐席换状态会有通知吗?
2
- 2. 测试环境、生产环境的websocket连接地址和前端请求地址端口不一样?
3
- 3. 坐席初始状态init_state,是后端控制还是前端?
@@ -9,8 +9,8 @@ export declare class MyPopover extends LitElement {
9
9
  static styles: import("lit").CSSResult;
10
10
  firstUpdated(): void;
11
11
  disconnectedCallback(): void;
12
- private togglePopover;
13
- private showPopover;
12
+ private onTogglePopover;
13
+ showPopover: () => void;
14
14
  private hidePopoverDelayed;
15
15
  private clearHideTimer;
16
16
  private onOutsideClick;
@@ -2,10 +2,10 @@ import { StatusType } from '@/types';
2
2
  import YSYTAgentSdk from '@/index';
3
3
  import '@/assets/css/iconfont.css';
4
4
  import '@/assets/css/index.css';
5
- import './components/timer-component.ts';
6
- import './components/my-tooltip.ts';
7
- import './components/my-popover.ts';
8
- import './components/my-input.ts';
5
+ import './components/timer-component';
6
+ import './components/my-tooltip';
7
+ import './components/my-popover';
8
+ import './components/my-input';
9
9
  import './components/my-select';
10
10
  import './components/my-phone-dialer';
11
11
  import './components/my-modal-wrapper';
@@ -40,8 +40,8 @@ export interface Events {
40
40
  }
41
41
  export declare const EventCenter: {
42
42
  on<K extends keyof Events>(event: K, handler: (data: Events[K]) => void): void;
43
- off<K_1 extends keyof Events>(event: K_1, handler: (data: Events[K_1]) => void): void;
44
- emit<K_2 extends keyof Events>(event: K_2, data?: Events[K_2]): void;
43
+ off<K extends keyof Events>(event: K, handler: (data: Events[K]) => void): void;
44
+ emit<K extends keyof Events>(event: K, data?: Events[K]): void;
45
45
  clearAllListeners(): void;
46
46
  };
47
47
  export {};
@@ -3,15 +3,16 @@
3
3
  "baseUrl": ".", // 让非相对路径起作用
4
4
  "module": "ESNext",
5
5
  "moduleResolution": "Node",
6
- "target": "ES2020",
7
- "lib": ["ES2020", "DOM"],
8
- "types": ["sip.js"],
6
+ "target": "ESNext",
7
+ "lib": ["ESNext", "DOM"],
8
+ "types": [],
9
9
  "declaration": true,
10
10
  "emitDeclarationOnly": true,
11
11
  "jsx": "preserve", // 不使用 React 时也可保留默认
12
12
  "outDir": "dist",
13
13
  "experimentalDecorators": true,
14
14
  "useDefineForClassFields": false,
15
+ "skipLibCheck": true,
15
16
  "paths": {
16
17
  "@/*": ["src/*"]
17
18
  }