@arsedizioni/ars-utils 21.2.342 → 21.2.346

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.
@@ -2195,7 +2195,8 @@ class ClipperService {
2195
2195
  this.broadcastInitialized = false;
2196
2196
  this._serviceUri = '';
2197
2197
  this._flags = ClipperServiceFlags.None;
2198
- this.loggedIn = signal(sessionStorage.getItem("clipper_oauth_token") !== null, ...(ngDevMode ? [{ debugName: "loggedIn" }] : /* istanbul ignore next */ []));
2198
+ this._loggedIn = signal(sessionStorage.getItem("clipper_oauth_token") !== null, ...(ngDevMode ? [{ debugName: "_loggedIn" }] : /* istanbul ignore next */ []));
2199
+ this.loggedIn = this._loggedIn.asReadonly();
2199
2200
  this.loggingIn = signal(false, ...(ngDevMode ? [{ debugName: "loggingIn" }] : /* istanbul ignore next */ []));
2200
2201
  this.snapshot = signal(undefined, ...(ngDevMode ? [{ debugName: "snapshot" }] : /* istanbul ignore next */ []));
2201
2202
  this.supportsRS = signal(false, ...(ngDevMode ? [{ debugName: "supportsRS" }] : /* istanbul ignore next */ []));
@@ -2440,7 +2441,7 @@ class ClipperService {
2440
2441
  completeLogin(result) {
2441
2442
  // Update context info
2442
2443
  this.updateContext(result);
2443
- this.loggedIn.set(!result.context?.isTemporary);
2444
+ this._loggedIn.set(!result.context?.isTemporary);
2444
2445
  this.loggingIn.set(false);
2445
2446
  // Initialize channels
2446
2447
  this.initializeChannels();
@@ -2484,7 +2485,7 @@ class ClipperService {
2484
2485
  // Clear login info
2485
2486
  this._loginInfo = undefined;
2486
2487
  // Logged out
2487
- this.loggedIn.set(false);
2488
+ this._loggedIn.set(false);
2488
2489
  // Reset channels
2489
2490
  this.availableChannels.set([]);
2490
2491
  // Notify