@94ai/nf-softphone 8.3.16 → 8.3.19

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 CHANGED
@@ -234,6 +234,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
234
234
  "softphone-incoming": (event: any) => void;
235
235
  "softphone-connect-registered": (event: any) => void;
236
236
  "softphone-sign-overdued": (event: any) => void;
237
+ "softphone-auto-ignore-callback": (event: any) => void;
237
238
  }, {
238
239
  sgGateway: string;
239
240
  sgBase: string;
@@ -630,6 +631,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
630
631
  "softphone-incoming": (event: any) => void;
631
632
  "softphone-connect-registered": (event: any) => void;
632
633
  "softphone-sign-overdued": (event: any) => void;
634
+ "softphone-auto-ignore-callback": (event: any) => void;
633
635
  }, string, {
634
636
  sgGateway: string;
635
637
  sgBase: string;
@@ -213,6 +213,8 @@ __sfc_main.setup = (__props, __ctx) => {
213
213
  emit("softphone-incoming", data);
214
214
  } else if (data.type === "softphone-send-dtmf") {
215
215
  emit("softphone-send-dtmf", data);
216
+ } else if (data.type === "softphone-auto-ignore-callback") {
217
+ emit("softphone-auto-ignore-callback", data);
216
218
  } else if (data.type === "softphone-connect-registered") {
217
219
  emit("softphone-connect-registered", data);
218
220
  } else if (data.type === "softphone-sign-overdued") {
@@ -524,6 +526,9 @@ class SoftphoneManager {
524
526
  softphoneSendDtmfCallBack: () => {
525
527
  console.log("softphone-send-dtmf");
526
528
  },
529
+ softphoneAutoIgnoreCallback: (data) => {
530
+ console.log("softphone-auto-ignore-callback");
531
+ },
527
532
  softphoneConnectRegisteredCallBack: () => {
528
533
  console.log("softphone-connect-registered");
529
534
  },
@@ -574,7 +579,7 @@ class SoftphoneManager {
574
579
  }), "*");
575
580
  };
