@tmsoft/webphone 5.0.10 → 5.0.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.
- package/README.md +2 -1
- package/dist/src/components/WebPhone.vue.d.ts +3 -0
- package/dist/webphone.component.js +32 -32
- package/dist/webphone.es.js +477 -429
- package/dist/webphone.umd.js +20 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,8 @@ import { WebPhone } from '@tmsoft/webphone'
|
|
|
47
47
|
| `contacts` | `WebPhoneContact[]` | No | `[]` | Contact list |
|
|
48
48
|
| `initialKeypadVisible` | `boolean` | No | `true` | Initial keypad visibility |
|
|
49
49
|
| `enablePictureInPicture` | `boolean` | No | `true` | Enables Document Picture-in-Picture |
|
|
50
|
-
| `maskNumber` | `boolean` | No | `false` | Masks the displayed call number
|
|
50
|
+
| `maskNumber` | `boolean` | No | `false` | Masks the displayed call number, leaving only its last 4 characters visible (for example, `******4567`); extensions listed in `extensions` are never masked |
|
|
51
|
+
| `extensions` | `string[]` | No | `[]` | Numbers of the internal extensions, of any length. They are not masked when `maskNumber` is on |
|
|
51
52
|
| `earlyMedia` | `boolean` | No | `false` | Enables audio from provisional SIP responses with SDP for outbound, non-forking calls |
|
|
52
53
|
| `onAnswer` | `(video: boolean) => void \| Promise<void>` | No | — | Custom handler for answer action (incoming call) |
|
|
53
54
|
| `onHangup` | `() => void \| Promise<void>` | No | — | Called when hangup is requested; SIP hangup is always sent by the component |
|
|
@@ -20,6 +20,8 @@ type __VLS_Props = {
|
|
|
20
20
|
initialKeypadVisible?: boolean;
|
|
21
21
|
enablePictureInPicture?: boolean;
|
|
22
22
|
maskNumber?: boolean;
|
|
23
|
+
/** Números de las extensiones internas: no se enmascaran. */
|
|
24
|
+
extensions?: string[];
|
|
23
25
|
earlyMedia?: boolean;
|
|
24
26
|
onAnswer?: (video: boolean) => void | Promise<void>;
|
|
25
27
|
onHangup?: () => void | Promise<void>;
|
|
@@ -46,6 +48,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
46
48
|
earlyMedia: boolean;
|
|
47
49
|
mode: "webcall" | "call" | "video";
|
|
48
50
|
maskNumber: boolean;
|
|
51
|
+
extensions: string[];
|
|
49
52
|
position: WebPhonePosition;
|
|
50
53
|
initialKeypadVisible: boolean;
|
|
51
54
|
enablePictureInPicture: boolean;
|