@signalwire/js 4.0.0-dev-20261012192336 → 4.0.0-dev-20261125185248
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/browser.mjs +12 -11
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +12 -11
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +9 -12
- package/dist/index.mjs.map +1 -1
- package/dist/operators/index.cjs +1 -1
- package/dist/operators/index.mjs +1 -1
- package/dist/{operators-IoitK-As.cjs → operators-B5uem8qT.cjs} +11 -1
- package/dist/operators-B5uem8qT.cjs.map +1 -0
- package/dist/{operators-CTNnvDcG.mjs → operators-COq9Xztd.mjs} +6 -2
- package/dist/operators-COq9Xztd.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/operators-CTNnvDcG.mjs.map +0 -1
- package/dist/operators-IoitK-As.cjs.map +0 -1
package/dist/browser.mjs
CHANGED
|
@@ -9108,6 +9108,10 @@ const MEDIA_ACCESS_DENIAL_NAMES = [
|
|
|
9108
9108
|
];
|
|
9109
9109
|
/** Error names browsers use when the capture hardware is already held exclusively. */
|
|
9110
9110
|
const MEDIA_DEVICE_IN_USE_NAMES = ["NotReadableError", "TrackStartError"];
|
|
9111
|
+
const INACTIVE_MEDIA_DIRECTIONS = Object.freeze({
|
|
9112
|
+
audio: "inactive",
|
|
9113
|
+
video: "inactive"
|
|
9114
|
+
});
|
|
9111
9115
|
/** Default polling interval for RTCPeerConnection.getStats() in milliseconds. */
|
|
9112
9116
|
const DEFAULT_STATS_POLLING_INTERVAL_MS = 1e3;
|
|
9113
9117
|
/** Number of initial samples used to build a baseline for spike detection. */
|
|
@@ -17080,10 +17084,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
17080
17084
|
});
|
|
17081
17085
|
}
|
|
17082
17086
|
get mediaDirections() {
|
|
17083
|
-
return this.transceiverController?.getMediaDirections() ?? this._remoteOfferMediaDirections ??
|
|
17084
|
-
audio: "inactive",
|
|
17085
|
-
video: "inactive"
|
|
17086
|
-
};
|
|
17087
|
+
return this.transceiverController?.getMediaDirections() ?? this._remoteOfferMediaDirections ?? INACTIVE_MEDIA_DIRECTIONS;
|
|
17087
17088
|
}
|
|
17088
17089
|
async _setRemoteDescription(params) {
|
|
17089
17090
|
if (!this.peerConnection) throw new DependencyError("RTCPeerConnection is not initialized");
|
|
@@ -17260,7 +17261,7 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
17260
17261
|
}
|
|
17261
17262
|
}
|
|
17262
17263
|
get mediaDirections() {
|
|
17263
|
-
return this.
|
|
17264
|
+
return this._rtcPeerConnectionsMap.get(this.webRtcCallSession.id)?.mediaDirections ?? INACTIVE_MEDIA_DIRECTIONS;
|
|
17264
17265
|
}
|
|
17265
17266
|
get rtcPeerConnections$() {
|
|
17266
17267
|
return this._rtcPeerConnections$.asObservable();
|
|
@@ -17718,7 +17719,7 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
17718
17719
|
if (rtcPeerConnController.isMainDevice) {
|
|
17719
17720
|
this._selfId$.next(memberId);
|
|
17720
17721
|
this._nodeId$.next(nodeId);
|
|
17721
|
-
this.attachManager.attach(this.buildAttachableCall(callId, nodeId ?? void 0));
|
|
17722
|
+
if (this._rtcPeerConnectionsMap.has(this.webRtcCallSession.id)) this.attachManager.attach(this.buildAttachableCall(callId, nodeId ?? void 0));
|
|
17722
17723
|
}
|
|
17723
17724
|
if (callId) this.webRtcCallSession.addCallId(callId);
|
|
17724
17725
|
logger$16.info("[WebRTCManager] Verto invite successful");
|
|
@@ -17894,7 +17895,7 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
17894
17895
|
this.emitMainSignalingStatus(rtcPeerConnectionController.id, "connecting");
|
|
17895
17896
|
await this.sendLocalDescription(vertoMessageRequest, rtcPeerConnectionController);
|
|
17896
17897
|
await rtcPeerConnectionController.updateAnswerStatus({ status: "sent" });
|
|
17897
|
-
await this.attachManager.attach(this.buildAttachableCall());
|
|
17898
|
+
if (this._rtcPeerConnectionsMap.has(this.webRtcCallSession.id)) await this.attachManager.attach(this.buildAttachableCall());
|
|
17898
17899
|
} catch (error) {
|
|
17899
17900
|
logger$16.error("[WebRTCManager] Error sending Verto answer:", error);
|
|
17900
17901
|
this.reportLegError(toError(error), rtcPeerConnectionController);
|
|
@@ -19665,7 +19666,7 @@ var WebRTCCall = class extends Destroyable {
|
|
|
19665
19666
|
get mediaDirections$() {
|
|
19666
19667
|
return this.deferEmission(this.vertoManager.mediaDirections$).pipe((0, import_cjs$11.takeUntil)(this._destroyed$));
|
|
19667
19668
|
}
|
|
19668
|
-
/** Current audio/video send/receive directions. */
|
|
19669
|
+
/** Current audio/video send/receive directions. Both are `'inactive'` once the call is destroyed. */
|
|
19669
19670
|
get mediaDirections() {
|
|
19670
19671
|
return this.vertoManager.mediaDirections;
|
|
19671
19672
|
}
|
|
@@ -23259,7 +23260,7 @@ var SignalWire = class extends Destroyable {
|
|
|
23259
23260
|
logger$1.warn("[SignalWire] Failed to initialize VisibilityController:", error);
|
|
23260
23261
|
}
|
|
23261
23262
|
try {
|
|
23262
|
-
this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-
|
|
23263
|
+
this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-20261125185248" });
|
|
23263
23264
|
} catch (error) {
|
|
23264
23265
|
logger$1.warn("[SignalWire] Failed to initialize DiagnosticsCollector:", error);
|
|
23265
23266
|
}
|
|
@@ -23814,7 +23815,7 @@ var StaticCredentialProvider = class {
|
|
|
23814
23815
|
/**
|
|
23815
23816
|
* Library version from package.json, injected at build time.
|
|
23816
23817
|
*/
|
|
23817
|
-
const version = "4.0.0-dev-
|
|
23818
|
+
const version = "4.0.0-dev-20261125185248";
|
|
23818
23819
|
/**
|
|
23819
23820
|
* Flag indicating the library has been loaded and is ready to use.
|
|
23820
23821
|
* For UMD builds: `window.SignalWire.ready`
|
|
@@ -23836,7 +23837,7 @@ const ready = true;
|
|
|
23836
23837
|
*/
|
|
23837
23838
|
const emitReadyEvent = () => {
|
|
23838
23839
|
if (typeof window !== "undefined") {
|
|
23839
|
-
const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-
|
|
23840
|
+
const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-20261125185248" } });
|
|
23840
23841
|
window.dispatchEvent(event);
|
|
23841
23842
|
}
|
|
23842
23843
|
};
|