@signalwire/js 4.0.0-dev-20260303152249 → 4.0.0-dev-20260304162726
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 +20 -3
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +20 -3
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -12515,7 +12515,7 @@ var CallEventsManager = class extends Destroyable {
|
|
|
12515
12515
|
});
|
|
12516
12516
|
this.updateParticipants(sessionState.members);
|
|
12517
12517
|
this._self$.value?.capabilities.updateFromRaw(capabilities);
|
|
12518
|
-
this.updateLayouts();
|
|
12518
|
+
if (this._self$.value?.capabilities.setLayout) this.updateLayouts();
|
|
12519
12519
|
});
|
|
12520
12520
|
this.subscribeTo(this.memberUpdates$, (member) => {
|
|
12521
12521
|
logger$15.debug("[CallEventsManager] Handling member update event for member ID:", member);
|
|
@@ -13847,7 +13847,10 @@ function isVertoAttachMessage(value) {
|
|
|
13847
13847
|
return value.method === "verto.attach";
|
|
13848
13848
|
}
|
|
13849
13849
|
function isVertoAnswerInnerParams(value) {
|
|
13850
|
-
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.answer" && isObject(value.params) && hasProperty(value.params, "callID")
|
|
13850
|
+
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.answer" && isObject(value.params) && hasProperty(value.params, "callID");
|
|
13851
|
+
}
|
|
13852
|
+
function isVertoMediaInnerParams(value) {
|
|
13853
|
+
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.media" && isObject(value.params) && hasProperty(value.params, "callID") && hasProperty(value.params, "sdp");
|
|
13851
13854
|
}
|
|
13852
13855
|
function isVertoMediaParamsInnerParams(value) {
|
|
13853
13856
|
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.mediaParams" && isObject(value.params) && hasProperty(value.params, "mediaParams");
|
|
@@ -13957,6 +13960,14 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
13957
13960
|
].includes(connectionState)))));
|
|
13958
13961
|
}
|
|
13959
13962
|
initSubscriptions() {
|
|
13963
|
+
this.subscribeTo(this.vertoMedia$, (event) => {
|
|
13964
|
+
logger$10.debug("[WebRTCManager] Received Verto media event (early media SDP):", event);
|
|
13965
|
+
const { sdp, callID } = event;
|
|
13966
|
+
this._rtcPeerConnectionsMap.get(callID)?.updateAnswerStatus({
|
|
13967
|
+
status: "received",
|
|
13968
|
+
sdp
|
|
13969
|
+
});
|
|
13970
|
+
});
|
|
13960
13971
|
this.subscribeTo(this.vertoAnswer$, (event) => {
|
|
13961
13972
|
logger$10.debug("[WebRTCManager] Received Verto answer event:", event);
|
|
13962
13973
|
const { sdp } = event;
|
|
@@ -14001,6 +14012,9 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
14001
14012
|
get selfId() {
|
|
14002
14013
|
return this._selfId$.value;
|
|
14003
14014
|
}
|
|
14015
|
+
get vertoMedia$() {
|
|
14016
|
+
return this.webRtcCallSession.webrtcMessages$.pipe(filterAs(isVertoMediaInnerParams, "params"), (0, import_cjs$10.takeUntil)(this.destroyed$));
|
|
14017
|
+
}
|
|
14004
14018
|
get vertoAnswer$() {
|
|
14005
14019
|
return this.cachedObservable("vertoAnswer$", () => this.webRtcCallSession.webrtcMessages$.pipe(filterAs(isVertoAnswerInnerParams, "params"), (0, import_cjs$10.takeUntil)(this.destroyed$)));
|
|
14006
14020
|
}
|
|
@@ -14179,6 +14193,7 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
14179
14193
|
}
|
|
14180
14194
|
setupVertoByeHandler() {
|
|
14181
14195
|
this.subscribeTo(this.vertoBye$, () => {
|
|
14196
|
+
this._signalingStatus$.next("disconnected");
|
|
14182
14197
|
this.attachManager.detach(this.webRtcCallSession);
|
|
14183
14198
|
this.callSession?.destroy();
|
|
14184
14199
|
});
|
|
@@ -15590,12 +15605,14 @@ var ClientSessionManager = class extends Destroyable {
|
|
|
15590
15605
|
try {
|
|
15591
15606
|
const addressURI = getAddressSearchURI(options);
|
|
15592
15607
|
let address;
|
|
15593
|
-
|
|
15608
|
+
try {
|
|
15594
15609
|
if (!this._directory) throw new DependencyError("Directory not initialized");
|
|
15595
15610
|
const addressId = await this._directory.findAddressIdByURI(addressURI);
|
|
15596
15611
|
if (!addressId) throw new DependencyError(`Address name: ${addressURI} not found`);
|
|
15597
15612
|
address = this._directory.get(addressId);
|
|
15598
15613
|
if (!address) throw new DependencyError(`Address ID: ${addressId} not found`);
|
|
15614
|
+
} catch (error) {
|
|
15615
|
+
logger$6.warn(`[Session] Directory lookup failed for ${addressURI}, proceeding with raw URI`);
|
|
15599
15616
|
}
|
|
15600
15617
|
const callSession = this.callFactory.createCall(address, { ...options });
|
|
15601
15618
|
callSession.status$.pipe((0, import_cjs$5.filter)((status) => status === "destroyed"), (0, import_cjs$5.take)(1)).subscribe(() => {
|