@cloudflare/realtimekit 1.5.2-staging.2 → 1.5.2-staging.3

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/index.es.js CHANGED
@@ -26687,7 +26687,8 @@ class SS extends Dt {
26687
26687
  f(this, os, e);
26688
26688
  }
26689
26689
  get supportsConnectedMeetings() {
26690
- return a(this, os).getValue("self").id !== "";
26690
+ const e = a(this, os).getValue("self").permissions.connectedMeetings;
26691
+ return e ? e.canAlterConnectedMeetings || e.canSwitchConnectedMeetings || e.canSwitchToParentMeeting : !1;
26691
26692
  }
26692
26693
  get isActive() {
26693
26694
  return this.meetings.length !== 0;
@@ -26695,7 +26696,7 @@ class SS extends Dt {
26695
26696
  validateConnectedMeetingsAction() {
26696
26697
  if (!this.supportsConnectedMeetings)
26697
26698
  throw new Error(`You are not allowed to perform this action.
26698
- Please connect with our support team to enable connected meetings.`);
26699
+ Please enable connected meetings permissions in your preset.`);
26699
26700
  }
26700
26701
  getConnectedMeetings() {
26701
26702
  return u(this, null, function* () {
@@ -27416,7 +27417,7 @@ let Br = (fg = class {
27416
27417
  video: !0
27417
27418
  };
27418
27419
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (c = e.overrides) != null ? c : {}), n.setValue("env", pC({ baseURI: i.baseURI })), n.setValue("defaults", d), n.setValue("onError", e.onError || (() => {
27419
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "1.5.2-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new KD()), n;
27420
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "1.5.2-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new KD()), n;
27420
27421
  }
27421
27422
  join() {
27422
27423
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -28258,13 +28258,14 @@ var AO = /* @__PURE__ */ function() {
28258
28258
  return r = C(this, t, [n]), r.meetings = [], r.parentMeeting = null, Object.defineProperty(r, Zr, { writable: !0, value: void 0 }), c(r, Zr)[Zr] = e, r;
28259
28259
  }
28260
28260
  return R(t, s), S(t, [{ key: "supportsConnectedMeetings", get: function() {
28261
- return c(this, Zr)[Zr].getValue("self").id !== "";
28261
+ var r = c(this, Zr)[Zr].getValue("self").permissions.connectedMeetings;
28262
+ return r ? r.canAlterConnectedMeetings || r.canSwitchConnectedMeetings || r.canSwitchToParentMeeting : !1;
28262
28263
  } }, { key: "isActive", get: function() {
28263
28264
  return this.meetings.length !== 0;
28264
28265
  } }, { key: "validateConnectedMeetingsAction", value: function() {
28265
28266
  if (!this.supportsConnectedMeetings)
28266
28267
  throw new Error(`You are not allowed to perform this action.
28267
- Please connect with our support team to enable connected meetings.`);
28268
+ Please enable connected meetings permissions in your preset.`);
28268
28269
  } }, {
28269
28270
  key: "getConnectedMeetings",
28270
28271
  value: function() {