@coventia/softphone 0.2.1 → 0.4.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-VKq1I8yP.d.cts → call-C6YpT6uR.d.cts} +107 -1
- package/dist/{call-VKq1I8yP.d.ts → call-C6YpT6uR.d.ts} +107 -1
- package/dist/chunk-5E5OEXS2.js +14 -0
- package/dist/chunk-5E5OEXS2.js.map +1 -0
- package/dist/{chunk-LMJXX4YM.js → chunk-UHNLEBBO.js} +4 -2
- package/dist/chunk-UHNLEBBO.js.map +1 -0
- package/dist/element/index.d.ts +124 -9
- package/dist/element/index.js +1837 -413
- package/dist/element/index.js.map +1 -1
- package/dist/{engine-BlQBo2Ys.d.cts → engine-CDdaSojx.d.cts} +1 -1
- package/dist/{engine-C0BOkIcW.d.ts → engine-DPft99Wj.d.ts} +1 -1
- package/dist/index.cjs +213 -13
- 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 +75 -10
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +2 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +1 -1
- package/dist/{softphone-DlGV12Xp.d.cts → softphone-CY5d2WWY.d.cts} +28 -10
- package/dist/{softphone-Cyq3hiIM.d.ts → softphone-DXgmTyrX.d.ts} +28 -10
- package/dist/softphone.css +364 -35
- package/dist/{sources-IRKNQPWW.js → sources-ONYQW733.js} +125 -6
- package/dist/sources-ONYQW733.js.map +1 -0
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/ui/index.cjs +1450 -33
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +25 -3
- package/dist/ui/index.d.ts +25 -3
- package/dist/ui/index.js +1445 -36
- package/dist/ui/index.js.map +1 -1
- package/dist/zadarma/index.d.cts +2 -2
- package/dist/zadarma/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-LMJXX4YM.js.map +0 -1
- package/dist/sources-IRKNQPWW.js.map +0 -1
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,
|
|
4
|
-
export {
|
|
3
|
+
import { g as Contact, D as ContactsSource, G as HistorySource, a as Call, p as RingtoneOption } from '../call-C6YpT6uR.cjs';
|
|
4
|
+
export { Q as CallHistoryEntry, U as ContactsPage } from '../call-C6YpT6uR.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shaped like a Lucide icon (`size`, `className`, both optional — every SVG prop Lucide's own icons
|
|
@@ -196,4 +196,26 @@ declare function HistoryTab({ source }: Readonly<{
|
|
|
196
196
|
source: HistorySource;
|
|
197
197
|
}>): react.JSX.Element;
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
/** A running preview. */
|
|
200
|
+
interface RingtonePreview {
|
|
201
|
+
/** Stops it now. Safe to call more than once, and after it ended. */
|
|
202
|
+
stop(): void;
|
|
203
|
+
/**
|
|
204
|
+
* Settles once the preview is over — played to its end, or `stop()` called. Rejects only when the file
|
|
205
|
+
* could not be downloaded or decoded (a `stop()` before that resolves it instead).
|
|
206
|
+
*/
|
|
207
|
+
readonly done: Promise<void>;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Plays one ringtone briefly, the way the softphone's Ajustes does — same sound, level, loop points and
|
|
211
|
+
* length. For a host's own ringtone picker where no softphone is involved, such as an organization-default
|
|
212
|
+
* setting (custom-ringtone.md §4.7): the built-in "Clásico" (`url: null`) is generated in code, so there is
|
|
213
|
+
* no file such a page could play by itself.
|
|
214
|
+
*
|
|
215
|
+
* Call it from a user gesture (a click): that is when a browser lets audio start.
|
|
216
|
+
*/
|
|
217
|
+
declare function previewRingtone(ringtone: Pick<RingtoneOption, 'url'> & Partial<Pick<RingtoneOption, 'loop'>>, options?: {
|
|
218
|
+
readonly sinkId?: string | null;
|
|
219
|
+
}): RingtonePreview;
|
|
220
|
+
|
|
221
|
+
export { CallScreen, ContactsSource, ContactsTab, Dialpad, HistorySource, HistoryTab, MicPermissionGate, type RingtonePreview, type SoftphoneTheme, SoftphoneWidget, type SoftphoneWidgetProps, previewRingtone };
|
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,
|
|
4
|
-
export {
|
|
3
|
+
import { g as Contact, D as ContactsSource, G as HistorySource, a as Call, p as RingtoneOption } from '../call-C6YpT6uR.js';
|
|
4
|
+
export { Q as CallHistoryEntry, U as ContactsPage } from '../call-C6YpT6uR.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shaped like a Lucide icon (`size`, `className`, both optional — every SVG prop Lucide's own icons
|
|
@@ -196,4 +196,26 @@ declare function HistoryTab({ source }: Readonly<{
|
|
|
196
196
|
source: HistorySource;
|
|
197
197
|
}>): react.JSX.Element;
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
/** A running preview. */
|
|
200
|
+
interface RingtonePreview {
|
|
201
|
+
/** Stops it now. Safe to call more than once, and after it ended. */
|
|
202
|
+
stop(): void;
|
|
203
|
+
/**
|
|
204
|
+
* Settles once the preview is over — played to its end, or `stop()` called. Rejects only when the file
|
|
205
|
+
* could not be downloaded or decoded (a `stop()` before that resolves it instead).
|
|
206
|
+
*/
|
|
207
|
+
readonly done: Promise<void>;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Plays one ringtone briefly, the way the softphone's Ajustes does — same sound, level, loop points and
|
|
211
|
+
* length. For a host's own ringtone picker where no softphone is involved, such as an organization-default
|
|
212
|
+
* setting (custom-ringtone.md §4.7): the built-in "Clásico" (`url: null`) is generated in code, so there is
|
|
213
|
+
* no file such a page could play by itself.
|
|
214
|
+
*
|
|
215
|
+
* Call it from a user gesture (a click): that is when a browser lets audio start.
|
|
216
|
+
*/
|
|
217
|
+
declare function previewRingtone(ringtone: Pick<RingtoneOption, 'url'> & Partial<Pick<RingtoneOption, 'loop'>>, options?: {
|
|
218
|
+
readonly sinkId?: string | null;
|
|
219
|
+
}): RingtonePreview;
|
|
220
|
+
|
|
221
|
+
export { CallScreen, ContactsSource, ContactsTab, Dialpad, HistorySource, HistoryTab, MicPermissionGate, type RingtonePreview, type SoftphoneTheme, SoftphoneWidget, type SoftphoneWidgetProps, previewRingtone };
|