@alfresco/adf-core 8.4.0-19573246171 → 8.4.0-19581312228

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.
@@ -15,5 +15,4 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { CanActivateFn } from '@angular/router';
18
- export declare const LegacyAuthGuard: CanActivateFn;
19
18
  export declare const AuthGuard: CanActivateFn;
@@ -30,16 +30,6 @@ export declare function oauthStorageFactory(): OAuthStorage;
30
30
  * @returns Angular providers
31
31
  */
32
32
  export declare function provideCoreAuth(config?: AuthModuleConfig): (Provider | EnvironmentProviders)[];
33
- /**
34
- * Provides the necessary Angular providers for BFF (Backend For Frontend) authentication.
35
- *
36
- * This function returns an array of providers required to set up authentication using the BffAuthService.
37
- * It includes HTTP client, router configuration with BFF-specific routes, and maps authentication services
38
- * to the BffAuthService implementation.
39
- *
40
- * @returns An array of Angular providers for BFF authentication.
41
- */
42
- export declare function provideBffAuth(): (Provider | EnvironmentProviders)[];
43
33
  /** @deprecated use `provideCoreAuth()` provider api instead */
44
34
  export declare class AuthModule {
45
35
  static forRoot(config?: AuthModuleConfig): ModuleWithProviders<AuthModule>;
@@ -27,8 +27,6 @@ export * from './services/identity-group.service';
27
27
  export * from './services/jwt-helper.service';
28
28
  export * from './services/oauth2.service';
29
29
  export * from './services/user-access.service';
30
- export * from './services/bff/bff-auth.service';
31
- export * from './services/bff/bff-auth.guard';
32
30
  export * from './basic-auth/basic-alfresco-auth.service';
33
31
  export * from './basic-auth/process-auth';
34
32
  export * from './basic-auth/content-auth';
@@ -1,12 +1,7 @@
1
1
  import { JwtHelperService } from './jwt-helper.service';
2
2
  import { AppConfigService } from '../../app-config/app-config.service';
3
3
  import * as i0 from "@angular/core";
4
- export interface IUserAccessService {
5
- fetchUserAccess(): void;
6
- hasGlobalAccess(rolesToCheck: string[]): boolean;
7
- hasApplicationAccess(appName: string, rolesToCheck: string[]): boolean;
8
- }
9
- export declare class UserAccessService implements IUserAccessService {
4
+ export declare class UserAccessService {
10
5
  private jwtHelperService;
11
6
  private appConfigService;
12
7
  private globalAccess;
@@ -28,21 +28,9 @@
28
28
  .adf-property-field {
29
29
  width: 100%;
30
30
 
31
- #{ms.$mat-form-field-underline} {
32
- display: none;
33
- }
34
-
35
31
  #{ms.$mat-input-element} {
36
32
  text-overflow: ellipsis;
37
33
  line-height: 20px;
38
-
39
- &.adf-property-value-editable {
40
- padding: 6px 0 6px 12px;
41
-
42
- &:disabled {
43
- color: var(--adf-metadata-property-panel-label-color);
44
- }
45
- }
46
34
  }
47
35
 
48
36
  .adf-card-view__key-value-pairs__row {
@@ -51,33 +39,6 @@
51
39
  padding-left: 12px;
52
40
  }
53
41
  }
54
-
55
- #{ms.$mat-form-text-field-infix} {
56
- border-top-width: 0;
57
- }
58
-
59
- #{ms.$mat-form-field-flex} {
60
- padding-top: 0;
61
- }
62
-
63
- #{ms.$mat-form-field-wrapper} {
64
- background-color: inherit;
65
- padding-bottom: 0;
66
- padding-left: 0;
67
- padding-right: 0;
68
- }
69
-
70
- #{ms.$mat-form-field-label} {
71
- padding: 0;
72
- justify-content: center;
73
- display: flex;
74
- flex-direction: column;
75
- height: 20px;
76
-
77
- &.adf-property-field-label--empty {
78
- transform: translateY(-1.3437em) scale(1);
79
- }
80
- }
81
42
  }
82
43
 
83
44
  .adf-card-view-textitem {
@@ -86,41 +47,4 @@
86
47
  }
87
48
  }
88
49
  }
89
-
90
- .adf-property-value {
91
- &.adf-property-value-editable {
92
- background-color: var(--adf-metadata-buttons-background-color);
93
- box-sizing: border-box;
94
- border-radius: 6px;
95
- height: 32px;
96
- padding-left: 10px;
97
-
98
- #{ms.$mat-input-element} {
99
- color: var(--adf-metadata-action-button-clear-color);
100
- padding: 5px 0 6px 12px;
101
- margin: 5px 0 0;
102
- }
103
- }
104
-
105
- &.adf-property-readonly-value {
106
- color: var(--adf-metadata-property-panel-label-color);
107
-
108
- #{ms.$mat-input-element} {
109
- color: var(--adf-metadata-property-panel-label-color);
110
- }
111
- }
112
-
113
- &-has-error {
114
- border: 1px solid var(--theme-warn-color);
115
- }
116
-
117
- &-input {
118
- background-color: var(--adf-metadata-buttons-background-color);
119
- box-sizing: border-box;
120
- border-radius: 6px;
121
- padding: 6px 0;
122
- margin: 0;
123
- width: 100%;
124
- }
125
- }
126
50
  }
