@arsedizioni/ars-utils 22.0.37 → 22.0.40

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.
@@ -2691,13 +2691,6 @@ class ClipperLoginService {
2691
2691
  return of([]);
2692
2692
  }));
2693
2693
  }
2694
- /**
2695
- * Clears all session-storage authentication keys and resets the login state.
2696
- * @param clearOAuthToken - When `true`, the OAuth bearer token is also removed.
2697
- */
2698
- clear(clearOAuthToken = false) {
2699
- this.core.clear(clearOAuthToken);
2700
- }
2701
2694
  /**
2702
2695
  * Requests a new one-time password for the given repository.
2703
2696
  * @param id - The repository ID for which the OTP should be generated.
@@ -2706,6 +2699,32 @@ class ClipperLoginService {
2706
2699
  newOTP(id) {
2707
2700
  return this.httpClient.get(this.core.serviceUri + '/otp/new/?id=' + id);
2708
2701
  }
2702
+ ////
2703
+ // CONTEXT (re-published from ClipperCoreService for consumer convenience)
2704
+ ////
2705
+ /**
2706
+ * Persists the current login context to `localStorage`.
2707
+ * Delegates to `ClipperCoreService.storeContext()`.
2708
+ */
2709
+ storeContext() {
2710
+ this.core.storeContext();
2711
+ }
2712
+ /**
2713
+ * Updates the stored login context with the values from a fresh login result.
2714
+ * Delegates to `ClipperCoreService.updateContext()`.
2715
+ * @param result - The login result containing the new user context and channel settings.
2716
+ */
2717
+ updateContext(result) {
2718
+ this.core.updateContext(result);
2719
+ }
2720
+ /**
2721
+ * Clears all session-storage authentication keys and resets the login state.
2722
+ * Delegates to `ClipperCoreService.clear()`.
2723
+ * @param clearOAuthToken - When `true`, the OAuth bearer token is also removed.
2724
+ */
2725
+ clear(clearOAuthToken = false) {
2726
+ this.core.clear(clearOAuthToken);
2727
+ }
2709
2728
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: ClipperLoginService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
2710
2729
  static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.1", ngImport: i0, type: ClipperLoginService }); }
2711
2730
  }
@@ -3776,5 +3795,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
3776
3795
  * Generated bundle index. Do not edit.
3777
3796
  */
3778
3797
 
3779
- export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthInterceptor, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors };
3798
+ export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthInterceptor, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperCoreService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors };
3780
3799
  //# sourceMappingURL=arsedizioni-ars-utils-clipper.common.mjs.map