@arsedizioni/ars-utils 22.5.14 → 22.5.15
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 +22 -6
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +5 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +8 -3
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +12 -0
|
@@ -1004,6 +1004,11 @@ declare class ClipperLoginService {
|
|
|
1004
1004
|
private readonly core;
|
|
1005
1005
|
/** Whether {@link initialize} has already run. */
|
|
1006
1006
|
private initialized;
|
|
1007
|
+
/**
|
|
1008
|
+
* Gets the signed-in account.
|
|
1009
|
+
* @returns The current {@link ClipperUserInfo}, or `undefined` when there is no session.
|
|
1010
|
+
*/
|
|
1011
|
+
get user(): ClipperUserInfo | undefined;
|
|
1007
1012
|
/**
|
|
1008
1013
|
* Validates a context that survived a page refresh before trusting it.
|
|
1009
1014
|
*
|
|
@@ -1125,6 +1130,8 @@ declare class ClipperService {
|
|
|
1125
1130
|
get flags(): ClipperServiceFlags;
|
|
1126
1131
|
/** @returns The current login context, or `undefined` if not authenticated. */
|
|
1127
1132
|
get loginInfo(): ClipperLoginInfo | undefined;
|
|
1133
|
+
/** @returns The signed-in account, or `undefined` when there is no session. */
|
|
1134
|
+
get user(): ClipperUserInfo | undefined;
|
|
1128
1135
|
/** @returns A read-only signal indicating whether the user is logged in. */
|
|
1129
1136
|
get loggedIn(): Signal<boolean>;
|
|
1130
1137
|
/** @returns A signal indicating whether a login is in progress. */
|
|
@@ -1199,6 +1206,11 @@ declare class ClipperCoreService {
|
|
|
1199
1206
|
* @returns The current login context, or `undefined` if not authenticated.
|
|
1200
1207
|
*/
|
|
1201
1208
|
get loginInfo(): ClipperLoginInfo | undefined;
|
|
1209
|
+
/**
|
|
1210
|
+
* Gets the signed-in account.
|
|
1211
|
+
* @returns The current {@link ClipperUserInfo}, or `undefined` when there is no session.
|
|
1212
|
+
*/
|
|
1213
|
+
get user(): ClipperUserInfo | undefined;
|
|
1202
1214
|
/**
|
|
1203
1215
|
* Seeded from the stored context, which is the only trace a session leaves on this device: the
|
|
1204
1216
|
* auth cookie is HttpOnly and unreadable from here. It means "there WAS a session", never "there
|