@94ai/nf-softphone 6.1.11 → 6.1.12

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,160 +1,160 @@
1
- import { Env } from './type';
2
- declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- scrollingText?: string | undefined;
4
- scrollview?: string | undefined;
5
- envMap?: Partial<Record<Env, string>> | undefined;
6
- env?: Env | undefined;
7
- agentId?: string | undefined;
8
- agentTag?: string | undefined;
9
- appKey?: string | undefined;
10
- appSecret?: string | undefined;
11
- extStatus?: string | undefined;
12
- origin?: string | undefined;
13
- ancestorOrigin?: string | undefined;
14
- destinationOrigin?: string | undefined;
15
- callShow?: "0" | "1" | undefined;
16
- transferToLaborShow?: "0" | "1" | undefined;
17
- restShow?: "0" | "1" | undefined;
18
- networkDetectShow?: "0" | "1" | undefined;
19
- muteShow?: "0" | "1" | undefined;
20
- logShow?: "0" | "1" | undefined;
21
- timingShow?: "0" | "1" | undefined;
22
- signShow?: "0" | "1" | undefined;
23
- }>, {
24
- scrollingText: string;
25
- scrollview: undefined;
26
- envMap: () => {
27
- test: string;
28
- dev: string;
29
- sg: string;
30
- gray: string;
31
- prod: string;
32
- };
33
- env: string;
34
- agentId: undefined;
35
- agentTag: undefined;
36
- appKey: undefined;
37
- appSecret: undefined;
38
- extStatus: string;
39
- origin: string;
40
- ancestorOrigin: string;
41
- destinationOrigin: string;
42
- callShow: string;
43
- transferToLaborShow: string;
44
- restShow: string;
45
- networkDetectShow: string;
46
- muteShow: string;
47
- logShow: string;
48
- timingShow: string;
49
- signShow: string;
50
- }>, {
51
- connect: () => void;
52
- disconnect: () => void;
53
- seatsStatusChange: (status: any) => void;
54
- accept: () => void;
55
- ignore: () => void;
56
- hangup: () => void;
57
- sendDtmf: () => void;
58
- iframeDom: import("vue-demi").Ref<any>;
59
- iframeContainer: import("vue-demi").Ref<any>;
60
- container: import("vue-demi").Ref<any>;
61
- containerScrolling: import("vue-demi").Ref<any>;
62
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
63
- "softphone-connect": (event: any) => void;
64
- "softphone-seats-status-change": (event: any) => void;
65
- "softphone-accept": (event: any) => void;
66
- "softphone-ignore": (event: any) => void;
67
- "softphone-hangup": (event: any) => void;
68
- "softphone-send-dtmf": (event: any) => void;
69
- "softphone-call-refresh": (event: any) => void;
70
- "softphone-session-state-change": (event: any) => void;
71
- "softphone-incoming": (event: any) => void;
72
- "softphone-connect-registered": (event: any) => void;
73
- }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
74
- scrollingText?: string | undefined;
75
- scrollview?: string | undefined;
76
- envMap?: Partial<Record<Env, string>> | undefined;
77
- env?: Env | undefined;
78
- agentId?: string | undefined;
79
- agentTag?: string | undefined;
80
- appKey?: string | undefined;
81
- appSecret?: string | undefined;
82
- extStatus?: string | undefined;
83
- origin?: string | undefined;
84
- ancestorOrigin?: string | undefined;
85
- destinationOrigin?: string | undefined;
86
- callShow?: "0" | "1" | undefined;
87
- transferToLaborShow?: "0" | "1" | undefined;
88
- restShow?: "0" | "1" | undefined;
89
- networkDetectShow?: "0" | "1" | undefined;
90
- muteShow?: "0" | "1" | undefined;
91
- logShow?: "0" | "1" | undefined;
92
- timingShow?: "0" | "1" | undefined;
93
- signShow?: "0" | "1" | undefined;
94
- }>, {
95
- scrollingText: string;
96
- scrollview: undefined;
97
- envMap: () => {
98
- test: string;
99
- dev: string;
100
- sg: string;
101
- gray: string;
102
- prod: string;
103
- };
104
- env: string;
105
- agentId: undefined;
106
- agentTag: undefined;
107
- appKey: undefined;
108
- appSecret: undefined;
109
- extStatus: string;
110
- origin: string;
111
- ancestorOrigin: string;
112
- destinationOrigin: string;
113
- callShow: string;
114
- transferToLaborShow: string;
115
- restShow: string;
116
- networkDetectShow: string;
117
- muteShow: string;
118
- logShow: string;
119
- timingShow: string;
120
- signShow: string;
121
- }>>>, {
122
- scrollingText: string;
123
- scrollview: string;
124
- envMap: Partial<Record<Env, string>>;
125
- env: Env;
126
- agentId: string;
127
- agentTag: string;
128
- appKey: string;
129
- appSecret: string;
130
- extStatus: string;
131
- origin: string;
132
- ancestorOrigin: string;
133
- destinationOrigin: string;
134
- callShow: '0' | '1';
135
- transferToLaborShow: '0' | '1';
136
- restShow: '0' | '1';
137
- networkDetectShow: '0' | '1';
138
- muteShow: '0' | '1';
139
- logShow: '0' | '1';
140
- timingShow: '0' | '1';
141
- signShow: '0' | '1';
142
- }>;
143
- export default _default;
144
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
145
- declare type __VLS_TypePropsToRuntimeProps<T> = {
146
- [K in keyof T]-?: {} extends Pick<T, K> ? {
147
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
148
- } : {
149
- type: import('vue').PropType<T[K]>;
150
- required: true;
151
- };
152
- };
153
- declare type __VLS_WithDefaults<P, D> = {
154
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
155
- default: D[K];
156
- }> : P[K];
157
- };
158
- declare type __VLS_Prettify<T> = {
159
- [K in keyof T]: T[K];
160
- } & {};
1
+ import { Env } from './type';
2
+ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ scrollingText?: string | undefined;
4
+ scrollview?: string | undefined;
5
+ envMap?: Partial<Record<Env, string>> | undefined;
6
+ env?: Env | undefined;
7
+ agentId?: string | undefined;
8
+ agentTag?: string | undefined;
9
+ appKey?: string | undefined;
10
+ appSecret?: string | undefined;
11
+ extStatus?: string | undefined;
12
+ origin?: string | undefined;
13
+ ancestorOrigin?: string | undefined;
14
+ destinationOrigin?: string | undefined;
15
+ callShow?: "0" | "1" | undefined;
16
+ transferToLaborShow?: "0" | "1" | undefined;
17
+ restShow?: "0" | "1" | undefined;
18
+ networkDetectShow?: "0" | "1" | undefined;
19
+ muteShow?: "0" | "1" | undefined;
20
+ logShow?: "0" | "1" | undefined;
21
+ timingShow?: "0" | "1" | undefined;
22
+ signShow?: "0" | "1" | undefined;
23
+ }>, {
24
+ scrollingText: string;
25
+ scrollview: undefined;
26
+ envMap: () => {
27
+ test: string;
28
+ dev: string;
29
+ sg: string;
30
+ gray: string;
31
+ prod: string;
32
+ };
33
+ env: string;
34
+ agentId: undefined;
35
+ agentTag: undefined;
36
+ appKey: undefined;
37
+ appSecret: undefined;
38
+ extStatus: string;
39
+ origin: string;
40
+ ancestorOrigin: string;
41
+ destinationOrigin: string;
42
+ callShow: string;
43
+ transferToLaborShow: string;
44
+ restShow: string;
45
+ networkDetectShow: string;
46
+ muteShow: string;
47
+ logShow: string;
48
+ timingShow: string;
49
+ signShow: string;
50
+ }>, {
51
+ connect: () => void;
52
+ disconnect: () => void;
53
+ seatsStatusChange: (status: any) => void;
54
+ accept: () => void;
55
+ ignore: () => void;
56
+ hangup: () => void;
57
+ sendDtmf: () => void;
58
+ iframeDom: import("vue-demi").Ref<any>;
59
+ iframeContainer: import("vue-demi").Ref<any>;
60
+ container: import("vue-demi").Ref<any>;
61
+ containerScrolling: import("vue-demi").Ref<any>;
62
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
63
+ "softphone-connect": (event: any) => void;
64
+ "softphone-seats-status-change": (event: any) => void;
65
+ "softphone-accept": (event: any) => void;
66
+ "softphone-ignore": (event: any) => void;
67
+ "softphone-hangup": (event: any) => void;
68
+ "softphone-send-dtmf": (event: any) => void;
69
+ "softphone-call-refresh": (event: any) => void;
70
+ "softphone-session-state-change": (event: any) => void;
71
+ "softphone-incoming": (event: any) => void;
72
+ "softphone-connect-registered": (event: any) => void;
73
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
74
+ scrollingText?: string | undefined;
75
+ scrollview?: string | undefined;
76
+ envMap?: Partial<Record<Env, string>> | undefined;
77
+ env?: Env | undefined;
78
+ agentId?: string | undefined;
79
+ agentTag?: string | undefined;
80
+ appKey?: string | undefined;
81
+ appSecret?: string | undefined;
82
+ extStatus?: string | undefined;
83
+ origin?: string | undefined;
84
+ ancestorOrigin?: string | undefined;
85
+ destinationOrigin?: string | undefined;
86
+ callShow?: "0" | "1" | undefined;
87
+ transferToLaborShow?: "0" | "1" | undefined;
88
+ restShow?: "0" | "1" | undefined;
89
+ networkDetectShow?: "0" | "1" | undefined;
90
+ muteShow?: "0" | "1" | undefined;
91
+ logShow?: "0" | "1" | undefined;
92
+ timingShow?: "0" | "1" | undefined;
93
+ signShow?: "0" | "1" | undefined;
94
+ }>, {
95
+ scrollingText: string;
96
+ scrollview: undefined;
97
+ envMap: () => {
98
+ test: string;
99
+ dev: string;
100
+ sg: string;
101
+ gray: string;
102
+ prod: string;
103
+ };
104
+ env: string;
105
+ agentId: undefined;
106
+ agentTag: undefined;
107
+ appKey: undefined;
108
+ appSecret: undefined;
109
+ extStatus: string;
110
+ origin: string;
111
+ ancestorOrigin: string;
112
+ destinationOrigin: string;
113
+ callShow: string;
114
+ transferToLaborShow: string;
115
+ restShow: string;
116
+ networkDetectShow: string;
117
+ muteShow: string;
118
+ logShow: string;
119
+ timingShow: string;
120
+ signShow: string;
121
+ }>>>, {
122
+ scrollingText: string;
123
+ scrollview: string;
124
+ envMap: Partial<Record<Env, string>>;
125
+ env: Env;
126
+ agentId: string;
127
+ agentTag: string;
128
+ appKey: string;
129
+ appSecret: string;
130
+ extStatus: string;
131
+ origin: string;
132
+ ancestorOrigin: string;
133
+ destinationOrigin: string;
134
+ callShow: '0' | '1';
135
+ transferToLaborShow: '0' | '1';
136
+ restShow: '0' | '1';
137
+ networkDetectShow: '0' | '1';
138
+ muteShow: '0' | '1';
139
+ logShow: '0' | '1';
140
+ timingShow: '0' | '1';
141
+ signShow: '0' | '1';
142
+ }>;
143
+ export default _default;
144
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
145
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
146
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
147
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
148
+ } : {
149
+ type: import('vue').PropType<T[K]>;
150
+ required: true;
151
+ };
152
+ };
153
+ declare type __VLS_WithDefaults<P, D> = {
154
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
155
+ default: D[K];
156
+ }> : P[K];
157
+ };
158
+ declare type __VLS_Prettify<T> = {
159
+ [K in keyof T]: T[K];
160
+ } & {};
@@ -1,49 +1,49 @@
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
- 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
+ handlingCommunication: (e: {
12
12
  data: `{
13
13
  type: string,
14
14
  ancestorOrigin: string,
15
15
  origin: string,
16
16
  data: 'expand' | 'shrink'
17
- }` | string;
18
- }) => void;
19
- handlingScroll: (...args: any[]) => any;
20
- handlerInteractive: () => void;
21
- handlerDomRemove: () => void;
22
- _containerScrolling: any;
23
- get containerScrolling(): boolean;
24
- set containerScrolling(value: boolean);
25
- handlingScrollTransparent: () => void;
26
- refreshStyle: () => Promise<{
27
- top: number;
28
- left: number;
29
- leftMargin: string;
30
- } | {
31
- leftMargin: number;
32
- top: number;
33
- left: number;
34
- }>;
35
- handlerDomGenerater: () => Promise<void>;
36
- initSoftphone: (option: any) => this;
37
- postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
38
- connect: () => void;
39
- disconnect: () => void;
40
- seatsStatusChange: (status: boolean) => void;
41
- accept: () => void;
42
- ignore: () => void;
43
- hangup: () => void;
44
- sendDtmf: () => void;
45
- removeTimer: () => void;
46
- destroy: () => void;
47
- }
48
- declare const softphoneManager: SoftphoneManager;
49
- export default softphoneManager;
17
+ }` | string;
18
+ }) => void;
19
+ handlingScroll: (...args: any[]) => any;
20
+ handlerInteractive: () => void;
21
+ handlerDomRemove: () => void;
22
+ _containerScrolling: any;
23
+ get containerScrolling(): boolean;
24
+ set containerScrolling(value: boolean);
25
+ handlingScrollTransparent: () => void;
26
+ refreshStyle: () => Promise<{
27
+ top: number;
28
+ left: number;
29
+ leftMargin: string;
30
+ } | {
31
+ leftMargin: number;
32
+ top: number;
33
+ left: number;
34
+ }>;
35
+ handlerDomGenerater: () => Promise<void>;
36
+ initSoftphone: (option: any) => this;
37
+ postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
38
+ connect: () => void;
39
+ disconnect: () => void;
40
+ seatsStatusChange: (status: boolean) => void;
41
+ accept: () => void;
42
+ ignore: () => void;
43
+ hangup: () => void;
44
+ sendDtmf: () => void;
45
+ removeTimer: () => void;
46
+ destroy: () => void;
47
+ }
48
+ declare const softphoneManager: SoftphoneManager;
49
+ export default softphoneManager;
@@ -1 +1 @@
1
-
1
+
@@ -1 +1 @@
1
-
1
+
package/lib/type.d.ts CHANGED
@@ -1,36 +1,36 @@
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
- extStatus: '0' | '1';
16
- instanceMap: Record<string, any>;
17
- callShow: '0' | '1';
18
- transferToLaborShow: '0' | '1';
19
- restShow: '0' | '1';
20
- networkDetectShow: '0' | '1';
21
- muteShow: '0' | '1';
22
- logShow: '0' | '1';
23
- timingShow: '0' | '1';
24
- signShow: '0' | '1';
25
- softphoneConnectCallBack: Function;
26
- softphoneCallRefreshCallBack: Function;
27
- softphoneSeatStatusChangeCallBack: Function;
28
- softphoneAcceptCallBack: Function;
29
- softphoneIgnoreCallBack: Function;
30
- softphoneHangupCallBack: Function;
31
- softphoneSessionStateChangeCallBack: Function;
32
- softphoneIncomingCallBack: Function;
33
- softphoneSendDtmfCallBack: Function;
34
- softphoneConnectRegisteredCallBack: Function;
35
- };
36
- 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
+ extStatus: '0' | '1';
16
+ instanceMap: Record<string, any>;
17
+ callShow: '0' | '1';
18
+ transferToLaborShow: '0' | '1';
19
+ restShow: '0' | '1';
20
+ networkDetectShow: '0' | '1';
21
+ muteShow: '0' | '1';
22
+ logShow: '0' | '1';
23
+ timingShow: '0' | '1';
24
+ signShow: '0' | '1';
25
+ softphoneConnectCallBack: Function;
26
+ softphoneCallRefreshCallBack: Function;
27
+ softphoneSeatStatusChangeCallBack: Function;
28
+ softphoneAcceptCallBack: Function;
29
+ softphoneIgnoreCallBack: Function;
30
+ softphoneHangupCallBack: Function;
31
+ softphoneSessionStateChangeCallBack: Function;
32
+ softphoneIncomingCallBack: Function;
33
+ softphoneSendDtmfCallBack: Function;
34
+ softphoneConnectRegisteredCallBack: Function;
35
+ };
36
+ export declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-softphone",
3
- "version": "6.1.11",
3
+ "version": "6.1.12",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/ui/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^6.1.11",
17
+ "@94ai/nf-theme-chalk": "^6.1.12",
18
18
  "vue-demi": "^0.14.5"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -30,5 +30,5 @@
30
30
  "types": "lib/index.d.ts",
31
31
  "main": "lib/nf-softphone.cjs.js",
32
32
  "module": "lib/nf-softphone.esm-bundler.js",
33
- "gitHead": "b323e0bc9c0c83ee7729ce6fc8e1611143f73e09"
33
+ "gitHead": "c170847f6493387bf69985e7661c5d44e0a1decd"
34
34
  }
package/components.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export {}
2
-
3
- declare module 'vue' {
4
- export interface GlobalComponents {
5
- NfSoftphone: typeof import('@94ai/nf-softphone/lib/nf-softphone.vue')['default']
6
-
7
- }
8
- }