@signalwire/js 4.0.0-dev-20260311175452 → 4.0.0-dev-20260311183522
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 +19 -10
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +19 -10
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +19 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +19 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -12051,7 +12051,13 @@ var Participant = class extends Destroyable {
|
|
|
12051
12051
|
}
|
|
12052
12052
|
/** Removes this participant from the call. */
|
|
12053
12053
|
async remove() {
|
|
12054
|
-
|
|
12054
|
+
const state = this._state$.value;
|
|
12055
|
+
const target = {
|
|
12056
|
+
member_id: this.id,
|
|
12057
|
+
call_id: state.call_id ?? "",
|
|
12058
|
+
node_id: state.node_id ?? ""
|
|
12059
|
+
};
|
|
12060
|
+
await this.executeMethod(target, "call.member.remove", {});
|
|
12055
12061
|
}
|
|
12056
12062
|
/** Ends the call for this participant. */
|
|
12057
12063
|
async end() {
|
|
@@ -14705,7 +14711,6 @@ var WebRTCCall = class extends Destroyable {
|
|
|
14705
14711
|
async toggleLock() {
|
|
14706
14712
|
const method = this.locked ? "call.unlock" : "call.lock";
|
|
14707
14713
|
await this.executeMethod(this.selfId ?? "", method, {});
|
|
14708
|
-
throw new UnimplementedError();
|
|
14709
14714
|
}
|
|
14710
14715
|
async toggleHold() {
|
|
14711
14716
|
if (this._holdState) await this.vertoManager.unhold();
|
|
@@ -14747,18 +14752,22 @@ var WebRTCCall = class extends Destroyable {
|
|
|
14747
14752
|
}
|
|
14748
14753
|
}
|
|
14749
14754
|
buildMethodParams(target, args) {
|
|
14750
|
-
const
|
|
14751
|
-
node_id: this.nodeId,
|
|
14752
|
-
call_id: this.id
|
|
14755
|
+
const self = {
|
|
14756
|
+
node_id: this.nodeId ?? "",
|
|
14757
|
+
call_id: this.id,
|
|
14758
|
+
member_id: this.vertoManager.selfId ?? ""
|
|
14759
|
+
};
|
|
14760
|
+
if (typeof target === "object") return {
|
|
14761
|
+
...args,
|
|
14762
|
+
self,
|
|
14763
|
+
targets: [target]
|
|
14753
14764
|
};
|
|
14754
14765
|
return {
|
|
14755
14766
|
...args,
|
|
14756
|
-
self
|
|
14757
|
-
...reference,
|
|
14758
|
-
member_id: this.vertoManager.selfId
|
|
14759
|
-
},
|
|
14767
|
+
self,
|
|
14760
14768
|
target: {
|
|
14761
|
-
|
|
14769
|
+
node_id: this.nodeId ?? "",
|
|
14770
|
+
call_id: this.id,
|
|
14762
14771
|
member_id: target
|
|
14763
14772
|
}
|
|
14764
14773
|
};
|