@coventia/softphone 0.3.0 → 0.5.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/dist/{call-CaPDWVk3.d.cts → call-FqcvDg1t.d.cts} +168 -12
- package/dist/{call-CaPDWVk3.d.ts → call-FqcvDg1t.d.ts} +168 -12
- package/dist/chunk-5E5OEXS2.js +14 -0
- package/dist/chunk-5E5OEXS2.js.map +1 -0
- package/dist/{chunk-EYEDPD7Y.js → chunk-6RR6G35E.js} +92 -17
- package/dist/chunk-6RR6G35E.js.map +1 -0
- package/dist/{chunk-2ZSOGGPO.js → chunk-FRXHEHQA.js} +15 -2
- package/dist/chunk-FRXHEHQA.js.map +1 -0
- package/dist/{chunk-UHNLEBBO.js → chunk-I3RSC52R.js} +28 -3
- package/dist/chunk-I3RSC52R.js.map +1 -0
- package/dist/chunk-M76SAXXM.js +13 -0
- package/dist/chunk-M76SAXXM.js.map +1 -0
- package/dist/{chunk-7R6LOOAI.js → chunk-N4PLEYFJ.js} +4 -2
- package/dist/chunk-N4PLEYFJ.js.map +1 -0
- package/dist/element/index.d.ts +198 -6
- package/dist/element/index.js +1160 -489
- package/dist/element/index.js.map +1 -1
- package/dist/{engine-BgBsIcEa.d.ts → engine-CsNRD7B7.d.ts} +1 -1
- package/dist/{engine-CU2rEo3g.d.cts → engine-CzOCrfY9.d.cts} +1 -1
- package/dist/index.cjs +675 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.js +453 -37
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +26 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +24 -5
- package/dist/react/index.d.ts +24 -5
- package/dist/react/index.js +2 -2
- package/dist/{softphone-DEt0TtQw.d.ts → softphone-By9sizlV.d.ts} +44 -3
- package/dist/{softphone-dZMkW8V1.d.cts → softphone-JZvJdzU3.d.cts} +44 -3
- package/dist/softphone.css +254 -23
- package/dist/{sources-M3GYMS6V.js → sources-QL2LRZVH.js} +93 -8
- package/dist/sources-QL2LRZVH.js.map +1 -0
- package/dist/testing/index.cjs +13 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +1 -1
- package/dist/ui/index.cjs +670 -20
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +2 -2
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +642 -22
- package/dist/ui/index.js.map +1 -1
- package/dist/zadarma/index.cjs +111 -14
- package/dist/zadarma/index.cjs.map +1 -1
- package/dist/zadarma/index.d.cts +5 -6
- package/dist/zadarma/index.d.ts +5 -6
- package/dist/zadarma/index.js +3 -2
- package/dist/zadarma-engine-TIUE7PZ7.js +6 -0
- package/dist/{zadarma-engine-L5DEFXUS.js.map → zadarma-engine-TIUE7PZ7.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2ZSOGGPO.js.map +0 -1
- package/dist/chunk-7R6LOOAI.js.map +0 -1
- package/dist/chunk-EYEDPD7Y.js.map +0 -1
- package/dist/chunk-UHNLEBBO.js.map +0 -1
- package/dist/sources-M3GYMS6V.js.map +0 -1
- package/dist/zadarma-engine-L5DEFXUS.js +0 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as Softphone } from './softphone-
|
|
2
|
-
export { A as AudioDevices } from './softphone-
|
|
3
|
-
import { S as SoftphoneConfig } from './call-
|
|
4
|
-
export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d as CallEventMap, e as CallOptions, f as CallState, g as Contact, E as ERROR_CATALOGUE, F as FatalErrorCode, h as FatalSoftphoneError, H as HangupReason, i as HoldOriginator, I as INITIAL_STATES, L as LogLevel, N as NonFatalErrorCode,
|
|
1
|
+
import { S as Softphone } from './softphone-JZvJdzU3.cjs';
|
|
2
|
+
export { A as AudioDevices } from './softphone-JZvJdzU3.cjs';
|
|
3
|
+
import { S as SoftphoneConfig, O as OutboundNumberRefusal } from './call-FqcvDg1t.cjs';
|
|
4
|
+
export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d as CallEventMap, e as CallOptions, f as CallState, g as Contact, E as ERROR_CATALOGUE, F as FatalErrorCode, h as FatalSoftphoneError, H as HangupReason, i as HoldOriginator, I as INITIAL_STATES, L as LineClaim, j as LineLocation, k as LineState, l as LogLevel, N as NonFatalErrorCode, m as NonFatalSoftphoneError, n as OutboundNumber, o as OutboundNumberKind, p as OutboundNumberSettings, q as OutboundNumberState, r as OutboundNumbersSource, R as RemoteParty, s as RingtoneOption, t as RingtoneSettings, u as RingtoneSource, v as SoftphoneError, w as SoftphoneErrorCode, x as SoftphoneEvent, y as SoftphoneEventMap, z as SoftphoneState, T as TokenEndpointOptions, A as TokenSource, B as TypedEmitter, V as VoiceToken, D as canTransition, G as isFatal, J as isTerminal } from './call-FqcvDg1t.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Construct a softphone.
|
|
@@ -19,6 +19,16 @@ export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d
|
|
|
19
19
|
*/
|
|
20
20
|
declare function createSoftphone(config: SoftphoneConfig): Softphone;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* A change of outbound number the request limits refused (outbound-number-per-agent.md §5.3–§5.5). Structural,
|
|
24
|
+
* like `isSoftphoneError`: the concrete error is a plain `Error` with a `refusal`, so a host — or a second copy
|
|
25
|
+
* of the SDK on the page — can recognise it without sharing a class.
|
|
26
|
+
*/
|
|
27
|
+
interface OutboundNumberRefusedError extends Error {
|
|
28
|
+
readonly refusal: OutboundNumberRefusal;
|
|
29
|
+
}
|
|
30
|
+
declare function isOutboundNumberRefused(value: unknown): value is OutboundNumberRefusedError;
|
|
31
|
+
|
|
22
32
|
/**
|
|
23
33
|
* Browser-capability probes.
|
|
24
34
|
*
|
|
@@ -57,6 +67,6 @@ declare function isWebRtcSupported(): boolean;
|
|
|
57
67
|
* - `MockProvider` — lives at @coventia/softphone/testing, so it never lands in a production bundle.
|
|
58
68
|
*/
|
|
59
69
|
|
|
60
|
-
declare const VERSION = "0.
|
|
70
|
+
declare const VERSION = "0.5.0";
|
|
61
71
|
|
|
62
|
-
export { Softphone, SoftphoneConfig, VERSION, createSoftphone, isBrowser, isWebRtcSupported };
|
|
72
|
+
export { OutboundNumberRefusal, type OutboundNumberRefusedError, Softphone, SoftphoneConfig, VERSION, createSoftphone, isBrowser, isOutboundNumberRefused, isWebRtcSupported };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as Softphone } from './softphone-
|
|
2
|
-
export { A as AudioDevices } from './softphone-
|
|
3
|
-
import { S as SoftphoneConfig } from './call-
|
|
4
|
-
export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d as CallEventMap, e as CallOptions, f as CallState, g as Contact, E as ERROR_CATALOGUE, F as FatalErrorCode, h as FatalSoftphoneError, H as HangupReason, i as HoldOriginator, I as INITIAL_STATES, L as LogLevel, N as NonFatalErrorCode,
|
|
1
|
+
import { S as Softphone } from './softphone-By9sizlV.js';
|
|
2
|
+
export { A as AudioDevices } from './softphone-By9sizlV.js';
|
|
3
|
+
import { S as SoftphoneConfig, O as OutboundNumberRefusal } from './call-FqcvDg1t.js';
|
|
4
|
+
export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d as CallEventMap, e as CallOptions, f as CallState, g as Contact, E as ERROR_CATALOGUE, F as FatalErrorCode, h as FatalSoftphoneError, H as HangupReason, i as HoldOriginator, I as INITIAL_STATES, L as LineClaim, j as LineLocation, k as LineState, l as LogLevel, N as NonFatalErrorCode, m as NonFatalSoftphoneError, n as OutboundNumber, o as OutboundNumberKind, p as OutboundNumberSettings, q as OutboundNumberState, r as OutboundNumbersSource, R as RemoteParty, s as RingtoneOption, t as RingtoneSettings, u as RingtoneSource, v as SoftphoneError, w as SoftphoneErrorCode, x as SoftphoneEvent, y as SoftphoneEventMap, z as SoftphoneState, T as TokenEndpointOptions, A as TokenSource, B as TypedEmitter, V as VoiceToken, D as canTransition, G as isFatal, J as isTerminal } from './call-FqcvDg1t.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Construct a softphone.
|
|
@@ -19,6 +19,16 @@ export { C as CALL_TRANSITIONS, a as Call, b as CallDirection, c as CallEvent, d
|
|
|
19
19
|
*/
|
|
20
20
|
declare function createSoftphone(config: SoftphoneConfig): Softphone;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* A change of outbound number the request limits refused (outbound-number-per-agent.md §5.3–§5.5). Structural,
|
|
24
|
+
* like `isSoftphoneError`: the concrete error is a plain `Error` with a `refusal`, so a host — or a second copy
|
|
25
|
+
* of the SDK on the page — can recognise it without sharing a class.
|
|
26
|
+
*/
|
|
27
|
+
interface OutboundNumberRefusedError extends Error {
|
|
28
|
+
readonly refusal: OutboundNumberRefusal;
|
|
29
|
+
}
|
|
30
|
+
declare function isOutboundNumberRefused(value: unknown): value is OutboundNumberRefusedError;
|
|
31
|
+
|
|
22
32
|
/**
|
|
23
33
|
* Browser-capability probes.
|
|
24
34
|
*
|
|
@@ -57,6 +67,6 @@ declare function isWebRtcSupported(): boolean;
|
|
|
57
67
|
* - `MockProvider` — lives at @coventia/softphone/testing, so it never lands in a production bundle.
|
|
58
68
|
*/
|
|
59
69
|
|
|
60
|
-
declare const VERSION = "0.
|
|
70
|
+
declare const VERSION = "0.5.0";
|
|
61
71
|
|
|
62
|
-
export { Softphone, SoftphoneConfig, VERSION, createSoftphone, isBrowser, isWebRtcSupported };
|
|
72
|
+
export { OutboundNumberRefusal, type OutboundNumberRefusedError, Softphone, SoftphoneConfig, VERSION, createSoftphone, isBrowser, isOutboundNumberRefused, isWebRtcSupported };
|