@alfresco/adf-core 9.1.0-16784233431 → 9.1.0-16879045101
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/adf-core.mjs +265 -266
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/auth/oidc/auth.module.d.ts +10 -13
- package/lib/auth/oidc/auth.routes.d.ts +18 -0
- package/lib/auth/oidc/public-api.d.ts +0 -1
- package/lib/core.module.d.ts +11 -0
- package/lib/testing/app-config-testing.d.ts +24 -0
- package/lib/testing/index.d.ts +1 -1
- package/lib/testing/noop-auth.module.d.ts +31 -4
- package/lib/translation/provide-i18n.d.ts +1 -1
- package/package.json +3 -3
- package/lib/auth/oidc/auth-routing.module.d.ts +0 -6
- package/lib/testing/core.testing.module.d.ts +0 -11
|
@@ -14,29 +14,26 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { ModuleWithProviders, InjectionToken } from '@angular/core';
|
|
17
|
+
import { ModuleWithProviders, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
|
|
18
18
|
import { OAuthStorage } from 'angular-oauth2-oidc';
|
|
19
19
|
import { AuthModuleConfig } from './auth-config';
|
|
20
|
-
import { RedirectAuthService } from './redirect-auth.service';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
22
|
-
import * as i1 from "./auth-routing.module";
|
|
23
|
-
import * as i2 from "angular-oauth2-oidc";
|
|
24
|
-
import * as i3 from "./view/authentication-confirmation/authentication-confirmation.component";
|
|
25
21
|
export declare const JWT_STORAGE_SERVICE: InjectionToken<OAuthStorage>;
|
|
26
|
-
/**
|
|
27
|
-
* Create a Login Factory function
|
|
28
|
-
*
|
|
29
|
-
* @param redirectService auth redirect service
|
|
30
|
-
* @returns a factory function
|
|
31
|
-
*/
|
|
32
|
-
export declare function loginFactory(redirectService: RedirectAuthService): () => Promise<boolean>;
|
|
33
22
|
/**
|
|
34
23
|
* @returns current instance of OAuthStorage
|
|
35
24
|
*/
|
|
36
25
|
export declare function oauthStorageFactory(): OAuthStorage;
|
|
26
|
+
/**
|
|
27
|
+
* Provides core authentication api
|
|
28
|
+
*
|
|
29
|
+
* @param config Optional configuration parameters
|
|
30
|
+
* @returns Angular providers
|
|
31
|
+
*/
|
|
32
|
+
export declare function provideCoreAuth(config?: AuthModuleConfig): (Provider | EnvironmentProviders)[];
|
|
33
|
+
/** @deprecated use `provideCoreAuth()` provider api instead */
|
|
37
34
|
export declare class AuthModule {
|
|
38
35
|
static forRoot(config?: AuthModuleConfig): ModuleWithProviders<AuthModule>;
|
|
39
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never,
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, never, never>;
|
|
41
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>;
|
|
42
39
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { Routes } from '@angular/router';
|
|
18
|
+
export declare const AUTH_ROUTES: Routes;
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export * from './auth-routing.module';
|
|
18
17
|
export * from './auth.module';
|
|
19
18
|
export * from './auth.service';
|
|
20
19
|
export * from './oidc-auth.guard';
|
package/lib/core.module.d.ts
CHANGED
|
@@ -139,6 +139,17 @@ import * as i120 from "./blank-page/blank-page.component";
|
|
|
139
139
|
import * as i121 from "./dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component";
|
|
140
140
|
import * as i122 from "./dynamic-chip-list/dynamic-chip-list.component";
|
|
141
141
|
import * as i123 from "./material.module";
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated this module is deprecated and will be removed
|
|
144
|
+
* Use the following combination instead:
|
|
145
|
+
* ```typescript
|
|
146
|
+
* providers: [
|
|
147
|
+
* provideI18N(...),
|
|
148
|
+
* provideAppConfig(),
|
|
149
|
+
* provideCoreAuth(...)
|
|
150
|
+
* ]
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
142
153
|
export declare class CoreModule {
|
|
143
154
|
static forRoot(): ModuleWithProviders<CoreModule>;
|
|
144
155
|
/**
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { EnvironmentProviders, Provider } from '@angular/core';
|
|
18
|
+
/**
|
|
19
|
+
* Provides testing api for application config.
|
|
20
|
+
*
|
|
21
|
+
* @param config Custom application configuration data
|
|
22
|
+
* @returns Angular providers
|
|
23
|
+
*/
|
|
24
|
+
export declare function provideAppConfigTesting(config?: any): (Provider | EnvironmentProviders)[];
|
package/lib/testing/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export * from './core.testing.module';
|
|
18
17
|
export * from './core.story.module';
|
|
19
18
|
export * from './noop-translate.module';
|
|
20
19
|
export * from './noop-auth.module';
|
|
21
20
|
export * from './unit-testing-utils';
|
|
21
|
+
export * from './app-config-testing';
|
|
@@ -1,8 +1,22 @@
|
|
|
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 { EnvironmentProviders, Provider } from '@angular/core';
|
|
1
18
|
import { RedirectAuthService } from '../auth/oidc/redirect-auth.service';
|
|
2
19
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../auth/oidc/auth.module";
|
|
4
|
-
import * as i2 from "@angular/common/http/testing";
|
|
5
|
-
import * as i3 from "@angular/router/testing";
|
|
6
20
|
export declare class NoopRedirectAuthService extends RedirectAuthService {
|
|
7
21
|
onLogin: import("rxjs").Observable<never>;
|
|
8
22
|
onTokenReceived: import("rxjs").Observable<never>;
|
|
@@ -10,8 +24,21 @@ export declare class NoopRedirectAuthService extends RedirectAuthService {
|
|
|
10
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopRedirectAuthService, never>;
|
|
11
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoopRedirectAuthService>;
|
|
12
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Provides testing api for Core Auth layer
|
|
29
|
+
*
|
|
30
|
+
* Example:
|
|
31
|
+
* ```typescript
|
|
32
|
+
* TestBed.configureTestingModule({
|
|
33
|
+
* providers: [provideCoreAuthTesting()]
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns list of Angular providers
|
|
38
|
+
*/
|
|
39
|
+
export declare function provideCoreAuthTesting(): (Provider | EnvironmentProviders)[];
|
|
13
40
|
export declare class NoopAuthModule {
|
|
14
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopAuthModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAuthModule, never,
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAuthModule, never, never, never>;
|
|
16
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<NoopAuthModule>;
|
|
17
44
|
}
|
|
@@ -23,7 +23,7 @@ export interface ProvideI18NConfig {
|
|
|
23
23
|
defaultLanguage?: string;
|
|
24
24
|
/**
|
|
25
25
|
* An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
|
|
26
|
-
* Example: [['
|
|
26
|
+
* Example: [['adf-core', 'assets/adf-core'], ['my-translations', 'assets/my-translations']]
|
|
27
27
|
*/
|
|
28
28
|
assets?: [string, string][];
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "9.1.0-
|
|
4
|
+
"version": "9.1.0-16879045101",
|
|
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": ">=10.1.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=9.1.0-
|
|
66
|
+
"@alfresco/js-api": ">=10.1.0-16879045101",
|
|
67
|
+
"@alfresco/adf-extensions": ">=9.1.0-16879045101",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122",
|
|
70
70
|
"ts-morph": ">=20.0.0"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AuthRoutingModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthRoutingModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AuthRoutingModule>;
|
|
6
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/platform-browser/animations";
|
|
3
|
-
import * as i2 from "../core.module";
|
|
4
|
-
import * as i3 from "./noop-translate.module";
|
|
5
|
-
import * as i4 from "./noop-auth.module";
|
|
6
|
-
/** @deprecated this module is deprecated and will be removed in the future */
|
|
7
|
-
export declare class CoreTestingModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoreTestingModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CoreModule, typeof i3.NoopTranslateModule, typeof i4.NoopAuthModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CoreTestingModule>;
|
|
11
|
-
}
|