@@ -94,11 +94,4 @@
94
94
  text-overflow: ellipsis;
95
95
  white-space: nowrap;
96
96
  }
97
-
98
- #{ms.$mat-line-ripple} {
99
- &::before,
100
- &::after {
101
- display: none;
102
- }
103
- }
104
97
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "8.4.0-19573246171",
4
+ "version": "8.4.0-19581312228",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -63,8 +63,8 @@
63
63
  "@angular/router": ">=16.0.0",
64
64
  "@mat-datetimepicker/core": ">=12.0.1",
65
65
  "@ngx-translate/core": ">=16.0.0",
66
- "@alfresco/js-api": ">=9.4.0-19573246171",
67
- "@alfresco/adf-extensions": ">=8.4.0-19573246171",
66
+ "@alfresco/js-api": ">=9.4.0-19581312228",
67
+ "@alfresco/adf-extensions": ">=8.4.0-19581312228",
68
68
  "minimatch": ">=10.0.0",
69
69
  "pdfjs-dist": ">=3.3.122"
70
70
  },
@@ -1,18 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { HttpInterceptorFn } from '@angular/common/http';
18
- export declare const bffAuthErrorInterceptor: HttpInterceptorFn;
@@ -1,26 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { CanActivateFn } from '@angular/router';
18
- /**
19
- * Guard function for route activation that checks user authentication via BffAuthService.
20
- * If the user is unauthenticated, it handles redirection and triggers login.
21
- *
22
- * @param _route - The activated route snapshot (unused).
23
- * @param state - The router state snapshot containing the target URL.
24
- * @returns An Observable emitting `true` if the user is authenticated, or `false` otherwise.
25
- */
26
- export declare const BffAuthGuard: CanActivateFn;
@@ -1,68 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { HttpClient, HttpHeaders } from '@angular/common/http';
18
- import { BehaviorSubject, Observable } from 'rxjs';
19
- import { AuthenticationServiceInterface } from '../../interfaces/authentication-service.interface';
20
- import { EventEmitter } from 'eventemitter3';
21
- import * as i0 from "@angular/core";
22
- export interface BffUserInfo {
23
- sub: string;
24
- email: string;
25
- hxp_account: string;
26
- name: string;
27
- email_verified: boolean;
28
- preferred_username: string;
29
- given_name: string;
30
- family_name: string;
31
- roles: string[];
32
- appKey: string;
33
- }
34
- export interface BffUserResponse {
35
- isAuthenticated: boolean;
36
- user: BffUserInfo;
37
- }
38
- type EventEmitterInstance = InstanceType<typeof EventEmitter>;
39
- export declare class BffAuthService implements AuthenticationServiceInterface {
40
- private http;
41
- isAuthenticated: boolean;
42
- username: string;
43
- userInfo: BffUserResponse;
44
- onError: BehaviorSubject<any>;
45
- onLogin: BehaviorSubject<boolean>;
46
- onLogout: BehaviorSubject<boolean>;
47
- on: EventEmitterInstance['on'];
48
- off: EventEmitterInstance['off'];
49
- once: EventEmitterInstance['once'];
50
- emit: EventEmitterInstance['emit'];
51
- constructor(http: HttpClient);
52
- getToken(): string;
53
- isLoggedIn(): boolean;
54
- isOauth(): boolean;
55
- isECMProvider(): boolean;
56
- isBPMProvider(): boolean;
57
- isALLProvider(): boolean;
58
- getUsername(): string;
59
- getAuthHeaders(_requestUrl: string, header: HttpHeaders): HttpHeaders;
60
- addTokenToHeader(_requestUrl: string, headersArg?: HttpHeaders): Observable<HttpHeaders>;
61
- reset(): void;
62
- getUser(): Observable<BffUserResponse>;
63
- login(currentUrl?: string): Promise<void> | void;
64
- logout(): Promise<void> | void;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<BffAuthService, never>;
66
- static ɵprov: i0.ɵɵInjectableDeclaration<BffAuthService>;
67
- }
68
- export {};
@@ -1,11 +0,0 @@
1
- import { IUserAccessService } from '../user-access.service';
2
- import * as i0 from "@angular/core";
3
- export declare class BffUserAccessService implements IUserAccessService {
4
- private applicationAccess;
5
- private bffAuthService;
6
- fetchUserAccess(): void;
7
- hasGlobalAccess(rolesToCheck: string[]): boolean;
8
- hasApplicationAccess(appName: string, rolesToCheck: string[]): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<BffUserAccessService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<BffUserAccessService>;
11
- }