@arsedizioni/ars-utils 22.0.39 → 22.0.41
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +27 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +5 -3
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +124 -108
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
|
@@ -2699,6 +2699,32 @@ class ClipperLoginService {
|
|
|
2699
2699
|
newOTP(id) {
|
|
2700
2700
|
return this.httpClient.get(this.core.serviceUri + '/otp/new/?id=' + id);
|
|
2701
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
|
+
}
|
|
2702
2728
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: ClipperLoginService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
2703
2729
|
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.1", ngImport: i0, type: ClipperLoginService }); }
|
|
2704
2730
|
}
|
|
@@ -3583,6 +3609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
3583
3609
|
*/
|
|
3584
3610
|
class ClipperService {
|
|
3585
3611
|
constructor() {
|
|
3612
|
+
this.core = inject(ClipperCoreService);
|
|
3586
3613
|
/** Authentication: login/logout, MFA, OTP. */
|
|
3587
3614
|
this.session = inject(ClipperLoginService);
|
|
3588
3615
|
/** Document search, references, export, working-documents bag and saved searches. */
|
|
@@ -3591,8 +3618,6 @@ class ClipperService {
|
|
|
3591
3618
|
this.account = inject(ClipperAccountService);
|
|
3592
3619
|
/** Archive folders and files. */
|
|
3593
3620
|
this.archive = inject(ClipperArchiveService);
|
|
3594
|
-
/** Core services and shared state. */
|
|
3595
|
-
this.core = inject(ClipperCoreService);
|
|
3596
3621
|
/** Calendar deadlines. */
|
|
3597
3622
|
this.calendar = inject(ClipperCalendarService);
|
|
3598
3623
|
/** Teams, contacts and shared notes. */
|