solid-logic 4.0.8-test.0 → 5.0.0

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.
@@ -5704,6 +5704,25 @@ if (typeof _session.addEventListener === 'function') {
5704
5704
  });
5705
5705
  }
5706
5706
  const authSession = Object.assign(_session, { events });
5707
+ // Legacy `info` compatibility shape.
5708
+ // The uvdsl session stores state on `webId_`/`isActive_` and exposes them via
5709
+ // `webId`/`isActive` getters, but legacy consumers (e.g. solid-ui's
5710
+ // `loginStatusBox` widget, `SolidAuthnLogic.currentUser()`'s fallback path)
5711
+ // read `authSession.info.webId` / `authSession.info.isLoggedIn`. Expose those
5712
+ // as a derived getter so legacy login/logout UI renders the correct state
5713
+ // (logout button instead of a mislabelled login button).
5714
+ Object.defineProperty(authSession, 'info', {
5715
+ enumerable: true,
5716
+ configurable: true,
5717
+ get() {
5718
+ const sessionAny = _session;
5719
+ const isActive = sessionAny.isActive === true || Boolean(sessionAny.webId);
5720
+ return {
5721
+ webId: sessionAny.webId,
5722
+ isLoggedIn: isActive
5723
+ };
5724
+ }
5725
+ });
5707
5726
 
5708
5727
  // EXTERNAL MODULE: external "$rdf"
5709
5728
  var external_$rdf_ = __webpack_require__(264);