576
581
  this.handlingCommunication = (e) => {
577
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
582
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
578
583
  const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
579
584
  if (iframe) {
580
585
  let data = {};
@@ -610,8 +615,10 @@ class SoftphoneManager {
610
615
  (_p = (_o = this.option).softphoneIncomingCallBack) == null ? void 0 : _p.call(_o, data);
611
616
  } else if (data.type === "softphone-send-dtmf") {
612
617
  (_r = (_q = this.option).softphoneSendDtmfCallBack) == null ? void 0 : _r.call(_q, data);
618
+ } else if (data.type === "softphone-auto-ignore-callback") {
619
+ (_t = (_s = this.option).softphoneAutoIgnoreCallback) == null ? void 0 : _t.call(_s, data);
613
620
  } else if (data.type === "softphone-connect-registered") {
614
- (_t = (_s = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _t.call(_s, data);
621
+ (_v = (_u = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _v.call(_u, data);
615
622
  } else if (data.type === "softphone-sign-overdued") {
616
623
  const done = (data2) => {
617
624
  const {
@@ -623,7 +630,7 @@ class SoftphoneManager {
623
630
  timestamp
624
631
  });
625
632
  };
626
- (_v = (_u = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _v.call(_u, done);
633
+ (_x = (_w = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _x.call(_w, done);
627
634
  }
628
635
  }
629
636
  }
@@ -211,6 +211,8 @@ __sfc_main.setup = (__props, __ctx) => {
211
211
  emit("softphone-incoming", data);
212
212
  } else if (data.type === "softphone-send-dtmf") {
213
213
  emit("softphone-send-dtmf", data);
214
+ } else if (data.type === "softphone-auto-ignore-callback") {
215
+ emit("softphone-auto-ignore-callback", data);
214
216
  } else if (data.type === "softphone-connect-registered") {
215
217
  emit("softphone-connect-registered", data);
216
218
  } else if (data.type === "softphone-sign-overdued") {
@@ -522,6 +524,9 @@ class SoftphoneManager {
522
524
  softphoneSendDtmfCallBack: () => {
523
525
  console.log("softphone-send-dtmf");
524
526
  },
527
+ softphoneAutoIgnoreCallback: (data) => {
528
+ console.log("softphone-auto-ignore-callback");
529
+ },
525
530
  softphoneConnectRegisteredCallBack: () => {
526
531
  console.log("softphone-connect-registered");
527
532
  },
@@ -572,7 +577,7 @@ class SoftphoneManager {
572
577
  }), "*");
573
578
  };
574
579
  this.handlingCommunication = (e) => {
575
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
580
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
576
581
  const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
577
582
  if (iframe) {
578
583
  let data = {};
@@ -608,8 +613,10 @@ class SoftphoneManager {
608
613
  (_p = (_o = this.option).softphoneIncomingCallBack) == null ? void 0 : _p.call(_o, data);
609
614
  } else if (data.type === "softphone-send-dtmf") {
610
615
  (_r = (_q = this.option).softphoneSendDtmfCallBack) == null ? void 0 : _r.call(_q, data);
616
+ } else if (data.type === "softphone-auto-ignore-callback") {
617
+ (_t = (_s = this.option).softphoneAutoIgnoreCallback) == null ? void 0 : _t.call(_s, data);
611
618
  } else if (data.type === "softphone-connect-registered") {
612
- (_t = (_s = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _t.call(_s, data);
619
+ (_v = (_u = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _v.call(_u, data);
613
620
  } else if (data.type === "softphone-sign-overdued") {
614
621
  const done = (data2) => {
615
622
  const {
@@ -621,7 +628,7 @@ class SoftphoneManager {
621
628
  timestamp
622
629
  });
623
630
  };
624
- (_v = (_u = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _v.call(_u, done);
631
+ (_x = (_w = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _x.call(_w, done);
625
632
  }
626
633
  }
627
634
  }
@@ -83,6 +83,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
83
83
  "softphone-incoming": (event: any) => void;
84
84
  "softphone-connect-registered": (event: any) => void;
85
85
  "softphone-sign-overdued": (event: any) => void;
86
+ "softphone-auto-ignore-callback": (event: any) => void;
86
87
  }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
87
88
  sgGateway?: string | undefined;
88
89
  sgBase?: string | undefined;
package/lib/type.d.ts CHANGED
@@ -37,6 +37,7 @@ export declare type Option = {
37
37
  softphoneSessionStateChangeCallBack: Function;
38
38
  softphoneIncomingCallBack: Function;
39
39
  softphoneSendDtmfCallBack: Function;
40
+ softphoneAutoIgnoreCallback: Function;
40
41
  softphoneConnectRegisteredCallBack: Function;
41
42
  softphoneSignOverduedCallBack: Function;
42
43
  };
@@ -119,6 +119,7 @@ const emit = defineEmits<{
119
119
  (e: 'softphone-incoming', event: any): void
120
120
  (e: 'softphone-connect-registered', event: any): void
121
121
  (e: 'softphone-sign-overdued', event: any): void
122
+ (e: 'softphone-auto-ignore-callback', event: any): void
122
123
  }>()
123
124
 
124
125
  const container = ref()
@@ -167,6 +168,8 @@ const handlingCommunication = (e: {data: `{
167
168
  emit('softphone-incoming', data)
168
169
  } else if (data.type === 'softphone-send-dtmf') {
169
170
  emit('softphone-send-dtmf', data)
171
+ } else if (data.type === 'softphone-auto-ignore-callback') {
172
+ emit('softphone-auto-ignore-callback', data)
170
173
  } else if (data.type === 'softphone-connect-registered') {
171
174
  emit('softphone-connect-registered', data)
172
175
  } else if (data.type === 'softphone-sign-overdued') {
@@ -71,6 +71,7 @@ export class SoftphoneManager {
71
71
  softphoneSessionStateChangeCallBack: () => {console.log('softphone-session-state-change')},
72
72
  softphoneIncomingCallBack: () => {console.log('softphone-incoming')},
73
73
  softphoneSendDtmfCallBack: () => {console.log('softphone-send-dtmf')},
74
+ softphoneAutoIgnoreCallback: (data) => {console.log('softphone-auto-ignore-callback'), data},
74
75
  softphoneConnectRegisteredCallBack: () => {console.log('softphone-connect-registered')},
75
76
  softphoneSignOverduedCallBack: (done) => {
76
77
  done({
@@ -176,6 +177,8 @@ export class SoftphoneManager {
176
177
  this.option.softphoneIncomingCallBack?.(data)
177
178
  } else if (data.type === 'softphone-send-dtmf') {
178
179
  this.option.softphoneSendDtmfCallBack?.(data)
180
+ } else if (data.type === 'softphone-auto-ignore-callback') {
181
+ this.option.softphoneAutoIgnoreCallback?.(data)
179
182
  } else if (data.type === 'softphone-connect-registered') {
180
183
  this.option.softphoneConnectRegisteredCallBack?.(data)
181
184
  } else if (data.type === 'softphone-sign-overdued') {
package/package/type.ts CHANGED
@@ -40,6 +40,7 @@ export type Option = {
40
40
  softphoneSessionStateChangeCallBack: Function
41
41
  softphoneIncomingCallBack: Function
42
42
  softphoneSendDtmfCallBack: Function
43
+ softphoneAutoIgnoreCallback: Function
43
44
  softphoneConnectRegisteredCallBack: Function
44
45
  softphoneSignOverduedCallBack: Function
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-softphone",
3
- "version": "8.3.16",
3
+ "version": "8.3.19",
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": "^8.3.16",
17
+ "@94ai/nf-theme-chalk": "^8.3.19",
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": "75e563768bd7105b7e6ac7c4ca438a318941469b"
33
+ "gitHead": "ec206eadc7ca1a279e552ac22b51c29a5e71b326"
34
34
  }