@coventia/softphone 0.1.0 → 0.2.1
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-BTYlT2SU.d.cts → call-VKq1I8yP.d.cts} +158 -5
- package/dist/{call-BTYlT2SU.d.ts → call-VKq1I8yP.d.ts} +158 -5
- package/dist/{chunk-N2N2EQQJ.js → chunk-7R6LOOAI.js} +4 -2
- package/dist/chunk-7R6LOOAI.js.map +1 -0
- package/dist/{chunk-5BGEHMPP.js → chunk-EYEDPD7Y.js} +146 -20
- package/dist/chunk-EYEDPD7Y.js.map +1 -0
- package/dist/{chunk-3V2L6UTK.js → chunk-LMJXX4YM.js} +17 -3
- package/dist/chunk-LMJXX4YM.js.map +1 -0
- package/dist/element/index.d.ts +162 -7
- package/dist/element/index.js +866 -421
- package/dist/element/index.js.map +1 -1
- package/dist/{engine-D9nbeY08.d.cts → engine-BlQBo2Ys.d.cts} +1 -1
- package/dist/{engine-Doa6Brkm.d.ts → engine-C0BOkIcW.d.ts} +1 -1
- package/dist/index.cjs +586 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +335 -8
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +15 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +14 -3
- package/dist/react/index.d.ts +14 -3
- package/dist/react/index.js +2 -2
- package/dist/{softphone-DhuhcKCy.d.cts → softphone-Cyq3hiIM.d.ts} +17 -2
- package/dist/{softphone-DHmhotbf.d.ts → softphone-DlGV12Xp.d.cts} +17 -2
- package/dist/softphone.css +477 -35
- package/dist/{sources-N4BOEDRL.js → sources-IRKNQPWW.js} +108 -5
- package/dist/sources-IRKNQPWW.js.map +1 -0
- package/dist/testing/index.cjs +41 -5
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +8 -2
- package/dist/testing/index.d.ts +8 -2
- package/dist/testing/index.js +41 -5
- package/dist/testing/index.js.map +1 -1
- package/dist/ui/index.cjs +846 -410
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +17 -6
- package/dist/ui/index.d.ts +17 -6
- package/dist/ui/index.js +878 -456
- package/dist/ui/index.js.map +1 -1
- package/dist/zadarma/index.cjs +144 -18
- package/dist/zadarma/index.cjs.map +1 -1
- package/dist/zadarma/index.d.cts +2 -2
- package/dist/zadarma/index.d.ts +2 -2
- package/dist/zadarma/index.js +1 -1
- package/dist/zadarma-engine-L5DEFXUS.js +5 -0
- package/dist/{zadarma-engine-DN2SZSQ3.js.map → zadarma-engine-L5DEFXUS.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-3V2L6UTK.js.map +0 -1
- package/dist/chunk-5BGEHMPP.js.map +0 -1
- package/dist/chunk-N2N2EQQJ.js.map +0 -1
- package/dist/sources-N4BOEDRL.js.map +0 -1
- package/dist/zadarma-engine-DN2SZSQ3.js +0 -5
package/dist/ui/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { g as Contact, u as ContactsSource, v as HistorySource, a as Call } from '../call-
|
|
4
|
-
export {
|
|
3
|
+
import { g as Contact, u as ContactsSource, v as HistorySource, a as Call } from '../call-VKq1I8yP.cjs';
|
|
4
|
+
export { y as CallHistoryEntry, z as ContactsPage } from '../call-VKq1I8yP.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shaped like a Lucide icon (`size`, `className`, both optional — every SVG prop Lucide's own icons
|
|
@@ -75,8 +75,9 @@ interface SoftphoneWidgetProps {
|
|
|
75
75
|
*/
|
|
76
76
|
readonly requireMic?: boolean;
|
|
77
77
|
/**
|
|
78
|
-
* Play call audio: the remote party, the inbound ring, the outbound ringback,
|
|
79
|
-
*
|
|
78
|
+
* Play call audio: the remote party, the inbound ring, the outbound ringback, a short cue when a
|
|
79
|
+
* connected call ends — by either side — and a key tone for each keypad press (the dialer, and the
|
|
80
|
+
* in-call keypad that sends DTMF). **On by default.**
|
|
80
81
|
*
|
|
81
82
|
* The remote-party half is not a nicety — nothing else attaches the `MediaStream`, so with this
|
|
82
83
|
* off a connected call is silent in both directions. Turn it off only if the host attaches
|
|
@@ -149,13 +150,23 @@ interface DialpadProps {
|
|
|
149
150
|
} | null;
|
|
150
151
|
/** Called on any action that supersedes that outcome: a digit, a backspace, a dial. */
|
|
151
152
|
readonly onIntent?: () => void;
|
|
153
|
+
/**
|
|
154
|
+
* Play a key tone when a digit is pressed. **On by default**; `SoftphoneWidget` passes its own
|
|
155
|
+
* `sounds` flag, so a host that silences the widget silences this too.
|
|
156
|
+
*/
|
|
157
|
+
readonly keyTones?: boolean;
|
|
152
158
|
}
|
|
153
|
-
declare function Dialpad({ outcome, onIntent }?: DialpadProps): react.JSX.Element;
|
|
159
|
+
declare function Dialpad({ outcome, onIntent, keyTones }?: DialpadProps): react.JSX.Element;
|
|
154
160
|
|
|
155
161
|
/** The active-call view: incoming, outgoing and in-call in one, switched on call.state. */
|
|
156
|
-
declare function CallScreen({ call, incomingCallAction, }: Readonly<{
|
|
162
|
+
declare function CallScreen({ call, incomingCallAction, keyTones, }: Readonly<{
|
|
157
163
|
call: Call;
|
|
158
164
|
incomingCallAction?: ContactAction;
|
|
165
|
+
/**
|
|
166
|
+
* Play a tone for each keypad press. **On by default**; `SoftphoneWidget` passes its own `sounds`
|
|
167
|
+
* flag, so a host that silences the widget silences this too.
|
|
168
|
+
*/
|
|
169
|
+
keyTones?: boolean;
|
|
159
170
|
}>): react.JSX.Element | null;
|
|
160
171
|
|
|
161
172
|
/**
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { g as Contact, u as ContactsSource, v as HistorySource, a as Call } from '../call-
|
|
4
|
-
export {
|
|
3
|
+
import { g as Contact, u as ContactsSource, v as HistorySource, a as Call } from '../call-VKq1I8yP.js';
|
|
4
|
+
export { y as CallHistoryEntry, z as ContactsPage } from '../call-VKq1I8yP.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shaped like a Lucide icon (`size`, `className`, both optional — every SVG prop Lucide's own icons
|
|
@@ -75,8 +75,9 @@ interface SoftphoneWidgetProps {
|
|
|
75
75
|
*/
|
|
76
76
|
readonly requireMic?: boolean;
|
|
77
77
|
/**
|
|
78
|
-
* Play call audio: the remote party, the inbound ring, the outbound ringback,
|
|
79
|
-
*
|
|
78
|
+
* Play call audio: the remote party, the inbound ring, the outbound ringback, a short cue when a
|
|
79
|
+
* connected call ends — by either side — and a key tone for each keypad press (the dialer, and the
|
|
80
|
+
* in-call keypad that sends DTMF). **On by default.**
|
|
80
81
|
*
|
|
81
82
|
* The remote-party half is not a nicety — nothing else attaches the `MediaStream`, so with this
|
|
82
83
|
* off a connected call is silent in both directions. Turn it off only if the host attaches
|
|
@@ -149,13 +150,23 @@ interface DialpadProps {
|
|
|
149
150
|
} | null;
|
|
150
151
|
/** Called on any action that supersedes that outcome: a digit, a backspace, a dial. */
|
|
151
152
|
readonly onIntent?: () => void;
|
|
153
|
+
/**
|
|
154
|
+
* Play a key tone when a digit is pressed. **On by default**; `SoftphoneWidget` passes its own
|
|
155
|
+
* `sounds` flag, so a host that silences the widget silences this too.
|
|
156
|
+
*/
|
|
157
|
+
readonly keyTones?: boolean;
|
|
152
158
|
}
|
|
153
|
-
declare function Dialpad({ outcome, onIntent }?: DialpadProps): react.JSX.Element;
|
|
159
|
+
declare function Dialpad({ outcome, onIntent, keyTones }?: DialpadProps): react.JSX.Element;
|
|
154
160
|
|
|
155
161
|
/** The active-call view: incoming, outgoing and in-call in one, switched on call.state. */
|
|
156
|
-
declare function CallScreen({ call, incomingCallAction, }: Readonly<{
|
|
162
|
+
declare function CallScreen({ call, incomingCallAction, keyTones, }: Readonly<{
|
|
157
163
|
call: Call;
|
|
158
164
|
incomingCallAction?: ContactAction;
|
|
165
|
+
/**
|
|
166
|
+
* Play a tone for each keypad press. **On by default**; `SoftphoneWidget` passes its own `sounds`
|
|
167
|
+
* flag, so a host that silences the widget silences this too.
|
|
168
|
+
*/
|
|
169
|
+
keyTones?: boolean;
|
|
159
170
|
}>): react.JSX.Element | null;
|
|
160
171
|
|
|
161
172
|
/**
|