@dialstack/sdk-react 3.10.0 → 3.11.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-activity.cjs +2 -0
- package/dist/call-activity.cjs.map +1 -0
- package/dist/call-activity.d.cts +61 -0
- package/dist/call-activity.d.ts +61 -0
- package/dist/call-activity.mjs +2 -0
- package/dist/call-activity.mjs.map +1 -0
- package/dist/dial-plan.cjs.map +1 -1
- package/dist/dial-plan.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/onboarding.cjs +1 -1
- package/dist/onboarding.cjs.map +1 -1
- package/dist/onboarding.mjs +1 -1
- package/dist/onboarding.mjs.map +1 -1
- package/dist/softphone.cjs +1 -1
- package/dist/softphone.cjs.map +1 -1
- package/dist/softphone.d.cts +11 -9
- package/dist/softphone.d.ts +11 -9
- package/dist/softphone.mjs +1 -1
- package/dist/softphone.mjs.map +1 -1
- package/dist/voicemails.cjs +1 -1
- package/dist/voicemails.cjs.map +1 -1
- package/dist/voicemails.d.cts +22 -3
- package/dist/voicemails.d.ts +22 -3
- package/dist/voicemails.mjs +1 -1
- package/dist/voicemails.mjs.map +1 -1
- package/package.json +16 -3
package/dist/softphone.d.cts
CHANGED
|
@@ -63,8 +63,10 @@ interface UseCallActions extends CallActions {
|
|
|
63
63
|
* Blind-transfer the active call to `destination`. Returns `true` when the
|
|
64
64
|
* transfer was *initiated* (so the UI can close its transfer overlay), `false`
|
|
65
65
|
* on empty input or a synchronous failure routed to `onError`. `true` means
|
|
66
|
-
* initiated, not confirmed
|
|
67
|
-
*
|
|
66
|
+
* initiated, not confirmed: once the far end accepts, the call ends
|
|
67
|
+
* ('transferred') as on a deskphone, so a target that is then busy or doesn't
|
|
68
|
+
* answer is not reported. A refusal arrives as a `transfer_failed` `onError`
|
|
69
|
+
* and leaves the call up.
|
|
68
70
|
*/
|
|
69
71
|
transfer: (destination: string) => boolean;
|
|
70
72
|
/**
|
|
@@ -383,19 +385,19 @@ interface UseDialInput {
|
|
|
383
385
|
declare function useDialInput(setValue: (value: string) => void): UseDialInput;
|
|
384
386
|
|
|
385
387
|
/**
|
|
386
|
-
*
|
|
388
|
+
* The design tokens shared by every call UI: the softphone and the components
|
|
389
|
+
* that show and control calls.
|
|
387
390
|
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* source of truth — that is what makes the two look identical by default.
|
|
391
|
+
* Framework-agnostic (no DOM, no React Native), so the web UIs consume these as
|
|
392
|
+
* CSS values and the React Native ones in a StyleSheet, and the two look the
|
|
393
|
+
* same by default.
|
|
392
394
|
*
|
|
393
395
|
* Colors resolve from the same `AppearanceOptions` surface the rest of the SDK
|
|
394
396
|
* uses (theme + variables), so theming through `DialstackComponentsProvider` /
|
|
395
397
|
* the `appearance` prop flows through identically on both platforms.
|
|
396
398
|
*/
|
|
397
399
|
|
|
398
|
-
interface
|
|
400
|
+
interface CallPalette {
|
|
399
401
|
background: string;
|
|
400
402
|
surface: string;
|
|
401
403
|
surfaceActive: string;
|
|
@@ -484,7 +486,7 @@ interface SoftphoneContextBase {
|
|
|
484
486
|
t: (key: keyof Locale$1['softphone']) => string;
|
|
485
487
|
displayNumber: (value: string) => string;
|
|
486
488
|
/** Resolved theme palette — computed on both platforms so mobile themes like web. */
|
|
487
|
-
palette:
|
|
489
|
+
palette: CallPalette;
|
|
488
490
|
/**
|
|
489
491
|
* The host's {@link PeerInfo} for a call, from `resolvePeer`, or null while it
|
|
490
492
|
* resolves, when the host has none, or when no resolver is set. The built-in
|
package/dist/softphone.d.ts
CHANGED
|
@@ -63,8 +63,10 @@ interface UseCallActions extends CallActions {
|
|
|
63
63
|
* Blind-transfer the active call to `destination`. Returns `true` when the
|
|
64
64
|
* transfer was *initiated* (so the UI can close its transfer overlay), `false`
|
|
65
65
|
* on empty input or a synchronous failure routed to `onError`. `true` means
|
|
66
|
-
* initiated, not confirmed
|
|
67
|
-
*
|
|
66
|
+
* initiated, not confirmed: once the far end accepts, the call ends
|
|
67
|
+
* ('transferred') as on a deskphone, so a target that is then busy or doesn't
|
|
68
|
+
* answer is not reported. A refusal arrives as a `transfer_failed` `onError`
|
|
69
|
+
* and leaves the call up.
|
|
68
70
|
*/
|
|
69
71
|
transfer: (destination: string) => boolean;
|
|
70
72
|
/**
|
|
@@ -383,19 +385,19 @@ interface UseDialInput {
|
|
|
383
385
|
declare function useDialInput(setValue: (value: string) => void): UseDialInput;
|
|
384
386
|
|
|
385
387
|
/**
|
|
386
|
-
*
|
|
388
|
+
* The design tokens shared by every call UI: the softphone and the components
|
|
389
|
+
* that show and control calls.
|
|
387
390
|
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* source of truth — that is what makes the two look identical by default.
|
|
391
|
+
* Framework-agnostic (no DOM, no React Native), so the web UIs consume these as
|
|
392
|
+
* CSS values and the React Native ones in a StyleSheet, and the two look the
|
|
393
|
+
* same by default.
|
|
392
394
|
*
|
|
393
395
|
* Colors resolve from the same `AppearanceOptions` surface the rest of the SDK
|
|
394
396
|
* uses (theme + variables), so theming through `DialstackComponentsProvider` /
|
|
395
397
|
* the `appearance` prop flows through identically on both platforms.
|
|
396
398
|
*/
|
|
397
399
|
|
|
398
|
-
interface
|
|
400
|
+
interface CallPalette {
|
|
399
401
|
background: string;
|
|
400
402
|
surface: string;
|
|
401
403
|
surfaceActive: string;
|
|
@@ -484,7 +486,7 @@ interface SoftphoneContextBase {
|
|
|
484
486
|
t: (key: keyof Locale$1['softphone']) => string;
|
|
485
487
|
displayNumber: (value: string) => string;
|
|
486
488
|
/** Resolved theme palette — computed on both platforms so mobile themes like web. */
|
|
487
|
-
palette:
|
|
489
|
+
palette: CallPalette;
|
|
488
490
|
/**
|
|
489
491
|
* The host's {@link PeerInfo} for a call, from `resolvePeer`, or null while it
|
|
490
492
|
* resolves, when the host has none, or when no resolver is set. The built-in
|