Skip to content

Commit

Permalink
Use latest JS-API and ADF (#3494)
Browse files Browse the repository at this point in the history
* Use latest JS-API and ADF

* Unit test fix
  • Loading branch information
MichalKinas authored Oct 25, 2023
1 parent ddb2638 commit b25a3ad
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 64 deletions.
84 changes: 37 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},
"private": true,
"dependencies": {
"@alfresco/adf-content-services": "6.4.0-6550080792",
"@alfresco/adf-core": "6.4.0-6550080792",
"@alfresco/adf-extensions": "6.4.0-6550080792",
"@alfresco/eslint-plugin-eslint-angular": "6.4.0-6550080792",
"@alfresco/js-api": "7.1.0-1409",
"@alfresco/adf-content-services": "6.4.0-6638624919",
"@alfresco/adf-core": "6.4.0-6638624919",
"@alfresco/adf-extensions": "6.4.0-6638624919",
"@alfresco/eslint-plugin-eslint-angular": "6.4.0-6638624919",
"@alfresco/js-api": "7.1.0-1437",
"@angular/animations": "14.1.3",
"@angular/cdk": "14.1.3",
"@angular/common": "14.1.3",
Expand Down Expand Up @@ -69,8 +69,8 @@
"zone.js": "0.11.8"
},
"devDependencies": {
"@alfresco/adf-cli": "6.4.0-6550080792",
"@alfresco/adf-testing": "6.4.0-6550080792",
"@alfresco/adf-cli": "6.4.0-6638624919",
"@alfresco/adf-testing": "6.4.0-6638624919",
"@angular-devkit/build-angular": "14.2.11",
"@angular-devkit/core": "14.1.2",
"@angular-devkit/schematics": "14.1.2",
Expand Down
8 changes: 4 additions & 4 deletions projects/aca-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"peerDependencies": {
"@angular/common": ">=14.1.0",
"@angular/core": ">=14.1.0",
"@alfresco/adf-core": ">=6.4.0-6497510485",
"@alfresco/adf-content-services": ">=6.4.0-6497510485",
"@alfresco/adf-extensions": ">=6.4.0-6497510485",
"@alfresco/js-api": ">=7.1.0-1384",
"@alfresco/adf-core": ">=6.4.0-6638624919",
"@alfresco/adf-content-services": ">=6.4.0-6638624919",
"@alfresco/adf-extensions": ">=6.4.0-6638624919",
"@alfresco/js-api": ">=7.1.0-1437",
"@angular/animations": ">=14.1.3",
"@angular/cdk": ">=14.1.3",
"@angular/forms": ">=14.1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { AppExtensionService, ContentApiService } from '@alfresco/aca-shared';
import { of, Subject, throwError } from 'rxjs';
import { By } from '@angular/platform-browser';
import { NodeEntry, NodePaging, Node, PathElement } from '@alfresco/js-api';
import { DocumentListPresetRef } from '@alfresco/adf-extensions';

describe('FilesComponent', () => {
let node;
Expand Down Expand Up @@ -87,7 +88,7 @@ describe('FilesComponent', () => {
fixture = TestBed.createComponent(FilesComponent);
component = fixture.componentInstance;

const documentListService = TestBed.inject(DocumentListService);
const documentListService: DocumentListService = TestBed.inject(DocumentListService);
const fakeNodeEntry: NodeEntry = { entry: { id: 'fake-node-entry' } } as NodeEntry;
const fakeNodePaging: NodePaging = { list: { pagination: { count: 10, maxItems: 10, skipCount: 0 } } };
const documentLoaderNode = { children: fakeNodePaging, currentNode: fakeNodeEntry };
Expand Down Expand Up @@ -161,7 +162,7 @@ describe('FilesComponent', () => {
desktopOnly: true,
template: 'template',
sortingKey: 'sorting-key'
}
} as DocumentListPresetRef
];

extensions.filesDocumentListPreset$ = of(filesDocumentListPresetMock);
Expand Down
8 changes: 4 additions & 4 deletions projects/aca-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"license": "LGPL-3.0",
"scripts": {},
"peerDependencies": {
"@alfresco/adf-content-services": ">=6.4.0-6497510485",
"@alfresco/adf-core": ">=6.4.0-6497510485",
"@alfresco/adf-extensions": ">=6.4.0-6497510485",
"@alfresco/js-api": ">=7.1.0-1384",
"@alfresco/adf-content-services": ">=6.4.0-6638624919",
"@alfresco/adf-core": ">=6.4.0-6638624919",
"@alfresco/adf-extensions": ">=6.4.0-6638624919",
"@alfresco/js-api": ">=7.1.0-1437",
"@angular/animations": ">=14.1.3",
"@angular/common": ">=14.1.3",
"@angular/compiler": ">=14.1.3",
Expand Down

0 comments on commit b25a3ad

Please sign in to comment.