@94ai/nf-softphone 8.3.23 → 9.0.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/lib/index.d.ts +779 -779
- package/lib/nf-softphone.cjs.js +23 -11
- package/lib/nf-softphone.esm-bundler.js +25 -13
- package/lib/nf-softphone.vue.d.ts +193 -193
- package/lib/softphone-pure.d.ts +94 -94
- package/lib/softphone.d.ts +49 -49
- package/lib/style/css.d.ts +0 -1
- package/lib/style/index.d.ts +0 -1
- package/lib/type.d.ts +46 -46
- package/package/nf-softphone.vue +11 -2
- package/package/softphone.ts +3 -2
- package/package.json +5 -4
package/lib/softphone-pure.d.ts
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
declare type Option = {
|
|
2
|
-
origin: string;
|
|
3
|
-
ancestorOrigin: string;
|
|
4
|
-
destinationOrigin: string;
|
|
5
|
-
scrollingText: string;
|
|
6
|
-
scrollview: string;
|
|
7
|
-
envMap: Record<Env, string>;
|
|
8
|
-
env: string;
|
|
9
|
-
selector: string;
|
|
10
|
-
el: string;
|
|
11
|
-
agentTag: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
appKey: string;
|
|
14
|
-
appSecret: string;
|
|
15
|
-
timestamp: string | number;
|
|
16
|
-
sign: string;
|
|
17
|
-
sgGateway: string;
|
|
18
|
-
sgBase: string;
|
|
19
|
-
sgOpen: string;
|
|
20
|
-
sgDomain: string;
|
|
21
|
-
extStatus: '0' | '1';
|
|
22
|
-
instanceMap: Record<string, any>;
|
|
23
|
-
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
-
callShow: '0' | '1';
|
|
25
|
-
transferToLaborShow: '0' | '1';
|
|
26
|
-
restShow: '0' | '1';
|
|
27
|
-
networkDetectShow: '0' | '1';
|
|
28
|
-
muteShow: '0' | '1';
|
|
29
|
-
logShow: '0' | '1';
|
|
30
|
-
timingShow: '0' | '1';
|
|
31
|
-
signShow: '0' | '1';
|
|
32
|
-
softphoneConnectCallBack: Function;
|
|
33
|
-
softphoneCallRefreshCallBack: Function;
|
|
34
|
-
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
-
softphoneAcceptCallBack: Function;
|
|
36
|
-
softphoneIgnoreCallBack: Function;
|
|
37
|
-
softphoneHangupCallBack: Function;
|
|
38
|
-
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
-
softphoneIncomingCallBack: Function;
|
|
40
|
-
softphoneSendDtmfCallBack: Function;
|
|
41
|
-
softphoneAutoIgnoreCallback: Function;
|
|
42
|
-
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
-
softphoneSignOverduedCallBack: Function;
|
|
44
|
-
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
-
};
|
|
46
|
-
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
47
|
-
export declare class SoftphoneManager {
|
|
48
|
-
id: any;
|
|
49
|
-
timer: any;
|
|
50
|
-
constructor();
|
|
51
|
-
option: Partial<Option>;
|
|
52
|
-
loadCssCode: (code: any) => void;
|
|
53
|
-
removeCssCode: () => void;
|
|
54
|
-
getContextDomElement: (el: string) => Element | null;
|
|
55
|
-
getSoftphoneDomElement: (el: string) => Element | null;
|
|
56
|
-
signOverdued: (data: {
|
|
57
|
-
sign: string;
|
|
58
|
-
timestamp: string | number;
|
|
59
|
-
}) => void;
|
|
60
|
-
handlingCommunication: (e: {
|
|
1
|
+
declare type Option = {
|
|
2
|
+
origin: string;
|
|
3
|
+
ancestorOrigin: string;
|
|
4
|
+
destinationOrigin: string;
|
|
5
|
+
scrollingText: string;
|
|
6
|
+
scrollview: string;
|
|
7
|
+
envMap: Record<Env, string>;
|
|
8
|
+
env: string;
|
|
9
|
+
selector: string;
|
|
10
|
+
el: string;
|
|
11
|
+
agentTag: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
appKey: string;
|
|
14
|
+
appSecret: string;
|
|
15
|
+
timestamp: string | number;
|
|
16
|
+
sign: string;
|
|
17
|
+
sgGateway: string;
|
|
18
|
+
sgBase: string;
|
|
19
|
+
sgOpen: string;
|
|
20
|
+
sgDomain: string;
|
|
21
|
+
extStatus: '0' | '1';
|
|
22
|
+
instanceMap: Record<string, any>;
|
|
23
|
+
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
+
callShow: '0' | '1';
|
|
25
|
+
transferToLaborShow: '0' | '1';
|
|
26
|
+
restShow: '0' | '1';
|
|
27
|
+
networkDetectShow: '0' | '1';
|
|
28
|
+
muteShow: '0' | '1';
|
|
29
|
+
logShow: '0' | '1';
|
|
30
|
+
timingShow: '0' | '1';
|
|
31
|
+
signShow: '0' | '1';
|
|
32
|
+
softphoneConnectCallBack: Function;
|
|
33
|
+
softphoneCallRefreshCallBack: Function;
|
|
34
|
+
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
+
softphoneAcceptCallBack: Function;
|
|
36
|
+
softphoneIgnoreCallBack: Function;
|
|
37
|
+
softphoneHangupCallBack: Function;
|
|
38
|
+
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
+
softphoneIncomingCallBack: Function;
|
|
40
|
+
softphoneSendDtmfCallBack: Function;
|
|
41
|
+
softphoneAutoIgnoreCallback: Function;
|
|
42
|
+
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
+
softphoneSignOverduedCallBack: Function;
|
|
44
|
+
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
+
};
|
|
46
|
+
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
47
|
+
export declare class SoftphoneManager {
|
|
48
|
+
id: any;
|
|
49
|
+
timer: any;
|
|
50
|
+
constructor();
|
|
51
|
+
option: Partial<Option>;
|
|
52
|
+
loadCssCode: (code: any) => void;
|
|
53
|
+
removeCssCode: () => void;
|
|
54
|
+
getContextDomElement: (el: string) => Element | null;
|
|
55
|
+
getSoftphoneDomElement: (el: string) => Element | null;
|
|
56
|
+
signOverdued: (data: {
|
|
57
|
+
sign: string;
|
|
58
|
+
timestamp: string | number;
|
|
59
|
+
}) => void;
|
|
60
|
+
handlingCommunication: (e: {
|
|
61
61
|
data: `{
|
|
62
62
|
type: string,
|
|
63
63
|
ancestorOrigin: string,
|
|
64
64
|
origin: string,
|
|
65
65
|
data: 'expand' | 'shrink'
|
|
66
|
-
}` | string;
|
|
67
|
-
}) => void;
|
|
68
|
-
handlingScroll: (...args: any[]) => any;
|
|
69
|
-
handlerInteractive: () => void;
|
|
70
|
-
handlerDomRemove: () => void;
|
|
71
|
-
_containerScrolling: any;
|
|
72
|
-
get containerScrolling(): boolean;
|
|
73
|
-
set containerScrolling(value: boolean);
|
|
74
|
-
handlingScrollTransparent: () => void;
|
|
75
|
-
refreshStyle: () => Promise<{
|
|
76
|
-
top: number;
|
|
77
|
-
left: number;
|
|
78
|
-
leftMargin: string;
|
|
79
|
-
} | {
|
|
80
|
-
leftMargin: number;
|
|
81
|
-
top: number;
|
|
82
|
-
left: number;
|
|
83
|
-
}>;
|
|
84
|
-
handlerDomGenerater: () => Promise<void>;
|
|
85
|
-
initSoftphone: (option: any) => this;
|
|
86
|
-
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
87
|
-
connect: () => void;
|
|
88
|
-
disconnect: () => void;
|
|
89
|
-
seatsStatusChange: (status: boolean) => void;
|
|
90
|
-
accept: () => void;
|
|
91
|
-
ignore: () => void;
|
|
92
|
-
hangup: () => void;
|
|
93
|
-
sendDtmf: () => void;
|
|
94
|
-
requestOpenApi: (param: any) => Promise<unknown>;
|
|
95
|
-
removeTimer: () => void;
|
|
96
|
-
destroy: () => void;
|
|
97
|
-
}
|
|
98
|
-
declare const softphoneManager: SoftphoneManager;
|
|
99
|
-
export default softphoneManager;
|
|
66
|
+
}` | string;
|
|
67
|
+
}) => void;
|
|
68
|
+
handlingScroll: (...args: any[]) => any;
|
|
69
|
+
handlerInteractive: () => void;
|
|
70
|
+
handlerDomRemove: () => void;
|
|
71
|
+
_containerScrolling: any;
|
|
72
|
+
get containerScrolling(): boolean;
|
|
73
|
+
set containerScrolling(value: boolean);
|
|
74
|
+
handlingScrollTransparent: () => void;
|
|
75
|
+
refreshStyle: () => Promise<{
|
|
76
|
+
top: number;
|
|
77
|
+
left: number;
|
|
78
|
+
leftMargin: string;
|
|
79
|
+
} | {
|
|
80
|
+
leftMargin: number;
|
|
81
|
+
top: number;
|
|
82
|
+
left: number;
|
|
83
|
+
}>;
|
|
84
|
+
handlerDomGenerater: () => Promise<void>;
|
|
85
|
+
initSoftphone: (option: any) => this;
|
|
86
|
+
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
87
|
+
connect: () => void;
|
|
88
|
+
disconnect: () => void;
|
|
89
|
+
seatsStatusChange: (status: boolean) => void;
|
|
90
|
+
accept: () => void;
|
|
91
|
+
ignore: () => void;
|
|
92
|
+
hangup: () => void;
|
|
93
|
+
sendDtmf: () => void;
|
|
94
|
+
requestOpenApi: (param: any) => Promise<unknown>;
|
|
95
|
+
removeTimer: () => void;
|
|
96
|
+
destroy: () => void;
|
|
97
|
+
}
|
|
98
|
+
declare const softphoneManager: SoftphoneManager;
|
|
99
|
+
export default softphoneManager;
|
package/lib/softphone.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Option } from '../..nf-softphone/lib/type';
|
|
2
|
-
export declare class SoftphoneManager {
|
|
3
|
-
id: any;
|
|
4
|
-
timer: any;
|
|
5
|
-
constructor();
|
|
6
|
-
option: Partial<Option>;
|
|
7
|
-
loadCssCode: (code: any) => void;
|
|
8
|
-
removeCssCode: () => void;
|
|
9
|
-
getContextDomElement: (el: string) => Element | null;
|
|
10
|
-
getSoftphoneDomElement: (el: string) => Element | null;
|
|
11
|
-
signOverdued: (data: {
|
|
12
|
-
sign: string;
|
|
13
|
-
timestamp: string | number;
|
|
14
|
-
}) => void;
|
|
15
|
-
handlingCommunication: (e: {
|
|
1
|
+
import { Option } from '../..nf-softphone/lib/type';
|
|
2
|
+
export declare class SoftphoneManager {
|
|
3
|
+
id: any;
|
|
4
|
+
timer: any;
|
|
5
|
+
constructor();
|
|
6
|
+
option: Partial<Option>;
|
|
7
|
+
loadCssCode: (code: any) => void;
|
|
8
|
+
removeCssCode: () => void;
|
|
9
|
+
getContextDomElement: (el: string) => Element | null;
|
|
10
|
+
getSoftphoneDomElement: (el: string) => Element | null;
|
|
11
|
+
signOverdued: (data: {
|
|
12
|
+
sign: string;
|
|
13
|
+
timestamp: string | number;
|
|
14
|
+
}) => void;
|
|
15
|
+
handlingCommunication: (e: {
|
|
16
16
|
data: `{
|
|
17
17
|
type: string,
|
|
18
18
|
ancestorOrigin: string,
|
|
19
19
|
origin: string,
|
|
20
20
|
data: 'expand' | 'shrink'
|
|
21
|
-
}` | string;
|
|
22
|
-
}) => void;
|
|
23
|
-
handlingScroll: (...args: any[]) => any;
|
|
24
|
-
handlerInteractive: () => void;
|
|
25
|
-
handlerDomRemove: () => void;
|
|
26
|
-
_containerScrolling: any;
|
|
27
|
-
get containerScrolling(): boolean;
|
|
28
|
-
set containerScrolling(value: boolean);
|
|
29
|
-
handlingScrollTransparent: () => void;
|
|
30
|
-
refreshStyle: () => Promise<{
|
|
31
|
-
top: number;
|
|
32
|
-
left: number;
|
|
33
|
-
leftMargin: string;
|
|
34
|
-
} | {
|
|
35
|
-
leftMargin: number;
|
|
36
|
-
top: number;
|
|
37
|
-
left: number;
|
|
38
|
-
}>;
|
|
39
|
-
handlerDomGenerater: () => Promise<void>;
|
|
40
|
-
initSoftphone: (option: any) => this;
|
|
41
|
-
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
42
|
-
connect: () => void;
|
|
43
|
-
disconnect: () => void;
|
|
44
|
-
seatsStatusChange: (status: boolean) => void;
|
|
45
|
-
accept: () => void;
|
|
46
|
-
ignore: () => void;
|
|
47
|
-
hangup: () => void;
|
|
48
|
-
sendDtmf: () => void;
|
|
49
|
-
requestOpenApi: (param: any) => Promise<unknown>;
|
|
50
|
-
removeTimer: () => void;
|
|
51
|
-
destroy: () => void;
|
|
52
|
-
}
|
|
53
|
-
declare const softphoneManager: SoftphoneManager;
|
|
54
|
-
export default softphoneManager;
|
|
21
|
+
}` | string;
|
|
22
|
+
}) => void;
|
|
23
|
+
handlingScroll: (...args: any[]) => any;
|
|
24
|
+
handlerInteractive: () => void;
|
|
25
|
+
handlerDomRemove: () => void;
|
|
26
|
+
_containerScrolling: any;
|
|
27
|
+
get containerScrolling(): boolean;
|
|
28
|
+
set containerScrolling(value: boolean);
|
|
29
|
+
handlingScrollTransparent: () => void;
|
|
30
|
+
refreshStyle: () => Promise<{
|
|
31
|
+
top: number;
|
|
32
|
+
left: number;
|
|
33
|
+
leftMargin: string;
|
|
34
|
+
} | {
|
|
35
|
+
leftMargin: number;
|
|
36
|
+
top: number;
|
|
37
|
+
left: number;
|
|
38
|
+
}>;
|
|
39
|
+
handlerDomGenerater: () => Promise<void>;
|
|
40
|
+
initSoftphone: (option: any) => this;
|
|
41
|
+
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
42
|
+
connect: () => void;
|
|
43
|
+
disconnect: () => void;
|
|
44
|
+
seatsStatusChange: (status: boolean) => void;
|
|
45
|
+
accept: () => void;
|
|
46
|
+
ignore: () => void;
|
|
47
|
+
hangup: () => void;
|
|
48
|
+
sendDtmf: () => void;
|
|
49
|
+
requestOpenApi: (param: any) => Promise<unknown>;
|
|
50
|
+
removeTimer: () => void;
|
|
51
|
+
destroy: () => void;
|
|
52
|
+
}
|
|
53
|
+
declare const softphoneManager: SoftphoneManager;
|
|
54
|
+
export default softphoneManager;
|
package/lib/style/css.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/style/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/type.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export declare type Option = {
|
|
2
|
-
origin: string;
|
|
3
|
-
ancestorOrigin: string;
|
|
4
|
-
destinationOrigin: string;
|
|
5
|
-
scrollingText: string;
|
|
6
|
-
scrollview: string;
|
|
7
|
-
envMap: Record<Env, string>;
|
|
8
|
-
env: string;
|
|
9
|
-
selector: string;
|
|
10
|
-
el: string;
|
|
11
|
-
agentTag: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
appKey: string;
|
|
14
|
-
appSecret: string;
|
|
15
|
-
timestamp: string | number;
|
|
16
|
-
sign: string;
|
|
17
|
-
sgGateway: string;
|
|
18
|
-
sgBase: string;
|
|
19
|
-
sgOpen: string;
|
|
20
|
-
sgDomain: string;
|
|
21
|
-
extStatus: '0' | '1';
|
|
22
|
-
instanceMap: Record<string, any>;
|
|
23
|
-
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
-
callShow: '0' | '1';
|
|
25
|
-
transferToLaborShow: '0' | '1';
|
|
26
|
-
restShow: '0' | '1';
|
|
27
|
-
networkDetectShow: '0' | '1';
|
|
28
|
-
muteShow: '0' | '1';
|
|
29
|
-
logShow: '0' | '1';
|
|
30
|
-
timingShow: '0' | '1';
|
|
31
|
-
signShow: '0' | '1';
|
|
32
|
-
softphoneConnectCallBack: Function;
|
|
33
|
-
softphoneCallRefreshCallBack: Function;
|
|
34
|
-
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
-
softphoneAcceptCallBack: Function;
|
|
36
|
-
softphoneIgnoreCallBack: Function;
|
|
37
|
-
softphoneHangupCallBack: Function;
|
|
38
|
-
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
-
softphoneIncomingCallBack: Function;
|
|
40
|
-
softphoneSendDtmfCallBack: Function;
|
|
41
|
-
softphoneAutoIgnoreCallback: Function;
|
|
42
|
-
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
-
softphoneSignOverduedCallBack: Function;
|
|
44
|
-
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
-
};
|
|
46
|
-
export declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
1
|
+
export declare type Option = {
|
|
2
|
+
origin: string;
|
|
3
|
+
ancestorOrigin: string;
|
|
4
|
+
destinationOrigin: string;
|
|
5
|
+
scrollingText: string;
|
|
6
|
+
scrollview: string;
|
|
7
|
+
envMap: Record<Env, string>;
|
|
8
|
+
env: string;
|
|
9
|
+
selector: string;
|
|
10
|
+
el: string;
|
|
11
|
+
agentTag: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
appKey: string;
|
|
14
|
+
appSecret: string;
|
|
15
|
+
timestamp: string | number;
|
|
16
|
+
sign: string;
|
|
17
|
+
sgGateway: string;
|
|
18
|
+
sgBase: string;
|
|
19
|
+
sgOpen: string;
|
|
20
|
+
sgDomain: string;
|
|
21
|
+
extStatus: '0' | '1';
|
|
22
|
+
instanceMap: Record<string, any>;
|
|
23
|
+
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
+
callShow: '0' | '1';
|
|
25
|
+
transferToLaborShow: '0' | '1';
|
|
26
|
+
restShow: '0' | '1';
|
|
27
|
+
networkDetectShow: '0' | '1';
|
|
28
|
+
muteShow: '0' | '1';
|
|
29
|
+
logShow: '0' | '1';
|
|
30
|
+
timingShow: '0' | '1';
|
|
31
|
+
signShow: '0' | '1';
|
|
32
|
+
softphoneConnectCallBack: Function;
|
|
33
|
+
softphoneCallRefreshCallBack: Function;
|
|
34
|
+
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
+
softphoneAcceptCallBack: Function;
|
|
36
|
+
softphoneIgnoreCallBack: Function;
|
|
37
|
+
softphoneHangupCallBack: Function;
|
|
38
|
+
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
+
softphoneIncomingCallBack: Function;
|
|
40
|
+
softphoneSendDtmfCallBack: Function;
|
|
41
|
+
softphoneAutoIgnoreCallback: Function;
|
|
42
|
+
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
+
softphoneSignOverduedCallBack: Function;
|
|
44
|
+
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
+
};
|
|
46
|
+
export declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
package/package/nf-softphone.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
></iframe>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
|
-
<div :class="{'nf-softphone-text': true}" :style="{'display': containerScrolling === true ? 'block' : 'none'}">{{ scrollingText }}</div>
|
|
15
|
+
<div :class="{'nf-softphone-text': true}" :style="{'display': containerScrolling === true ? 'block' : 'none'}">{{ localeText.scrollingText }}</div>
|
|
16
16
|
</div>
|
|
17
17
|
</template>
|
|
18
18
|
|
|
@@ -25,6 +25,9 @@ export default defineComponent({
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<script lang="ts" setup>
|
|
28
|
+
import { computed } from 'vue-demi'
|
|
29
|
+
import { useLocale } from '@94ai/common-utils'
|
|
30
|
+
|
|
28
31
|
import { Env } from './type'
|
|
29
32
|
import {
|
|
30
33
|
getCurrentInstance,
|
|
@@ -71,7 +74,7 @@ const props = withDefaults(defineProps<{
|
|
|
71
74
|
timingShow?: '0' | '1',
|
|
72
75
|
signShow?: '0' | '1',
|
|
73
76
|
}>(), {
|
|
74
|
-
scrollingText:
|
|
77
|
+
scrollingText: undefined,
|
|
75
78
|
scrollview: undefined,
|
|
76
79
|
|
|
77
80
|
envMap: () => ({
|
|
@@ -110,6 +113,12 @@ const props = withDefaults(defineProps<{
|
|
|
110
113
|
signShow: '1',
|
|
111
114
|
})
|
|
112
115
|
|
|
116
|
+
const { t } = useLocale()
|
|
117
|
+
const localeText = computed(() => ({
|
|
118
|
+
scrollingText: props.scrollingText ?? t('nf.softphone.scrolling'),
|
|
119
|
+
}))
|
|
120
|
+
|
|
121
|
+
|
|
113
122
|
const requestOpenApiCallBackMap: Record<string, any> = {}
|
|
114
123
|
|
|
115
124
|
const emit = defineEmits<{
|
package/package/softphone.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Option } from 'packages/nf-softphone/lib/type'
|
|
2
2
|
import {
|
|
3
|
+
useLocale,
|
|
3
4
|
debounce,
|
|
4
5
|
generateUUID
|
|
5
6
|
} from '@94ai/common-utils'
|
|
@@ -23,7 +24,7 @@ export class SoftphoneManager {
|
|
|
23
24
|
destinationOrigin: '*',
|
|
24
25
|
|
|
25
26
|
scrollview: undefined,
|
|
26
|
-
scrollingText:
|
|
27
|
+
scrollingText: undefined,
|
|
27
28
|
|
|
28
29
|
envMap: {
|
|
29
30
|
test: 'http://softphone.test.k8s.com',
|
|
@@ -363,7 +364,7 @@ export class SoftphoneManager {
|
|
|
363
364
|
handlerDomGenerater = async () => {
|
|
364
365
|
const nfSoftphone = document.createElement('div');
|
|
365
366
|
const nfSoftphoneText = document.createElement('div');
|
|
366
|
-
nfSoftphoneText.innerText = this.option.scrollingText
|
|
367
|
+
nfSoftphoneText.innerText = this.option.scrollingText ?? useLocale().t('nf.softphone.scrolling')
|
|
367
368
|
|
|
368
369
|
const nfSoftphoneContainer = document.createElement('div');
|
|
369
370
|
const iframeContainer = document.createElement('div');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-softphone",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "http://94ai.
|
|
14
|
+
"url": "http://gitlab.94ai.pro/ui/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/
|
|
17
|
+
"@94ai/common-utils": "^9.0.0",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^9.0.0",
|
|
18
19
|
"vue-demi": "^0.14.5"
|
|
19
20
|
},
|
|
20
21
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +31,5 @@
|
|
|
30
31
|
"types": "lib/index.d.ts",
|
|
31
32
|
"main": "lib/nf-softphone.cjs.js",
|
|
32
33
|
"module": "lib/nf-softphone.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "afe3016f0e42dfb7fedf6cbbe400ec08bf4b8662"
|
|
34
35
|
}
|