@arsedizioni/ars-utils 20.4.3 → 20.4.5
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/clipper.ui/index.d.ts +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +9 -4
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +9 -5
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
package/clipper.ui/index.d.ts
CHANGED
|
@@ -1033,7 +1033,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
1033
1033
|
private changeDetector;
|
|
1034
1034
|
private clipperService;
|
|
1035
1035
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1036
|
-
readonly selectionSource: _angular_core.InputSignal<"
|
|
1036
|
+
readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
|
|
1037
1037
|
protected selection: () => ClipperDocumentInfo[];
|
|
1038
1038
|
readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
|
|
1039
1039
|
readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
|
|
@@ -2058,8 +2058,8 @@ class ClipperService {
|
|
|
2058
2058
|
*/
|
|
2059
2059
|
initialize(serviceUri, appUri, flags = ClipperServiceFlags.None) {
|
|
2060
2060
|
// Create unique client id
|
|
2061
|
-
if (!
|
|
2062
|
-
|
|
2061
|
+
if (!sessionStorage.getItem('clipper_client_id')) {
|
|
2062
|
+
sessionStorage.setItem('clipper_client_id', SystemUtils.generateUUID());
|
|
2063
2063
|
}
|
|
2064
2064
|
// Initialize
|
|
2065
2065
|
this._serviceUri = serviceUri;
|
|
@@ -2207,7 +2207,6 @@ class ClipperService {
|
|
|
2207
2207
|
login(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined) {
|
|
2208
2208
|
return this.httpClient
|
|
2209
2209
|
.post(this._serviceUri + '/login2', {
|
|
2210
|
-
clientId: localStorage.getItem("clipper_client_id"),
|
|
2211
2210
|
user: oauth ? null : email,
|
|
2212
2211
|
password: oauth ? null : password,
|
|
2213
2212
|
remember: remember,
|
|
@@ -3056,7 +3055,13 @@ class ClipperAuthInterceptor {
|
|
|
3056
3055
|
}
|
|
3057
3056
|
intercept(request, next) {
|
|
3058
3057
|
if (request.url.startsWith(this.clipperService.serviceUri)) {
|
|
3059
|
-
request = request.clone({
|
|
3058
|
+
request = request.clone({
|
|
3059
|
+
withCredentials: true,
|
|
3060
|
+
setHeaders: {
|
|
3061
|
+
'ngsw-bypass': 'ngsw-bypass',
|
|
3062
|
+
'X-Client-Id': sessionStorage.getItem('clipper_client_id') ?? ''
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3060
3065
|
return next.handle(request)
|
|
3061
3066
|
.pipe(catchError$1(error => {
|
|
3062
3067
|
if (error.url.startsWith(this.clipperService.serviceUri)) {
|