ysyt-agent-sdk 1.1.49 → 2.0.1
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/src/index.d.ts +1 -2
- package/dist/src/types/index.d.ts +0 -4
- package/dist/ysyt-agent-sdk.cjs.js +13 -899
- package/dist/ysyt-agent-sdk.esm.js +13 -899
- package/dist/ysyt-agent-sdk.umd.js +13 -899
- package/package.json +1 -1
- package/dist/assets/audio/incall-09cd00e349f85e44.mp3 +0 -0
- package/dist/assets/audio/wait-32b809c14e357d49.mp3 +0 -0
- package/dist/css/ysyt-agent-sdk.css +0 -1
- package/dist/fonts/iconfont.ttf +0 -0
- package/dist/fonts/iconfont.woff +0 -0
- package/dist/fonts/iconfont.woff2 +0 -0
- package/dist/src/core/components/my-icon-popup.d.ts +0 -10
- package/dist/src/core/components/my-input.d.ts +0 -15
- package/dist/src/core/components/my-message.d.ts +0 -16
- package/dist/src/core/components/my-modal-wrapper.d.ts +0 -12
- package/dist/src/core/components/my-phone-dialer.d.ts +0 -15
- package/dist/src/core/components/my-popover.d.ts +0 -19
- package/dist/src/core/components/my-select.d.ts +0 -22
- package/dist/src/core/components/my-tooltip.d.ts +0 -15
- package/dist/src/core/components/select-option.d.ts +0 -6
- package/dist/src/core/components/timer-component.d.ts +0 -14
- package/dist/src/core/phone-view.d.ts +0 -74
- package/dist/src/core/ws-client.d.ts +0 -10
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:ysyt;src:url(../fonts/iconfont.woff2?t=1750839875482) format("woff2"),url(../fonts/iconfont.woff?t=1750839875482) format("woff"),url(../fonts/iconfont.ttf?t=1750839875482) format("truetype")}.ysyt{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:ysyt,serif!important;font-size:18px;font-style:normal}.icon-fanhui:before{content:"\e63b"}.icon-huiyi:before{content:"\e6eb"}.icon-ic_liebiao_bohaopan:before{content:"\e602"}.icon-shouji:before{content:"\e692"}.icon-20gl-phoneSip:before{content:"\e924"}.icon-dianhua:before{content:"\e842"}.icon-quxiao:before{content:"\e676"}.icon-jieting:before{content:"\e60a"}.icon-boda:before{content:"\e679"}.icon-kaishi:before{content:"\e800"}.icon-guaji:before{content:"\e732"}.icon-manyidu:before{content:"\e600"}.icon-zixun:before{content:"\e71f"}.icon-zanting:before{content:"\ea81"}.icon-zhuanjie1:before{content:"\e601"}.icon-microphone:before{content:"\e661"}.icon-guanbimaikefeng:before{content:"\e603"}.icon-manglu:before{content:"\e65d"}.icon-shang:before{content:"\e60f"}.icon-xia:before{content:"\e64c"}.icon-kongxian:before{content:"\ed94"}#ysyt-body{position:relative}#ysyt-body,.ysyt-phone-body{align-items:center;display:flex;height:30px}.ysyt-phone-body{border-radius:30px 10px 0 30px;padding:0 10px;user-select:none}.ysyt-phone-body .ysyt-title{color:#fff;cursor:pointer;font-size:14px;padding-right:10px;position:relative;width:100px}.ysyt-phone-body .select-icon{color:#fff;display:none;font-size:10px;left:calc(50% - 4px);position:absolute;top:100%;z-index:9999999}.ysyt-select{background:#fff;border-radius:4px;box-shadow:0 4px 8px rgba(0,0,0,.1);height:0;overflow:hidden;position:absolute;top:calc(100% + 8px);transition:height .1s ease-in;width:100%;z-index:9999999}.ysyt-select-body{position:relative}.ysyt-select-body>div{color:rgba(0,0,0,.6);padding:5px 4px;text-align:center}.ysyt-select-body>div:hover{background:#ecf5ff;color:#2b96ea}.ysyt-action-body{align-items:center;color:#3356ec;display:flex;font-size:25px;gap:0 10px;height:30px;padding:0 10px}.ysyt-action-body>*{cursor:pointer}.content-call-key{color:rgba(0,0,0,.6);font-size:16px;padding:10px 5px;width:250px}.content-call-key>my-input::part(wrapper){--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);border:none;border-radius:30px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:25px;width:100%}.content-call-key>my-input::part(wrapper-input){text-align:center}#wifi-body>img{width:18px}.network-body{color:rgba(0,0,0,.7);font-size:12px;padding:5px 10px}.network-body>div{align-items:center;display:flex;margin-bottom:5px}.network-body>div>div{color:#000;width:50px}.my-icon{font-size:22px}.agent-list-item{align-items:center;display:flex;justify-content:space-between;padding:10px}#ysyt-devices-body{align-items:center;display:flex;justify-content:center;margin-right:15px;position:relative;width:130px}.ysyt-customer-card{background:#fff;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.1);color:#797979;font-size:14px;left:140px;padding:10px;position:absolute;top:32px;width:250px;z-index:9999}.out-display-body{align-items:center;display:flex;margin-left:10px}.ysyt-out-display-content{width:250px}.ysyt-out-display-input{border-bottom:1px solid rgba(0,0,0,.2);padding:5px}.ysyt-out-display-number{padding:5px}.number-item{border-radius:2px;color:#555;cursor:pointer;font-size:14px;margin-bottom:2px;padding:2px}.number-item-select,.number-item:hover{background:#eee}
|
package/dist/fonts/iconfont.ttf
DELETED
|
Binary file
|
package/dist/fonts/iconfont.woff
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
export declare class MyIconPopup extends LitElement {
|
|
3
|
-
private open;
|
|
4
|
-
static styles: import("lit").CSSResult;
|
|
5
|
-
connectedCallback(): void;
|
|
6
|
-
disconnectedCallback(): void;
|
|
7
|
-
private onDocumentClick;
|
|
8
|
-
private togglePopup;
|
|
9
|
-
render(): TemplateResult;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyInput extends LitElement {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
allowClear: boolean;
|
|
6
|
-
value: string;
|
|
7
|
-
onPressEnter?: (value: string) => void;
|
|
8
|
-
private focused;
|
|
9
|
-
static styles: import("lit").CSSResult;
|
|
10
|
-
private onInput;
|
|
11
|
-
clear(): void;
|
|
12
|
-
private clearInput;
|
|
13
|
-
private onKeyDown;
|
|
14
|
-
render(): import("lit").TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyMessage extends LitElement {
|
|
3
|
-
type: 'success' | 'error' | 'info' | 'warning' | 'loading';
|
|
4
|
-
content: string;
|
|
5
|
-
duration: number;
|
|
6
|
-
static styles: import("lit").CSSResult;
|
|
7
|
-
connectedCallback(): void;
|
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
|
9
|
-
}
|
|
10
|
-
export declare const message: {
|
|
11
|
-
success: (content: string, duration?: number) => void;
|
|
12
|
-
error: (content: string, duration?: number) => void;
|
|
13
|
-
info: (content: string, duration?: number) => void;
|
|
14
|
-
warning: (content: string, duration?: number) => void;
|
|
15
|
-
loading: (content: string, duration?: number) => void;
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyModalWrapper extends LitElement {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
showFooter: boolean;
|
|
5
|
-
width: string;
|
|
6
|
-
title: string;
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
|
9
|
-
private _onCancel;
|
|
10
|
-
private _onOk;
|
|
11
|
-
private _onMaskClick;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyPhoneDialer extends LitElement {
|
|
3
|
-
private isDialerVisible;
|
|
4
|
-
private inputValue;
|
|
5
|
-
static styles: import("lit").CSSResult;
|
|
6
|
-
private keys;
|
|
7
|
-
protected updated(changedProps: Map<string | number | symbol, unknown>): void;
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
private handleDocumentClick;
|
|
11
|
-
private handleKeyClick;
|
|
12
|
-
private handleBackspace;
|
|
13
|
-
private handleValueSize;
|
|
14
|
-
render(): import("lit").TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyPopover extends LitElement {
|
|
3
|
-
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
-
triggerType: 'click' | 'hover';
|
|
5
|
-
visible: boolean;
|
|
6
|
-
private triggerEl;
|
|
7
|
-
private popoverEl;
|
|
8
|
-
private hideTimer;
|
|
9
|
-
static styles: import("lit").CSSResult;
|
|
10
|
-
firstUpdated(): void;
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
-
private onTogglePopover;
|
|
13
|
-
showPopover: () => void;
|
|
14
|
-
private hidePopoverDelayed;
|
|
15
|
-
private clearHideTimer;
|
|
16
|
-
private onOutsideClick;
|
|
17
|
-
private updatePosition;
|
|
18
|
-
render(): import("lit").TemplateResult<1>;
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
export declare class MySelect extends LitElement {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
value: string | null;
|
|
5
|
-
width: string | null;
|
|
6
|
-
private open;
|
|
7
|
-
private animating;
|
|
8
|
-
private selectedContent;
|
|
9
|
-
static styles: import("lit").CSSResult;
|
|
10
|
-
connectedCallback(): void;
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
-
private handleOutsideClick;
|
|
13
|
-
private toggleDropdown;
|
|
14
|
-
private openDropdown;
|
|
15
|
-
private closeDropdown;
|
|
16
|
-
private handleOptionClick;
|
|
17
|
-
updated(changedProps: Map<string, unknown>): void;
|
|
18
|
-
private updateSelectedContent;
|
|
19
|
-
private renderSelectedLabel;
|
|
20
|
-
private renderSelectOptions;
|
|
21
|
-
render(): TemplateResult<1>;
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class MyTooltip extends LitElement {
|
|
3
|
-
content: string;
|
|
4
|
-
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
-
delay: number;
|
|
6
|
-
color: string;
|
|
7
|
-
visible: boolean;
|
|
8
|
-
slotElement: HTMLSlotElement;
|
|
9
|
-
static styles: import("lit").CSSResult;
|
|
10
|
-
timeoutId?: number;
|
|
11
|
-
firstUpdated(): void;
|
|
12
|
-
showTooltip: () => void;
|
|
13
|
-
hideTooltip: () => void;
|
|
14
|
-
render(): import("lit").TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class TimerComponent extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
private intervalId;
|
|
5
|
-
private elapsedSeconds;
|
|
6
|
-
private displayTime;
|
|
7
|
-
constructor();
|
|
8
|
-
private formatTime;
|
|
9
|
-
private updateTime;
|
|
10
|
-
start(): void;
|
|
11
|
-
stop(): void;
|
|
12
|
-
reset(): void;
|
|
13
|
-
render(): import("lit").TemplateResult<1>;
|
|
14
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { CallCrmObject, StatusType } from '@/types';
|
|
2
|
-
import YSYTAgentSdk from '@/index';
|
|
3
|
-
import '@/assets/css/iconfont.css';
|
|
4
|
-
import '@/assets/css/index.css';
|
|
5
|
-
import './components/timer-component';
|
|
6
|
-
import './components/my-tooltip';
|
|
7
|
-
import './components/my-popover';
|
|
8
|
-
import './components/my-input';
|
|
9
|
-
import './components/my-select';
|
|
10
|
-
import './components/my-phone-dialer';
|
|
11
|
-
import './components/my-modal-wrapper';
|
|
12
|
-
import './components/my-icon-popup';
|
|
13
|
-
import CallApi from '@/core/call-api';
|
|
14
|
-
interface Props {
|
|
15
|
-
container: HTMLElement;
|
|
16
|
-
rttHTML?: HTMLElement;
|
|
17
|
-
statusParams: StatusType;
|
|
18
|
-
}
|
|
19
|
-
export declare class PhoneView {
|
|
20
|
-
private VoiceSDKInstance;
|
|
21
|
-
private callApi;
|
|
22
|
-
private readonly container;
|
|
23
|
-
private readonly rttHTML?;
|
|
24
|
-
private apiClient;
|
|
25
|
-
private isOpenSelect;
|
|
26
|
-
private statusParams;
|
|
27
|
-
private consultShow;
|
|
28
|
-
private modalRoot;
|
|
29
|
-
private agentStateData;
|
|
30
|
-
private default_device;
|
|
31
|
-
private readonly inCallAudio;
|
|
32
|
-
private readonly waitAudio;
|
|
33
|
-
customerInfo: CallCrmObject;
|
|
34
|
-
transferType: string;
|
|
35
|
-
selectNumber: string;
|
|
36
|
-
isLoad: boolean;
|
|
37
|
-
constructor({ container, rttHTML, statusParams }: Props, VoiceSDKInstance: YSYTAgentSdk, callApi: CallApi);
|
|
38
|
-
private play;
|
|
39
|
-
private playFromStart;
|
|
40
|
-
private pause;
|
|
41
|
-
private eventHandle;
|
|
42
|
-
private handleNetworkInfoChange;
|
|
43
|
-
private handleCallInfoChange;
|
|
44
|
-
private setOutNumber;
|
|
45
|
-
private getAgentStateList;
|
|
46
|
-
private hiddenSelect;
|
|
47
|
-
private toggle;
|
|
48
|
-
private changeStatus;
|
|
49
|
-
private onChangeDevices;
|
|
50
|
-
private ruleCall;
|
|
51
|
-
private onCall;
|
|
52
|
-
private onKeyPress;
|
|
53
|
-
private renderCallPopover;
|
|
54
|
-
private renderHangup;
|
|
55
|
-
private renderDialer;
|
|
56
|
-
private renderHold;
|
|
57
|
-
private renderUnhold;
|
|
58
|
-
private renderMute;
|
|
59
|
-
private renderUnmute;
|
|
60
|
-
private renderSatisfaction;
|
|
61
|
-
private renderConsult;
|
|
62
|
-
private renderTransfer;
|
|
63
|
-
private renderConsultTransfer;
|
|
64
|
-
private renderConsultRetrieve;
|
|
65
|
-
private renderConference;
|
|
66
|
-
private renderAnswer;
|
|
67
|
-
private renderReject;
|
|
68
|
-
private renderConsultModalToBody;
|
|
69
|
-
private renderTransferModalToBody;
|
|
70
|
-
private getActionConfigs;
|
|
71
|
-
private render;
|
|
72
|
-
private renderRtt;
|
|
73
|
-
}
|
|
74
|
-
export {};
|